Sam Format Optional Fields Specification
1
0
Entering edit mode
6.5 years ago
j_susat ▴ 40

Hey there,

I currently try to find out what the flag XA:Z: means. I looked through this PDF optional field specification but it just says that tags starting with X are reserved for end users. So does anyone know what this flag means? Here is one example of my sam file. This is a result of a mapping against a multi fasta reference.

M_K00149:52:HJKW7BBXX:4:2126:5720:40913 16      AB032433_chimp_gorilla  18      0       88M     *       0       0       AAACTCTGCAAGATCCCAGAGTGAGGGGCCTGTATTTTCCTGCTGGTGGCTCCAGTTCAGGAACAGTAAACCCTGTTCCGAATACTGC        A<FFFJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJFJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJFFFAA        RG:Z:IL235-Kars_537_M.NA.NA.170524_K00149_0052_BHJKW7BBXX.G05692        XT:A:R  NM:i:5  X0:i:3  X1:i:0  XM:i:5  XO:i:0  XG:i:0  MD:Z:2G7G11A42T1G20     XA:Z:gibbon_orang_1_restored,-18,88M,5;D,-20,88M,5;

I aligned Shotgun data with bwa aln against the reference. Thanks in Advance :)

sam alignment • 3.3k views
ADD COMMENT
0
Entering edit mode

May depend on the tool used for alignment, what was used? Please be as complete as possible when asking questions.

ADD REPLY
0
Entering edit mode

Sorry. I will add the information.

ADD REPLY
0
Entering edit mode

if you're using bwa, your version is too old, this XA tag was removed in 0.7.5 https://github.com/lh3/bwa/blob/master/NEWS.md#release-075-29-may-2013

Other hits part of a chimeric alignment are now reported in the SA tag, conforming to the SAM spec v1.5.

ADD REPLY
0
Entering edit mode

maybe It still services(?) XA tags for alternative alignment, and it is different from chimeric alignment which is provided by SA tags

Output alternative hits in the XA tag if there are not so many of them. This is a BWA-backtrack feature. Support mapping to ALT contigs in GRCh38 (EXPERIMENTAL). We provide a script to postprocess hits in the XA tag to adjust the mapping quality and generate new primary alignments to all overlapping ALT contigs. We would NOT recommend this feature for production uses.

ADD REPLY
3
Entering edit mode
6.5 years ago

According to the bwa documentation (scroll down a ways), XA tags are Alternative hits; format: (chr,pos,CIGAR,NM;). The Negative position means that it aligns reverse-complemented.

ADD COMMENT
0
Entering edit mode

Thank you. I was searching at the wrong place then :)

ADD REPLY

Login before adding your answer.

Traffic: 1034 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