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
Once this was done, I tried to align the repaired modbam to my assembly using dorado aligner, but I ran into error showing:
starting alignment
terminate called after throwing an instance of 'std::runtime_error'
what(): MN tag and sequence length are not in sync.
Aborted (core dumped)
This error is indicating that the MM/ML tags of my trimmed reads were not adjusted after trimming. I checked some records from my modBam, compared before and after the repair and it seems to work (the MM/ML tags were adjusted), only the MN tags were not change, could this be the issue itself?
I attached the sequences and tags before and after repaired for one record as reference.
Thanks for bringing this to my attention. Indeed modkit repair is failing to update the MN tag. It's an easy fix. I've attached a build to this thread that corrects the tag. Thank you for the thorough description of your procedure by the way. This fix will certainly make it into the next release. modkit_v0.2.5-dev1cd8775_centos7_x86_64.tar.gz
Hi,
I ran into an issue while trying to align my trimmed modBam to an assembly and noticed it might be due to the outdated MN tags.
my current workflow:
modkit repair
dorado aligner
I sorted both my donor and acceptor bam using
samtools sort -n
and ran:Once this was done, I tried to align the repaired modbam to my assembly using
dorado aligner
, but I ran into error showing:I did a bit of digging on MN tags, and as my understanding from the discussion here: samtools/hts-specs#646 and documentation https://cdn.jsdelivr.net/gh/samtools/hts-specs@8c1fc489bb6f835e072f06a77e7ae73f54c30d92/new/SAMtags.pdf
This error is indicating that the MM/ML tags of my trimmed reads were not adjusted after trimming. I checked some records from my modBam, compared before and after the repair and it seems to work (the MM/ML tags were adjusted), only the MN tags were not change, could this be the issue itself?
I attached the sequences and tags before and after repaired for one record as reference.
example.txt
Many thanks in advance.
The text was updated successfully, but these errors were encountered: