MAPLE icon indicating copy to clipboard operation
MAPLE copied to clipboard

output in nexus file

Open MarliesJFrancine opened this issue 1 year ago • 4 comments

Is it possible to convert the output file from .tree format to a .nexus format? Several programs for further analysis require the file to be in nexus format. However, standard methods such as the write.nexus in R (ape package) do not seem to work because it cannot recognize the .tree file format.

MarliesJFrancine avatar Feb 01 '24 14:02 MarliesJFrancine

Yes, this is already implemented: MAPLE will write a nexus output tree when necessary, that is when using option --estimateMAT (which estimates a mutation-annotated tree) or --aBayesPlus (which calculates branch supports). Is this enough for you or would you need nexus trees without these additional bits of information?

NicolaDM avatar Feb 01 '24 14:02 NicolaDM

Thanks for the quick reply. I was looking for a nexus file without that additional information :)

MarliesJFrancine avatar Feb 01 '24 14:02 MarliesJFrancine

If you don't want to wait for me to implement this, a quick solution is to ask MAPLE to create a NEXUS tree (for example using option --estimateMAT ), and then copy-paste the output newick tree into the output nexus format, replacing the original tree in the nexus file. Does this work for you?

Also, do you know what is the problem with the trees in .tree format? These are standard newick trees, every software should be able to read them. Have you tried changing the extensions of the files?

NicolaDM avatar Feb 01 '24 15:02 NicolaDM

I will apply the quick solution for now, but thank you for implementing it perhaps at a later point :)

I unfortunately do not know what the issue is exactly, even when changing the extensions, the software says "input file is not in nexus format", so perhaps there is a slight difference somewhere between the two files.

MarliesJFrancine avatar Feb 01 '24 15:02 MarliesJFrancine