Skip to content
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: alignment contains sequences of unequal length #101

Open
rderelle opened this issue Feb 21, 2021 · 8 comments
Open

error: alignment contains sequences of unequal length #101

rderelle opened this issue Feb 21, 2021 · 8 comments

Comments

@rderelle
Copy link

rderelle commented Feb 21, 2021

Hi,

I have generated an alignment between 2 genomes using progressiveMauve (default parameters) and I'm now trying to extract SNPs using snp-sites.

My issue is that I get the error message: '' Alignment my_ali contains sequences of unequal length. Expected length is 42875 but got 42876 in sequence ''

However both sequences have a length of 42876, but both sequences have 1 indel '-'.

any idea about how to fix that ?

thanks
Romain

@dbrami
Copy link

dbrami commented Feb 23, 2021

I'm getting the same error while trying to extract SNPs from MAFFT alignments of coronavirus, courtesy of GISAID

(pangenomics) ubuntu@ip-172-31-29-49:~/covid19/vcf$ snp-sites -v -o GISAID0201 ../gisaid_hcov-19_2021_01_30_08.fasta.gz
Alignment ../gisaid_hcov-19_2021_01_30_08.fasta.gz contains sequences of unequal length. Expected length is 29766 but got 29768 in sequence hCoV-19/Japan/PG-9988/2020|EPI_ISL_902711|2020-07

Also, wasn't there an option to output a VCF per sample?

@Logan1x
Copy link

Logan1x commented Mar 24, 2021

@rderelle @dbrami got any solution for this? any other tool or something?

@rderelle
Copy link
Author

rderelle commented Mar 24, 2021

@Logan1x
I have abandoned Mauve, which doesn't seem to work well.
It is actually easy to get a list of SNPs from Minimap2 (using third party pgm provided in the same package) or GSalign (directly from the pgm).

cheers

@dbrami
Copy link

dbrami commented Mar 25, 2021 via email

@Albertzhuo123
Copy link

fxxk!

@ksw9
Copy link

ksw9 commented May 10, 2022

Hi,
I'm wondering if folks might recommend a similar tool to extract SNPs from a multiple sequence alignment to generate an alignment of SNPs only? I am similarly running into errors with Expected length although I have confirmed that sequences are the same length.

Thank you in advance!

@ankeetkumar
Copy link

Hi,

Did anybody find solution?

Thanks

@Albertzhuo123
Copy link

Albertzhuo123 commented May 16, 2024 via email

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

No branches or pull requests

6 participants