Splitting BAM file from paired end into forward and reverse strands?
Hi,
I have splitted BAM file from single end reads into forward and reverse strands using the following command
samtools view -b -F 16 *for forward strand
samtools view -b -f 16 *for reverse strand
As I understand the sum of these two should be equal to the main BAM file. So my questing is for paired end reads, will it be different or the same code will work for both single and paired end reads? Help me understand.
Thanks,
Susmita
• 2,561 views
•
link
0 answers
No answers yet.
Log in to answer this question.
That code will pay no attention to any of the flags having to do with paired reads. It also won't pay attention to whether or not the read mapped.
Can you be little more elaborative? I did not get it.