Entering edit mode
6.6 years ago
ammarsabir15
▴
70
Hi, I am trying to use codeml from PAML for phylogenetic analysis, but getting the same error again and again. The code used is given below:
>>> from Bio.Phylo.PAML import codeml
>>> cml = codeml.Codeml()
>>> cml.tree = "species.tree"
>>> cml.alignment = "align.phylip"
>>> cml.read_ctl_file("codeml.ctl")
>>> cml.run()
And the error is
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ammar/anaconda3/lib/python3.5/site-packages/Bio/Phylo/PAML/codeml.py", line 181, in run
raise IOError("The specified tree file does not exist.")
OSError: The specified tree file does not exist.
Although the current working directory contains all the required files as shown below:
>>> import os
>>> files = os.listdir(os.curdir)
>>> files
['align.phylip', 'codeml.ctl', 'species.tree']
How this problem can be resolved? The files used are here: alignment file, tree file and control file.
Thanks