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 phylogentic 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

1,093

Version

0.0.11

License

GPL-3

Maintainer

Last Published

July 4th, 2019

Functions in ips (0.0.11)

code.simple.gaps

Simple Gap/Indel Coding
collapseUnsupportedEdges

Collapse Unsupported Edges/Branches in a Phylogeny
forceEqualTipHeights

Equal Tip Heights
fixNodes

Standard Node Numbering in Phylo Objects
DNAbin2index

Conversion of DNAbin to Index
deleteGaps

Remove Gap Positions From DNA Sequences
deleteEmptyCells

Delete Spurious Rows and Columns from DNA Alignments
del.miss

Delete Missing Data from DNA Sequences
descendants

Descendants of an Internal Node in a Phylogeny
mafft

Sequence Alignment with MAFFT
pathd8

PATHd8
ips.28S

Bark Beetle 28S Sequences
phylo2mst

Conversion from PHYLO to MST Object
ips.16S

Bark Beetle 16S Sequences
phylo2mafft

Convert Trees for MAFFT
partitionfinder

PartitionFinder
ips-internal

Internal IPS Functions
ips-package

Interfaces to Phylogenetic Software
aliscore

Masking of Sequence Alignments with ALISCORE
read.beast.table

Extract node data from BEAST chronogram
index2DNAbin

Conversion of Index to DNAbin
read.beast

Read Bayesian Trees
gblocks

Masking of Sequence Alignments with GBLOCKS
mafft.merge

Profile Alignment with MAFFT
mrbayes

Bayesian MCMC Tree Search with MrBayes
mrbayes.lset

Model Settings for MrBayes
write.fas

Write DNA Sequences to File
unlistFirstLevel

Unlist To First Level Only
raxml.partitions

Partition scheme for RAxML
trimEnds

Trim Alignment Ends
neighboringPairs

Neighboring Nodes in a Minimum Spanning Tree
raxml

Maximum Likelihood Tree Estimation with RAxML
traitRate

Trait-Dependent Shifts in Molecular Rate
multistate

MULTISTATE
ips.cox1

Bark Beetle COX1 Sequences
ntip

Numbers of Tips of (Sub)trees
ips.tree

Ips Phylogeny
terminalSisters

Find Pairs of Sister Species
tipHeights

Tip Heights in a Phylogenetic Tree
eoi

Identification of Stem-Lineage-Edges and MRCAs
pis

Number of Potentially-Informative Sites
prank

PRANK
mrbayes.prset

Set Priors for MrBayes
rbeauti

XML Input Files for BEAST
mrbayes.mcmc

MCMC Settings for MrBayes
sister

Identification of Sister Nodes and Clades
read

Reading Sequence Files
splitIntoClades

Find Monophyletic Subsets in Species Lists