bwa icon indicating copy to clipboard operation
bwa copied to clipboard

BWA BAM

Open duhuipeng opened this issue 1 year ago • 3 comments

dear author

/bwa mem -t 80 MotherHap.fa R1.fastq.gz R2.fastq.gz |samtools view -@ 70 -Sb > F0-73.bam samtools sort -@ 60 F0-73.bam -o F0-73.sort.bam samtools index F0-73.sort.bam

Then I went to check this bam file and I found a lot of mapq for 0, but it only appeared 1 time, why is that? I don't really understand. If I understand it normally, shouldn't a mapq of 0 indicate that the ID is out of line in multiple places? for example image This ID appears only on chromosome 18 and only once, but mapq is 0。The other one has the same ID because it is double-ended reverse complementary

I hope to get your answer, I do not quite understand Best HuipengDu

duhuipeng avatar May 16 '23 01:05 duhuipeng

I mainly want to see some comparisons in the centromere, so it mapq for 0 but again only once, I am very confused that What parameters do you think I need to add to show all the comparisons in that region?

duhuipeng avatar May 16 '23 02:05 duhuipeng

try to use -a or -h

hunglin59638 avatar Aug 07 '23 03:08 hunglin59638

Check the "XA:Z" tag in your bam file for each read, which gives all alternative mapping locations.

pinbo avatar Nov 03 '23 22:11 pinbo