Go Back   SEQanswers > Sequencing Technologies/Companies > Illumina/Solexa

Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate read names - BWA mem - paired reads have different names spabinger Bioinformatics 6 05-25-2018 05:27 AM
generate fastq files for entire sample pool, remove human reads, then demultiplex sk8bro Bioinformatics 26 12-20-2015 03:59 AM
Read in mutiple gzipped FastQ files using R Nicolas_15 Bioinformatics 4 09-04-2015 02:47 PM
How to read FASTQ files? Mr.Zurich1992 Genomic Resequencing 40 01-13-2014 09:06 AM
SAM/BAM sort by read names produces truncated read names allenyu Bioinformatics 7 09-24-2012 11:46 PM

Thread Tools
Old 06-10-2016, 02:39 AM   #1
Junior Member
Location: Sweden

Join Date: Jun 2016
Posts: 4
Default demultiplex FastQ files based on read names

Hi everybody,

my name is Fabian Roger and I am a PhD student in Ecology at the university of Gothenburg.

I am at a stage where I need to submit sequences to ENA but I don't have the files in the right format. All I have are 6 FASTQ files (3 forward, 3 reverse) and a list of sequence names that assigns each read to it's corresponding sample (144 samples in total).

In order to get the files into the right format I need to do two things:

1) demultiplex the FASTQ files into separate samples (split in forward and reverse)

2) check if there are any non-biological sequences remaining.

I tried to do 1) with script from bbmap but I can't get it to work. Are there any solutions that are comparably fast that could do that?

And would you have a good suggestion how to check 2)?

Information about the reads:

We sequenced environmental samples (freshwater) with the 341F-806R bacterial 16S primers and sequenced it with 2x250 bp on Illumina MISEQ platform.

Any help would be greatly appreciated!

I attach two small files from my data.
Attached Files
File Type: txt list.txt (285 Bytes, 3 views)
File Type: txt R1_short.fq.txt (4.1 KB, 0 views)
Latrunculia is offline   Reply With Quote
Old 06-10-2016, 06:54 AM   #2
Senior Member
Location: California

Join Date: Jul 2014
Posts: 198

You can use FastQC or similar to check for adapter sequence. What other non-biological sequence are you considering?

For the second part, a short pick-your-favorite-language script should suffice.
fanli is offline   Reply With Quote
Old 06-10-2016, 11:18 AM   #3
Brian Bushnell
Super Moderator
Location: Walnut Creek, CA

Join Date: Jan 2014
Posts: 2,707

Just a note, did not work because the names in list.txt were not exact matches; they contain trailing whitespace. It works correctly once that is removed.

Note that BBTools also contains a program called "demuxbyname" which can demultiplex reads into multiple files based on a list of prefixes or suffixes in the read names, but I'm not sure if that exactly addresses what you want to do. If the reads are barcoded by sample, it should work, in suffix mode.
Brian Bushnell is offline   Reply With Quote
Old 06-10-2016, 12:18 PM   #4
Junior Member
Location: Sweden

Join Date: Jun 2016
Posts: 4

Hey again.

Thanks to both for your replies! As Brian noted (and kindly told me by mail, too) the problem was the trailing tab. It works great now!

For the non-biological sequences, I found out that there are both primers and barcodes still attached to them, so I will need to remove them.

Thanks for your help and time!
Latrunculia is offline   Reply With Quote
Old 06-10-2016, 12:40 PM   #5
Senior Member
Location: East Coast USA

Join Date: Feb 2008
Posts: 6,992

Use to remove adapters/extraneous stuff from BBMap, if you don't have a pre-determined pipeline already.
GenoMax is offline   Reply With Quote

demultiplexing, fastq files, miseq amplicon, sequence data submission, trimming

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -8. The time now is 06:38 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO