Converting *.con.tre into Newick format
1
2
Entering edit mode
8.5 years ago
jee-wee ▴ 20

Hi,

To infer duplication events on a gene tree given a species tree I'm using the Archaeopteryx package from Christian Zmasek. I would like to use a .con.tre generated by MrBayes as a gene tree. Can someone explain to me how to convert this .con.tre file into Newick format? (Without losing the posterior probability scores)

This is how the file looks like: con.tre.file

Posterior-probability MrBayes Newick • 8.4k views
ADD COMMENT
0
Entering edit mode

how does this .con.tre look like? Add the text in question.

ADD REPLY
0
Entering edit mode

This output format should be in Nexus format. Searching Nexus to Newick should help you find the answer. Nexus format should contain the tree already in Newick format in a section, so in principle it would be just copy-paste.

ADD REPLY
0
Entering edit mode

This is the *.con.tre file and there is no newick section present in this file. But thanks for your answer.

ADD REPLY
1
Entering edit mode

The part following con_all_compat IS the newick section. Remove the stuff in square brackets and you get a plain newick file. It might be fine if you don't remove it too.

ADD REPLY
0
Entering edit mode

You're right, Archaeopteryx opened the .con.tre file as is, no problems whatsoever! Moreover, if after opening the .con.tre file in Archaeopteryx, one clicks on the "View" the menu, and then the "as Newick" option, it converts the file to Newick for the user! And then clicking "Copy to Clipboard" allowed me to paste the Newick string into a blank document really easily and get it converted to Newick. Thank you for your help!

ADD REPLY
0
Entering edit mode

Try to use FigTree to open and save as Newick like described here: how to convert a NEXUS treefile to a Newick ultrametric treefile

ADD REPLY
0
Entering edit mode
3.0 years ago
shiy05 ▴ 30

Using TreeGraph2:

open nexus file with TreeGraph2, then: File - Export to tree format,

In the dialog box, choose format "newick", and choose "internal node names" : Hidden branch data with the ID "prob(percent)"

click export

ADD COMMENT

Login before adding your answer.

Traffic: 767 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6