This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Separate Broken Pairs

I am currently preprocessing my paired-end reads and was wondering if there is an efficient way to remove broken pairs from my sequence file.

Thanks for the help.

illumina paired

Some more details would be good. What format is your RNA-seq data in and how has it been processed so far? And, how would you like to define "broken pairs"?

4 answers

This post might help: Filtering paired end reads

It is in fastq format and following QC filtering with fastx I end up single reads that no longer have a pair. It seems that these single reads are messing up my assemblies in velvet. Recently, I tried using sickle to filter and it seems to have resolved the issue.

Thanks for the help.

Picard tools has a handy webpage for working out the meaning of SAM flags (and combinations of flags):

http://picard.sourceforge.net/explain-flags.html

These can be used with 'samtools view -f N', where N is the flag you want to filter your reads with.

E.g. to extract all the properly paired reads:

samtool view -S -f 2 -o proper-paired-reads.sam input.sam

That is a great tool!

Cheers

Log in to answer this question.