Closed idolawoye closed 6 years ago
Your alignment didn't load. see the second line of the output. But thanks for pointing it out -- I have to improve error handling.
Do you have any idea why the alignment did not load? I tried phylip and aln file formats so I don't understand why it wont read any of them. I also tried using python by importing TreeAnc from treetime but here is the error that came up:
>>> from treetime import TreeAnc
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from treetime import TreeAnc
ImportError: cannot import name 'TreeAnc'
1) it checks whether it can read them as fasta
, phylib-relaxed
or nexus
.
https://github.com/neherlab/treetime/blob/master/treetime/treeanc.py#L271
Try loading your alignment with Bio.AlignIO.read first.
2) are you sure you are using the right python distribution? The previous script evidently loaded TreeAnc
Bio.AlignIO.read was able to load the alignment file just fine.
sorry. I only ever tested fasta format. there was an obvious problem reading other formats than fasta. I just pushed a fix in a0ca5b55ea738294ccc3705260e443adde99b3fe. You can either reinstall HEAD, or use fasta format.
Alright, thank you.
thanks, my bad! very useful to get these reports.
Thanks for helping out too. Will try using a fasta format
I installed treetime but when I tried running it I encountered an error which can be found below:
Can you kindly help out? Thanks