Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

getnewickstr does not work on the output of getmatrix

1 Ansicht (letzte 30 Tage)
Alireza
Alireza am 3 Sep. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I have a tree as following,
tree_newick = '(A:4,(B:3,(C:1.2, D:1.5)F:1)E:2.5)O:0';
[dist_matrix, ID, DIST] = getmatrix(mytree);
getnewickstr(dist_matrix)
Error using seqlinkage (line 65) Size of DIST not compatible with the output of the SEQPDIST function.
I believe "getnewickstr", only function on pair-wise matrices. so the question is, is there any function to produce similarity matrix of a tree_newick_format data ?
Thanks

Antworten (2)

Arthur Goldsipe
Arthur Goldsipe am 5 Sep. 2014
A quick search of the documentation for the term Newick shows that phytreeread will read files containing trees in the Newick format. This means you'll need to make sure the tree string is stored in a file somewhere.

Alireza
Alireza am 5 Sep. 2014
Thanks for your reply.
The problem is not about reading the Newick - since I can read it and run the getmatrix on it. The problem is about calculating the dist_matrix.
As I explain, "I believe "getnewickstr", only function on pair-wise matrices. ". so the question is, is there any function to produce similarity matrix of a tree_newick_format data ?

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by