-
Notifications
You must be signed in to change notification settings - Fork 129
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
[augur tree] input alignment must end in .fasta #769
Comments
I can no longer reproduce this bug: > augur tree --alignment ./align.mfa --output tree.nwk
Building a tree via:
iqtree2 --threads-max 1 -s align-delim.fasta -m GTR --ninit 2 -n 2 --epsilon 0.05 -T AUTO --redo > align-delim.iqtree.log
Nguyen et al: IQ-TREE: A fast and effective stochastic algorithm for estimating maximum likelihood phylogenies.
Mol. Biol. Evol., 32:268-274. https://doi.org/10.1093/molbev/msu300
Building original tree took 9.32535982131958 seconds Running the command generates two log files, with identical content:
I think the reason I'm not seeing the bug is because we rewrite the input alignment file into a temporary file that will always have a One thing I'm wondering about is whether we should add Another enhancement would be to change how the log file name is built to use the original input alignment file name instead of the version renamed with the |
Re: log files, I'm not sure I have a strong opinion; removing But looking at why |
I'm not sure I understand what the antecedent of "this" in "prefer we don't do this" is — don't munge the strain names and let iqtree? Have |
This: the |
(I'd support closing this issue and moving discussion to #1084 ) |
Taking the suggestion. |
Current Behavior
For IQ-TREE, the input alignment must end in
.fasta
as we replace this string with others to create intermediate files (code here). If this is not the case, the input alignment ends up being overwritten with the (failing) log files of IQ-TREE.Expected behavior
The input alignment suffix should not matter - alignments are commonly named
*.mfa
or*.aln
.How to reproduce
Steps to reproduce the current behavior:
.fasta
, e.g.nextalign.mfa
augur tree --alignment nextalign.mfa --output tree.nwk
I have not tested for other tree building methods or VCF inputs. However looking at the code this seems to be limited to IQ-TREE with non-VCF inputs.
Possible solution
.fasta
.fasta
(preferred solution)Your environment: if running Nextstrain locally
The text was updated successfully, but these errors were encountered: