You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking at an example where a read has an inversion in the middle. Everything gets aligned properly, but I do not understand why the inverted part has its cigar reversed. The flag only states 2064, for supplements and reverse. Is this a special combination, leading to different record printing? Do you have documentation/specs about this case?
The cigar is reverse and the actual SEQ is also reverse-complemented.
Second example end_inv
Here, the sequence is split into two segments 960 fwd, 1140 rev.
Minimap2 picks the second segment as the primary alignment, reversed the cigar and rc the SEQ
The 0 mapping quality is a bug, which has just been fixed via 372c90c. I am not sure about the other questions, though. SAM/PAF only works with colinear alignments. If inversion alignment is not reported this way, what would you expect to see?
I'm looking at an example where a read has an inversion in the middle. Everything gets aligned properly, but I do not understand why the inverted part has its cigar reversed. The flag only states 2064, for supplements and reverse. Is this a special combination, leading to different record printing? Do you have documentation/specs about this case?
Examples:
Reference https://gist.github.com/armintoepfer/ef6505a5a9db5c1ba9b49ffe910b326e
Seqs: https://gist.github.com/armintoepfer/a24959b2e199784c35fc11651aee84d9
First example:
The first sequence
mid_inv
should be aligned in three segments180 fwd, 540 rev, 1380 fwd
.The longest is picked as primary,
Makes totally sense.
The first part also gets aligned as forward and supplementary
Now the confusion for the middle part
The cigar is reverse and the actual SEQ is also reverse-complemented.
Second example
end_inv
Here, the sequence is split into two segments
960 fwd, 1140 rev
.Minimap2 picks the second segment as the primary alignment, reversed the cigar and rc the SEQ
And the first part is aligned properly as forward
But if I align a single segment that is reverse-complement, the cigar and sequence are forward strand (genomic) with flag 16 for rev.
Why are segments treated differently? And why are the inversions tagged with MAPQ 0?
Using 2.10-r763-dirty
The text was updated successfully, but these errors were encountered: