Learn R Programming

⚠️There's a newer version (2.12.1) of this package.Take me there.

phangorn

phangorn is a package for phylogenetic reconstruction and analysis in the R language. phangorn offers the possibility of reconstructing phylogenies with distance based methods, maximum parsimony or maximum likelihood (ML) and performing Hadamard conjugation. Extending the general ML framework, this package provides the possibility of estimating mixture and partition models. Furthermore, phangorn offers several functions for comparing trees, phylogenetic models or splits, simulating character data and performing congruence analyses.

You can install

  • the latest released version install.packages("phangorn")
  • the latest development version remotes::install_github("KlausVigo/phangorn")

To install the development version you may need to install the Biostrings and seqLogo package from bioconductor first:

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install(c("Biostrings", "seqLogo"))

Also the development version usually depends on the latest ape development version and information to download can be found here. Additionally you may need to install on windows Rtools and on mac XCode and GFortran.

If you use phangorn please cite:

Schliep K.P. 2011. phangorn: phylogenetic analysis in R. Bioinformatics, 27(4) 592-593

License

phangorn is licensed under the GPLv2.

Copy Link

Version

Install

install.packages('phangorn')

Monthly Downloads

15,105

Version

2.7.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Klaus Schliep

Last Published

May 3rd, 2021

Functions in phangorn (2.7.0)

SOWH.test

Swofford-Olsen-Waddell-Hillis Test
CI

Consistency Index and Retention Index
allTrees

Compute all trees topologies.
ancestral.pml

Ancestral character reconstruction.
add.tips

Add tips to a tree
createLabel

Compare splits and add support values to an object
Ancestors

tree utility function
chloroplast

Chloroplast alignment
SH.test

Shimodaira-Hasegawa Test
Laurasiatherian

Laurasiatherian data (AWCMEE)
coalSpeciesTree

Species Tree
NJ

Neighbor-Joining
consensusNet

Computes a consensusNetwork from a list of trees Computes a networx object from a collection of splits.
designTree

Compute a design matrix or non-negative LS
plotBS

Plotting trees with bootstrap values
identify.networx

Identify splits in a network
hadamard

Hadamard Matrices and Fast Hadamard Multiplication
cophenetic.networx

Pairwise Distances from a Phylogenetic Network
ldfactorial

Arithmetic Operators
cladePar

Utility function to plot.phylo
discrete.gamma

Discrete Gamma function
dist.hamming

Pairwise Distances from Sequences
pml.control

Likelihood of a tree.
as.networx

Conversion among phylogenetic network objects
codonTest

codonTest
getClans

Clans, slices and clips
dna2codon

Translate nucleic acid sequences into codons
delta.score

Computes the \(\delta\) score
modelTest

ModelTest
threshStateC

Internal phangorn Functions
read.aa

Read Amino Acid Sequences in a File
phangorn-package

Phylogenetic analysis in R
read.nexus.splits

Function to import and export splits and networks
allSplits

Splits representation of graphs and trees.
nni

Tree rearrangements.
pmlMix

Phylogenetic mixture model
acctran

Parsimony tree.
densiTree

Plots a densiTree.
neighborNet

Computes a neighborNet from a distance matrix
phyDat

Conversion among Sequence Formats
bab

Branch and bound for finding all most parsimonious trees
multiphyDat2pmlPart

Partition model.
distanceHadamard

Distance Hadamard
dist.p

Pairwise Polymorphism P-Distances from DNA Sequences
maxCladeCred

Maximum clade credibility tree
plot.networx

plot phylogenetic networks
splitsNetwork

Phylogenetic Network
simSeq

Simulate sequences.
reexports

Objects exported from other packages
read.phyDat

Import and export sequence alignments
yeast

Yeast alignment (Rokas et al.)
lli

Internal maximum likelihood functions.
pmlCluster

Stochastic Partitioning
getRoot

Tree manipulation
writeDist

Writing and reading distances in phylip and nexus format
upgma

UPGMA and WPGMA
bootstrap.pml

Bootstrap
lento

Lento plot
mast

Maximum agreement subtree
superTree

Super Tree methods
treedist

Distances between trees