How Do I Interpret The Pos In The Alternative Hits Format?
1
1
Entering edit mode
11.8 years ago
KCC ★ 4.1k

How do I interpret the pos in the alternative hits format of a SAM file, "XA (chr,pos,CIGAR,NM;)*" ? Does pos < 0 mean reverse strand and pos > 0 mean forward strand?

sam • 2.6k views
ADD COMMENT
2
Entering edit mode
11.8 years ago
matted 7.8k

Yes, I checked in the source of bwa 0.6.2 and you're right. For completeness, an example XA tag would look like:

XA:Z:chr12,+469236,36M,0;chr12,+486120,36M,0;chr12,-472888,36M,0;

And the code snippet writing the chromosome, strand, and position in bwase.c is:

err_printf("%s,%c%d,", bns->anns[seqid].name, q->strand? '-' : '+', (int)(q->pos - bns->anns[seqid].offset + 1));
ADD COMMENT

Login before adding your answer.

Traffic: 2442 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6