Thanks for the answer! Why is not enought just to POS add length of SEQ?
Meaning of the column of sam file
Hello! Referring to this columns in sam file:
- QNAME
- FLAG
- RNAME
- POS
- MAPQ
- CIGAR
- RNEXT
- PNEXT
- TLEN
- SEQ
- QUAL
I wanted to ask how to extract the information about end position of the read? Morover if I want to know which strand it is, it will be depend on FLAG? If the FLAG is 16 that mean it is reverse and in the other cases it will be forward?
• 2,433 views
•
link
1 answer
I wanted to ask how to extract the information about end position of the read?
you have to 'walk' over the CIGAR string. C Api For Bam: Iterating Over A Cigar String. https://stackoverflow.com/questions/39710796 , or you can use a tool like "bedtools bamtobed"
If the FLAG is 16 that mean it is reverse and in the other cases it will be forward?
if it's mapped, yes
• 0 views
•
link
Log in to answer this question.