Question: Error Running codeml
0
gravatar for ammarsabir15
20 months ago by
ammarsabir1560
ammarsabir1560 wrote:

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

paml alignment phylogeny • 741 views
ADD COMMENTlink modified 20 months ago by Sishuo Wang190 • written 20 months ago by ammarsabir1560
1
gravatar for Sishuo Wang
20 months ago by
Sishuo Wang190
The Chinese University of Hong Kong
Sishuo Wang190 wrote:

Hi ammarsabir15,

In the second line of the control file, it is written as treefile = tree.txt. So, you may need to rename your tree file to "tree.txt" instead of "species.tree", and do the same thing for the alignment file ("seqfile.txt").

ADD COMMENTlink modified 20 months ago • written 20 months ago by Sishuo Wang190
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1361 users visited in the last hour