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

21,473

Version

2.8.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

December 15th, 2021

Functions in phangorn (2.8.1)

allTrees

Compute all trees topologies.
NJ

Neighbor-Joining
SOWH.test

Swofford-Olsen-Waddell-Hillis Test
SH.test

Shimodaira-Hasegawa Test
ancestral.pml

Ancestral character reconstruction.
createLabel

Compare splits and add support values to an object
Laurasiatherian

Laurasiatherian data (AWCMEE)
CI

Consistency Index and Retention Index
Ancestors

tree utility function
add.tips

Add tips to a tree
as.networx

Conversion among phylogenetic network objects
coalSpeciesTree

Species Tree
bootstrap.pml

Bootstrap
bab

Branch and bound for finding all most parsimonious trees
consensusNet

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

Pairwise Distances from a Phylogenetic Network
densiTree

Plots a densiTree.
delta.score

Computes the \(\delta\) score
codonTest

codonTest
discrete.gamma

Discrete Gamma function
dist.hamming

Pairwise Distances from Sequences
mast

Maximum agreement subtree
designTree

Compute a design matrix or non-negative LS
ldfactorial

Arithmetic Operators
lento

Lento plot
getRoot

Tree manipulation
chloroplast

Chloroplast alignment
allSplits

Splits representation of graphs and trees.
maxCladeCred

Maximum clade credibility tree
dna2codon

Translate nucleic acid sequences into codons
cladePar

Utility function to plot.phylo
getClans

Clans, slices and clips
neighborNet

Computes a neighborNet from a distance matrix
modelTest

ModelTest
dist.p

Pairwise Polymorphism P-Distances from DNA Sequences
phangorn-package

phangorn: Phylogenetic Reconstruction and Analysis
plot.networx

plot phylogenetic networks
threshStateC

Internal phangorn Functions
phyDat

Conversion among Sequence Formats
plotBS

Plotting trees with bootstrap values
pml.control

Likelihood of a tree.
multiphyDat2pmlPart

Partition model.
pmlMix

Phylogenetic mixture model
nni

Tree rearrangements.
distanceHadamard

Distance Hadamard
acctran

Parsimony tree.
read.phyDat

Import and export sequence alignments
simSeq

Simulate sequences.
pmlCluster

Stochastic Partitioning
identify.networx

Identify splits in a network
lli

Internal maximum likelihood functions.
hadamard

Hadamard Matrices and Fast Hadamard Multiplication
splitsNetwork

Phylogenetic Network
superTree

Super Tree methods
writeDist

Writing and reading distances in phylip and nexus format
yeast

Yeast alignment (Rokas et al.)
treedist

Distances between trees
upgma

UPGMA and WPGMA
read.aa

Read Amino Acid Sequences in a File
read.nexus.splits

Function to import and export splits and networks