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.11.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 23rd, 2023

Functions in phangorn (2.11.1)

add.tips

Add tips to a tree
CI

Consistency Index and Retention Index
SH.test

Shimodaira-Hasegawa Test
Laurasiatherian

Laurasiatherian data (AWCMEE)
add_ci

Draw Confidences Intervals on Phylogenies
NJ

Neighbor-Joining
SOWH.test

Swofford-Olsen-Waddell-Hillis Test
addConfidences

Compare splits and add support values to an object
add_edge_length

Assign and compute edge lengths from a sample of trees
Ancestors

tree utility function
as.networx

Conversion among phylogenetic network objects
baseFreq

Summaries of alignments
bab

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

Ancestral character reconstruction.
chloroplast

Chloroplast alignment
cladePar

Utility function to plot.phylo
allSplits

Splits representation of graphs and trees.
allTrees

Compute all trees topologies.
bootstrap.pml

Bootstrap
phyDat

Conversion among Sequence Formats
designTree

Compute a design matrix or non-negative LS
codonTest

codonTest
coalSpeciesTree

Species Tree
ldfactorial

Arithmetic Operators
cophenetic.networx

Pairwise Distances from a Phylogenetic Network
consensusNet

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

Plot of a Sequence Alignment
densiTree

Plots a densiTree.
delta.score

Computes the \(\delta\) score
maxCladeCred

Maximum clade credibility tree
getClans

Clans, slices and clips
mast

Maximum agreement subtree
dna2codon

Translate nucleic acid sequences into codons
lento

Lento plot
dist.hamming

Pairwise Distances from Sequences
discrete.gamma

Discrete Gamma and Beta distribution
dist.p

Pairwise Polymorphism P-Distances from DNA Sequences
distanceHadamard

Distance Hadamard
identify.networx

Identify splits in a network
hadamard

Hadamard Matrices and Fast Hadamard Multiplication
modelTest

ModelTest
threshStateC

Internal phangorn Functions
neighborNet

Computes a neighborNet from a distance matrix
acctran

Parsimony tree.
nni

Tree rearrangements.
plot.networx

plot phylogenetic networks
print.phyDat

Generic functions for class phyDat
getRoot

Tree manipulation
phangorn-package

phangorn: Phylogenetic Reconstruction and Analysis
mites

Morphological characters of Mites (Schäffer et al. 2010)
plotBS

Plotting trees with bootstrap values
read.aa

Read Amino Acid Sequences in a File
pml.control

Auxiliary for Controlling Fitting
pmlCluster

Stochastic Partitioning
multiphyDat2pmlPart

Partition model.
lli

Internal maximum likelihood functions.
as.pml

Likelihood of a tree.
pml_bb

Likelihood of a tree.
read.nexus.splits

Function to import and export splits and networks
pmlMix

Phylogenetic mixture model
yeast

Yeast alignment (Rokas et al.)
treedist

Distances between trees
transferBootstrap

Transfer Bootstrap
reexports

Objects exported from other packages
simSeq

Simulate sequences.
upgma

UPGMA and WPGMA
read.phyDat

Import and export sequence alignments
writeDist

Writing and reading distances in phylip and nexus format
superTree

Super Tree methods
splitsNetwork

Phylogenetic Network