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

ENH: Better error message when input alignment has sequences of unequal length #258

Open
corneliusroemer opened this issue Sep 6, 2023 · 1 comment
Assignees

Comments

@corneliusroemer
Copy link
Member

I got this error from refine that I struggled to debug:

ERROR: SequenceData: loading alignment failed... builds/masked.fasta

ERROR from TreeTime: This error is most likely due to a problem with your input data.
Please check your input data and try again. If you continue to have problems, please open a new issue including
the original command and the error above:  <https://github.com/nextstrain/augur/issues/new/choose> 

I didn't know why the alignment couldn't be loaded.

Turns out, my sequences weren't aligned, they had different lengths.

Would be good to report a bit more granular detail from what goes wrong in the alignment loading.

@corneliusroemer
Copy link
Member Author

corneliusroemer commented Sep 6, 2023

Error should be handled here:

else:
for fmt in ['fasta', 'phylip-relaxed', 'nexus']:
try:
in_aln=AlignIO.read(in_aln, fmt)
except:
continue

See https://bedfordlab.slack.com/archives/C01LCTT7JNN/p1694021182135669?thread_ts=1694018285.407369&cid=C01LCTT7JNN

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

No branches or pull requests

1 participant