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

14,602

Version

2.7.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Klaus Schliep

Last Published

July 13th, 2021

Functions in phangorn (2.7.1)

Laurasiatherian

Laurasiatherian data (AWCMEE)
CI

Consistency Index and Retention Index
SH.test

Shimodaira-Hasegawa Test
allTrees

Compute all trees topologies.
SOWH.test

Swofford-Olsen-Waddell-Hillis Test
Ancestors

tree utility function
add.tips

Add tips to a tree
ancestral.pml

Ancestral character reconstruction.
createLabel

Compare splits and add support values to an object
NJ

Neighbor-Joining
consensusNet

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

Chloroplast alignment
coalSpeciesTree

Species Tree
codonTest

codonTest
bab

Branch and bound for finding all most parsimonious trees
bootstrap.pml

Bootstrap
cophenetic.networx

Pairwise Distances from a Phylogenetic Network
dist.p

Pairwise Polymorphism P-Distances from DNA Sequences
distanceHadamard

Distance Hadamard
cladePar

Utility function to plot.phylo
as.networx

Conversion among phylogenetic network objects
allSplits

Splits representation of graphs and trees.
dna2codon

Translate nucleic acid sequences into codons
identify.networx

Identify splits in a network
getClans

Clans, slices and clips
hadamard

Hadamard Matrices and Fast Hadamard Multiplication
designTree

Compute a design matrix or non-negative LS
modelTest

ModelTest
neighborNet

Computes a neighborNet from a distance matrix
dist.hamming

Pairwise Distances from Sequences
discrete.gamma

Discrete Gamma function
getRoot

Tree manipulation
ldfactorial

Arithmetic Operators
maxCladeCred

Maximum clade credibility tree
densiTree

Plots a densiTree.
delta.score

Computes the \(\delta\) score
pmlMix

Phylogenetic mixture model
pmlCluster

Stochastic Partitioning
lli

Internal maximum likelihood functions.
plotBS

Plotting trees with bootstrap values
nni

Tree rearrangements.
pml.control

Likelihood of a tree.
acctran

Parsimony tree.
threshStateC

Internal phangorn Functions
phangorn-package

Phylogenetic analysis in R
mast

Maximum agreement subtree
phyDat

Conversion among Sequence Formats
lento

Lento plot
plot.networx

plot phylogenetic networks
simSeq

Simulate sequences.
splitsNetwork

Phylogenetic Network
read.phyDat

Import and export sequence alignments
reexports

Objects exported from other packages
multiphyDat2pmlPart

Partition model.
treedist

Distances between trees
superTree

Super Tree methods
read.aa

Read Amino Acid Sequences in a File
yeast

Yeast alignment (Rokas et al.)
read.nexus.splits

Function to import and export splits and networks
upgma

UPGMA and WPGMA
writeDist

Writing and reading distances in phylip and nexus format