Question: Convert Nexus format to Newick format
0
gravatar for ArusjakGevorgyan
14 months ago by
Sweden
ArusjakGevorgyan20 wrote:

Hi everyone!

I have just started with Perl and I need to convert my Nexus files into Newick format but I feel that it's too complicated for my level of knowledge to write this script, I think that I'm overthinking every time I try to write this script. Do someone know how I can convert all of my 1995 files into Newick format? Or a page where I can read how to convert files for beginners? I will be very grateful for your help.

newick nexus converter perl • 1.5k views
ADD COMMENTlink modified 14 months ago by lieven.sterck4.5k • written 14 months ago by ArusjakGevorgyan20

Does it have to be a Perl module or you could try BioPython Phylo.convert instead?

ADD REPLYlink written 14 months ago by Sej Modha4.2k

Thank you, I can try to read about it. But do you know if I have to write a python script with this converter function or it is build in BioPython?

ADD REPLYlink written 14 months ago by ArusjakGevorgyan20

http://phylogeny.lirmm.fr/phylo_cgi/data_converter.cgi
https://www.kmeverson.org/blog/convert-among-alignment-file-formats-nexus-phylip-fasta-etc

ADD REPLYlink written 14 months ago by genomax65k

Thank you so much, I will read about this.

ADD REPLYlink written 14 months ago by ArusjakGevorgyan20
0
gravatar for lieven.sterck
14 months ago by
lieven.sterck4.5k
VIB, Ghent, Belgium
lieven.sterck4.5k wrote:

perhaps this little tools will do it TreeCon-Tools

ADD COMMENTlink modified 14 months ago • written 14 months ago by lieven.sterck4.5k

Thank you so much for your help.

ADD REPLYlink written 14 months ago by ArusjakGevorgyan20

Are you sure about that? Only formats supported seem to be NH/NHX and TreeCon.

ADD REPLYlink written 14 months ago by genomax65k

ah, you might be right it only seems to support Newick format and not the Nexus.

I think using treeCon you might be able to switch formats as well but that is becoming quite cumbersome ;-)

ADD REPLYlink modified 14 months ago • written 14 months ago by lieven.sterck4.5k
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: 1125 users visited in the last hour