eg-react icon indicating copy to clipboard operation
eg-react copied to clipboard

Failed to display bam alignment details if the CIGAR has "H" or "S"

Open songtaogui opened this issue 4 years ago • 4 comments

Hi, @lidaof

I was trying to display bam file using WashU browser v48.5.3, however, some of my bam records could not be correctly parsed:

The cigar of this alignment is "4S173M1I184M22D413M" image

I have noticed that the "incorrect records" all have soft or hard mask CIGARs (S or H). And in the bam parse script, it seems that the "H" and "S" cigars are not considered.

Is this the reason of incorrect parsing? and how could I display bam with masked records using WashU browser?

Thank you

Best wishes,

SongtaoGui

songtaogui avatar Oct 13 '19 14:10 songtaogui

Hi @songtaogui, yes, you are correct. I will see what I can do to improve the bam track. Thanks for reporting this issue.

lidaof avatar Oct 13 '19 21:10 lidaof

Hi @xzhuo i guess this has been fixed in your recent PR?

lidaof avatar Feb 10 '22 15:02 lidaof

The "H" and "S" in the CIGAR string should have been fixed. But there are other issues with the bam track, including the "D" string is still there.

xzhuo avatar Feb 10 '22 15:02 xzhuo

Thanks! Looks like we would keep this issue open :)

lidaof avatar Feb 10 '22 15:02 lidaof