Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

error: CIGAR length too long at position 1 #8

Closed
atongsa opened this issue Jun 3, 2021 · 5 comments
Closed

error: CIGAR length too long at position 1 #8

atongsa opened this issue Jun 3, 2021 · 5 comments

Comments

@atongsa
Copy link

atongsa commented Jun 3, 2021

i get this error from

minimap2 -a -x asm10  --cs -r2k -t $n_thr $ref_fa $query_fa > o.sam
samtools sort  o.sam

may i add the -L option in minimap2 to solve the problem

@eldariont
Copy link
Owner

Hi,

sure, the -L option solves some problems with long CIGAR strings so you can try. If problems persist you might want to contact the developers of samtools or minimap2 as this is not a SVIM-asm issue as far as I can tell.

Best
David

@WimSpee
Copy link

WimSpee commented Jun 21, 2022

Hi,

Thank you for the very nice SVIM-ASM tool.
I ran into the same issue.
This is also not considered a minimap2 issue, just a limitation of the BAM format.
lh3/minimap2#440

I did not try the -L option yet with minimap2. I will try that.

I tried to find if CRAM format would be a workaround. Since the alignments are stored differently in CRAM then in BAM.
But CRAM is not yet supported by SVIM-ASM as far as I can tell.

Maybe you know if CRAM format fixes this issue and if CRAM support in SVIM-ASM would be possible?

Thank you.

Wim

@WimSpee
Copy link

WimSpee commented Jun 21, 2022

Or maybe a SAM reader could be add to SVIM-ASM? This for example has been done in Syri.
https://github.com/schneebergerlab/syri

@WimSpee
Copy link

WimSpee commented Jun 21, 2022

CRAM also seems to not have this issue.
lh3/minimap2#16

@WimSpee
Copy link

WimSpee commented Jul 11, 2022

@eldariont Could you please have a look if it is possible to have SVIM-ASM read in SAM or CRAM files to fix the "too long CIGAR" issue?
See also the above comments and links.

Thank you.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants