Dendropy looks for DNA alphabet when I use Protein.get

4 views
Skip to first unread message

taua...@gmail.com

unread,
May 4, 2017, 11:49:41 AM5/4/17
to DendroPy Users
Hi all,

I am starting to use dendropy now. I have a very simple script in which I want to convert a Nexus dataset into a Phylip dataset:

import dendropy

import sys


concat = dendropy.ProteinCharacterMatrix.get(path=sys.argv[1], schema="nexus")

concat.write(path="teste.phy", schema="phylip")


But it returns an error saying that it cannot recognize the first amino acid because it is not in the DNA alphabet (of course).

dendropy.dataio.nexusreader.InvalidCharacterStateSymbolError: Error parsing data source '46taxa_concatenated.nex' on line 7 at column 14: Unrecognized character state symbol for state alphabet 'DNA' (DnaStateAlphabet) : 'L'


Anyone came across this issue before? Just installed dendropy, so I am using the latest version 4.2.0

Thank you!
Tauana

Reply all
Reply to author
Forward
0 new messages