Entering edit mode
22 months ago
SaltedPork
▴
170
Hi,
My command is:
bowtie2 -x bowtie.db -1 $sample.host.removed.R1.fastq -2 $sample.host.removed.R2.fastq -S $sample.consensus.align.sam
It outputs a SAM file with read IDs like:
M03972:384:000000000-KDHHW:1:1101:22168:9677
However, in the input reads files there is a /1
or /2
on the end of the read. Is there a way of printing this to the SAM file?
ah okay, thanks. How will I know which is forward, and which is reverse?
it is not forward or reverse, it is
read 1
andread 2
, or first in pair and second in pair,alas, calling them as forward and reverse is very common, even in training materials ... so I understand why call them that way
forward and reverse represents the orientation of the alignment; either pair may align forward or reverse -
read1
andread 2
indicate which file the reads come from. Using:will list the flag meaning:
you can see that
64
and128
areREAD1
andREAD2