-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR syri:201 - Length of query sequence of Chr1 is less than the maximum coordinate of its aligned regions #251
Comments
Hi @Sabrili. The commands look correct so this error should not happen. Can you please retry re-running the pipeline in a new empty folder? |
Hi @mnshgl0110 When I separate the genomes into individual chromosomes, Syri works perfectly, but I was hoping to compare the whole genomes to see if there were any translocations across chromosomes. |
The error message implies that the alignment coordinates in the
The max alignment coordinate should be less than or equal to the chromosome length in the fasta. If that is not the case, then there is some issue with how the alignments are generated. |
Error message: Running SyRI - ERROR - Length of query sequence of Chr1 is less than the maximum coordinate of its aligned regions. Exiting. I tried both the sam and bam file. The length is greater than the alignment reads but still it showing the same error and I tried by extracting single chromosome still the error exists. Thanks in advance! |
The error message corresponds to Chr1 in the query genome. In the SAM, the chromosome lengths corresponds to reference genome. Try converting your SAM to PAF and then check the alignment coordinates and chromosome lengths. If everything looks ok, then you can try syri with that file. |
Depending on your response i could understand that you ask me to use PAF format file, but syri will accept the PAF format? |
Hi all, Apologies for my late update, just wanted to say I managed to get the alignment working using minimap2 instead of nucmer. Syri worked perfectly. Thanks everyone! minimap2 -ax asm5 -t 24 --eqx refgenome qrygenome > out.sam |
Hi @mnshgl0110 and everyone :)
I'm sorry if this is a really obvious question, I'm new to programming and haven't used Syri before.
I am getting this error code when I try to run Syri:
"Running SyRI - ERROR - syri:201 - Length of query sequence of Chr1 is less than the maximum
coordinate of its aligned regions. Exiting."
I don't really understand what has triggered this error or how to fix it.
Here is the code I'm using which gives the error:
ln -sf Genome1.fa refgenome
ln -sf Genome2.fa qrygenome
nucmer --maxmatch -c 100 -b 500 -l 50 refgenome qrygenome
delta-filter -m -i 90 -l 100 out.delta > out.filtered.delta
show-coords -THrd out.filtered.delta > out.filtered.coords
syri -c out.filtered.coords -d out.filtered.delta -r refgenome -q qrygenome
Genome1 and Genome2 have the same number of chromosomes and the chromosome names are the same across the two genomes, however the chromosomes in Genome2 are much longer than Genome1 due to a high number of repeat elements.
As far as I can understand I think I have formatted the fasta files correctly?
Additionally I've noticed that the input TSV file shows alignments between the wrong chromosomes e.g. Chr1 of the reference and Chr4 of the query, could this be contributing to this error?

For example:
Any advice on understanding this error and how to fix it would be really appreciated :)
Thank you so much!
The text was updated successfully, but these errors were encountered: