I want to convert a data frame of below kind to Newick string
structure so that I can create a Phylogenetic tree.I found this
similar post,but unable to write a script for my data frame.

http://stackoverflow.com/questions/15343338/how-to-convert-a-data-frame-to-tree-structure-object-such-as-dendrogram



GENE     DISEASE

AGTR1    cancer
AGTR1    parkinson's
ALOX5    myocardial infarct
AR       breast cancer

The basis of levels is to be DISEASE column.

Thanks

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/

Reply via email to