Learn R Programming

ips: interfaces to phylogenetic software

NOTE: ips contains most functions that were formerly included in the phyloch package plus some more recent functions. Those phyloch functions related to tree plotting have been moved to the viper package.

This is a bundle of functions that present interfaces to popular phylogenetic software for sequence alignment, masking of sequence alignments, and estimation of phylogenies and ancestral character states. In additions, there functions for reading, manipulating and writing phylogenetic data (multiple sequence alignments and phylogenetic trees).

Introduction

There are several functions for reading and writing DNA sequences in FASTA, PHYLIP, and NEXUS format: read.fas, read.phy, read.nex, write.fas, write.phy, and write.nex. Some functions are available for integrating BEAST with R. XML input files for BEAST can be generated with rbeauti. Two functions are designed to read TreeAnnotator output: read.beast will render an object of class phylo with additional node statistics appended as list elements. These additional node statistics will be lost be the subsequent use of ladderize or rotate (or similar functions that change the ordering of internal nodes).read.beast.table also parses the TreeAnnotator output, but returns a matrix of node statistics. This package itself does not implement techniques for phylogenetic analyses, but provides a series of wrappers for commonly used software packages. Sequence alignment can be done with the mafft and prank; cleaning of sequences with gblocks and aliscore. The function raxml and mrbayes are intended for phylogenetic tree search. Running mrbayes with argument run = FALSE can be used to create MrBayes-executable NEXUS files. Finally, wrappers are provided for Multistate in the BayesTraits package (see multistateML and multistateMCMC). Several plotting functions (HPDbars, clade.bars, box.clades, box.tips, tip.color, edge.color have been moved to the viper package.

Installation

ips is available via CRAN and can be installed:

install.packages("ips")

Or you can install the development version via GitHub with:

# install.packages("devtools")
devtools::install_github("heibl/ips")

Copy Link

Version

Install

install.packages('ips')

Monthly Downloads

214

Version

0.0.13

License

GPL-3

Maintainer

Martin R. Smith

Last Published

February 23rd, 2026

Functions in ips (0.0.13)

neighboringPairs

Neighboring Nodes in a Minimum Spanning Tree
mrbayes.prset

Set Priors for MrBayes
raxml.partitions

Partition scheme for RAxML
rbeauti

XML Input Files for BEAST
mrbayes.mcmc

MCMC Settings for MrBayes
eoi

Identification of Stem-Lineage-Edges and MRCAs
mrbayes.lset

Model Settings for MrBayes
partitionfinder

PartitionFinder
ntip

Numbers of Tips of (Sub)trees
sister

Identification of Sister Nodes and Clades
mafft

Sequence Alignment with MAFFT
pis

Number of Potentially-Informative Sites
ips.tree

Ips Phylogeny
phylo2mst

Conversion from PHYLO to MST Object
read.beast

Read Bayesian Trees
read.beast.table

Extract node data from BEAST chronogram
splitIntoClades

Find Monophyletic Subsets in Species Lists
traitRate

Trait-Dependent Shifts in Molecular Rate
raxml

Maximum Likelihood Tree Estimation with RAxML
prank

PRANK
multistate

MULTISTATE
read

Reading Sequence Files
rc

Reverse-Complement of DNA sequences
terminalSisters

Find Pairs of Sister Species
tipHeights

Tip Heights in a Phylogenetic Tree
trimEnds

Trim Alignment Ends
write.fas

Write DNA Sequences to File
unlistFirstLevel

Unlist To First Level Only
pathd8

PATHd8
mrbayes

Bayesian MCMC Tree Search with MrBayes
phylo2mafft

Convert Trees for MAFFT
mafft.merge

Profile Alignment with MAFFT
gblocks

Masking of Sequence Alignments with GBLOCKS
del.miss

Delete Missing Data from DNA Sequences
aliscore

Masking of Sequence Alignments with ALISCORE
EmptyCells

Identify/Delete Spurious Rows and Columns from DNA Alignments
beastLog

XML Parameter Nodes
deleteGaps

Remove Gap Positions From DNA Sequences
DNAbin2index

Conversion of DNAbin to Index
blastn

Nucleotide-Nucleotide BLAST
collapseUnsupportedEdges

Collapse Unsupported Edges/Branches in a Phylogeny
combMyTree

Graft Polytomies on Tips of Phylogeny
code.simple.gaps

Simple Gap/Indel Coding
descendants

Descendants of an Internal Node in a Phylogeny
fixNodes

Standard Node Numbering in Phylo Objects
index2DNAbin

Conversion of Index to DNAbin
forceEqualTipHeights

Equal Tip Heights
ips-package

Interfaces to Phylogenetic Software
ips-internal

Internal IPS Functions
ips.16S

Bark Beetle 16S Sequences
ips.28S

Bark Beetle 28S Sequences
ips.cox1

Bark Beetle COX1 Sequences