Comments (6)
Hi Yael,
You have to use the --eqx
command in your minimap2 line to replace the M for X/= in your CIGAR string.
from syri.
Thanks!
from syri.
It's worth pointing out that not all SAM files come from minimap2, and 'M' is correct CIGAR under the SAM specification:
https://samtools.github.io/hts-specs/SAMv1.pdf
Therefore in my opinion this is a bug that isn't fixed.
from syri.
Syri uses CIGAR string to call SNPs and short indels. In CIGAR, M
is used for both matches and mismatches, which means that using it for calling SNPs would require checking the bases in both genomes at all positions that have an M
. This could result in significant computational overhead. Using =/X
solves this issue as only positions with X
needs to be fetched.
I am also not aware of other popular whole-genome alignment methods that do not produce SAM files with =X
.
from syri.
nucmer with --sam-long produces such output. There are probably more. If you're not going to support the full CIGAR specification, it would be nice to document that under the limitations, because others might use the tool as I did, thinking that any SAM file that conforms to the specification would work.
from syri.
Documentation already shows how to generate and use alignments from minimap2 and nucmer https://schneebergerlab.github.io/syri/pipeline.html
Nevertheless, please feel free to update the documentation/code and start a pull request.
from syri.
Related Issues (20)
- syri process stopped HOT 4
- syri issues HOT 6
- Syri not detecting inversions from dgenies HOT 4
- How can I get location information for unalignable regions? HOT 2
- colour to non-aligned region HOT 1
- SNP Finding error HOT 1
- i was trying to install syri
- i was trying to install syri but it ended up with too many warnings and error HOT 2
- i have installed syri using conda but after running iam getting error in reading sam file i have used minimap2 to convert fna file to sam file HOT 4
- i was using syri with two genome files its give me a error HOT 3
- Inversion OR Duplication ? HOT 3
- Failure to compile on MacOS 13 / M1 Pro HOT 3
- syri reported an error:Reading coords - ERROR - aDir can only have values 1 HOT 2
- Not able to compile v1.6.3 on Ubuntu 20.04 HOT 3
- Reading Coords - WARNING - Chromosomes IDs do not match. HOT 6
- Matplotlib issue HOT 3
- What's the header of SyRI output HOT 1
- delta-filter unsecssful HOT 2
- SAM read error for BAM file from minimap2 HOT 3
- IndexError: list index out of range after fixchr
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syri.