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

677

Version

0.1.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Martin R. Smith

Last Published

July 8th, 2026

Functions in ips (0.1.1)

mrbayes.mcmc

MrBayes MCMC settings
ips-package

Interfaces to Phylogenetic Software
mrbayes.prset

MrBayes prior settings
mrbayes.lset

MrBayes model settings
raxml.partitions

Partition scheme for RAxML
phylo2mst

Conversion from PHYLO to MST Object
mafft.merge

Profile Alignment with MAFFT
mafft

Sequence Alignment with MAFFT
raxml

Maximum Likelihood Tree Estimation with RAxML
mrbayes

Bayesian MCMC Tree Search with MrBayes
neighboringPairs

Neighboring Nodes in a Minimum Spanning Tree
ips.tree

Ips Phylogeny
prank

PRANK
ntip

Numbers of Tips of (Sub)trees
phylo2mafft

Convert Trees for MAFFT
terminalSisters

Find Pairs of Sister Species
splitIntoClades

Find Monophyletic Subsets in Species Lists
read

Reading Sequence Files
pis

Number of Potentially-Informative Sites
multistate

MULTISTATE
tipHeights

Tip Heights in a Phylogenetic Tree
sister

Identification of Sister Nodes and Clades
eoi

Identification of Stem-Lineage-Edges and MRCAs
read.beast.table

Extract node data from BEAST chronogram
ips.cox1

Bark Beetle COX1 Sequences
traitRate

Trait-Dependent Shifts in Molecular Rate
read.beast

Read Bayesian Trees
pathd8

PATHd8
unlistFirstLevel

Unlist To First Level Only
trimEnds

Trim Alignment Ends
rbeauti

XML Input Files for BEAST
partitionfinder

PartitionFinder
rc

Reverse-Complement of DNA sequences
write.fas

Write DNA Sequences to File
collapseUnsupportedEdges

Collapse Unsupported Edges/Branches in a Phylogeny
beastLog

XML Parameter Nodes
aperm.DNAbin

Array Transposition for DNAbin
combMyTree

Graft Polytomies on Tips of Phylogeny
aliscore

Masking of Sequence Alignments with ALISCORE
code.simple.gaps

Simple Gap/Indel Coding
blastn

Nucleotide-Nucleotide BLAST
del.miss

Delete Missing Data from DNA Sequences
fixNodes

Standard Node Numbering in Phylo Objects
gblocks

Masking of Sequence Alignments with GBLOCKS
ips-internal

Internal IPS Functions
DNAbin2index

Conversion of DNAbin to Index
EmptyCells

Identify/Delete Spurious Rows and Columns from DNA Alignments
index2DNAbin

Conversion of Index to DNAbin
ips.16S

Bark Beetle 16S Sequences
deleteGaps

Remove Gap Positions From DNA Sequences
forceEqualTipHeights

Equal Tip Heights
descendants

Descendants of an Internal Node in a Phylogeny
ips.28S

Bark Beetle 28S Sequences