Question: Split oxford nanopore MinION fastq file based on barcode
0
gravatar for ambi1999
13 months ago by
ambi199930
United Kingdom/Cardiff/Cardiff Metropolitan University
ambi199930 wrote:

Hi,

How can I split a single fastq file into multiple fastq file based on barcode in the header of reads?

I got a single oxford nanopore MinION fastq file containing reads from multiple samples. Each read has a barcode in header identifying the sample. For example as follows.

@7a68bd87-67c2-4478-9a3d-a6b81a624b70 ch=483 read=12720 start_time=2018-05-03T18:18:46Z barcode=BC05 runid=658668ec6593d6d2a9d8f0a666d4bd556e161839

I want to get split the fastq file into smaller fastq files based on the barcode. Is there a way to do that? I can of course write my own script to do that but I am sure there is already a tool for it.

Tried searching poretools but could not find any easy way.

Thx for help, Ambi.

ADD COMMENTlink modified 13 months ago by WouterDeCoster42k • written 13 months ago by ambi199930
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1259 users visited in the last hour