Hello All, An example syntax of the bwa XA field is:
XA:Z:22,-32166766,35M,0;
More generically, the bwa manual http://bio-bwa.sourceforge.net/bwa.shtml describes the following:
Alternative hits; format: (chr,pos,CIGAR,NM;)*
For the XA field.
The compulsory POS (alignment position / 4) field in sam format is an unsigned integer. Why is the pos field in the XA format signed? I'm guessing it is relative to something? Is it relative to the value in the POS field?
For example, if POS = 5000,
and we have an alternative alignment XA:Z:_,-2000,_,_;
where _
could be anything,
is this saying that the alternative alignment starts at 3000?
What if this runs across chromosomes?
I.e REF = 14, being, alignment to chr14, but the XA field is XA:Z:22,-3200000,_,_;
Would we simply compute POS - 3200000
to find the alternative alignment position value?
Thanks,
Izaak