schneebergerlab / syri

Synteny and Rearrangement Identifier
https://schneebergerlab.github.io/syri/
MIT License
306 stars 36 forks source link

CIGAR string incorrect #120

Closed NicMAlexandre closed 2 years ago

NicMAlexandre commented 2 years ago

It looks like perhaps the more recent minimap2 outputs which include 'M' in the cigar string may not be compatible...

SAM reader - ERROR - Incorrect CIGAR string found. CIGAR string can only have I/D/H/S/X/=. CIGAR STRING: 4009S57M1D29M1D274M2I187M1D155M2D18M6I9M2D12M1I36M7D74M1I14M13I56M11I3M10I144M3I133M1I64M2D95M1I39M1D10M6D475M1I7M587D10M8D207M4D176M11I164M7D536M31I37M10I3M12I177M278D15M1I153M3D256M1I149M263D231M5D99M1D27M8I57M1I57M1D75M2D18M2I149M8I246M4I16M3I63M1I78M1I104M3D92M7D24M1D350M1I64M1I101M1D385M1I67M546S

I generated my sam file like so:

minimap2 -ax asm20 --cs -t 20 Reference.fa Query.fna > Anna.sam and minimap2 -ax asm20 -t 20 Reference.fa Query.fna > Anna.sam

mnshgl0110 commented 2 years ago

Please use the --eqx parameter

बुध, 2 फ़र॰ 2022, 8:57 pm को nicolasalexandre21 @.***> ने लिखा:

It looks like perhaps the more recent minimap2 outputs which include 'M' in the cigar string may not be compatible...

SAM reader - ERROR - Incorrect CIGAR string found. CIGAR string can only have I/D/H/S/X/=. CIGAR STRING: 4009S57M1D29M1D274M2I187M1D155M2D18M6I9M2D12M1I36M7D74M1I14M13I56M11I3M10I144M3I133M1I64M2D95M1I39M1D10M6D475M1I7M587D10M8D207M4D176M11I164M7D536M31I37M10I3M12I177M278D15M1I153M3D256M1I149M263D231M5D99M1D27M8I57M1I57M1D75M2D18M2I149M8I246M4I16M3I63M1I78M1I104M3D92M7D24M1D350M1I64M1I101M1D385M1I67M546S

I generated my sam file like so:

minimap2 -ax asm20 --cs -t 20 Reference.fa Query.fna > Anna.sam and minimap2 -ax asm20 -t 20 Reference.fa Query.fna > Anna.sam

— Reply to this email directly, view it on GitHub https://github.com/schneebergerlab/syri/issues/120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3ZK3ZPFAOD26TRLX4S2F3UZGECBANCNFSM5NM7VVWQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

NicMAlexandre commented 2 years ago

Thank you, problem solved.