Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dendrograms for Evolutionary Analysis

NotificationsYou must be signed in to change notification settings

ropensci/phylogram

Repository files navigation

DOICRAN_Status_BadgeBuild StatuscodecovProject StatusLicense: GPL v3DOIORCiD


Thephylogram R package is a tool for for developingphylogenetic trees as deeply-nested lists known as "dendrogram" objects.It provides functions for conversion between "dendrogram" and"phylo" class objects, as well as several tools for command-line treemanipulation and import/export via Newick parenthetic text.This improves accessibility to the comprehensive range of object-specificanalytical and tree-visualization functions found across a wide array ofbioinformatic R packages.

Installation

To downloadphylogram from CRAN and load the package, run

install.packages("phylogram")library("phylogram")

To download the latest development version from GitHub, run:

devtools::install_github("ropensci/phylogram",build_vignettes=TRUE) library("phylogram")

Example: reading and writing trees

Consider the simple example of a tree with three members named"A", "B" and "C", where "B" and "C" are more closely relatedto eachother than they are to "A".An unweighted Newick string for this tree would be "(A,(B,C));".This text can be imported as adendrogram object using theread.dendrogram functionas follows:

library("phylogram")newick<-"(A,(B,C));"x<- read.dendrogram(text=newick)plot(x)

The following command writes the object back to the console inNewick format without edge weights:

write.dendrogram(x,edges=FALSE)

The syntax is similar when reading and writing text files,except that thetext argument is replaced byfile and avalid file path is passed to the function.

To convert the dendrogram to a "phylo" object, run

y<- as.phylo(x)

These and more examples are available in the package vignette.To view the vignette, runvignette("phylogram-vignette") or access itdirectly fromCRAN.

Help

An overview of the package with links to the function documentation can be found by running

?phylogram

If you experience a problem using this package pleaseeither raise it as an issue onGitHubor post it on thephylogramgoogle group.

Acknowledgements

This software was developed atVictoria University of Wellingtonwith funding from a Rutherford Foundation Postdoctoral Research Fellowshipaward from the Royal Society of New Zealand.

ropensci_footer


[8]ページ先頭

©2009-2025 Movatter.jp