Learn R Programming

⚠️There's a newer version (3.2) of this package.Take me there.

MSCquartets (version 2.0.1)

Analyzing Gene Tree Quartets under the Multi-Species Coalescent

Description

Methods for analyzing and using quartets displayed on a collection of gene trees, primarily to make inferences about the species tree or network under the multi-species coalescent model. These include quartet hypothesis tests for the model, as developed by Mitchell et al. (2019) , simplex plots of quartet concordance factors as presented by Allman et al. (2020) , species tree inference methods based on quartet distances of Rhodes (2019) and Yourdkhani and Rhodes (2019) , the NANUQ algorithm for inference of level-1 species networks of Allman et al. (2019) , and the TINNIK algorithm for inference of the tree of blobs of an arbitrary network of Allman et al.(2022) . Software announcement by Rhodes et al. (2020) .

Copy Link

Version

Install

install.packages('MSCquartets')

Monthly Downloads

386

Version

2.0.1

License

MIT + file LICENSE

Maintainer

John Rhodes

Last Published

August 18th, 2024

Functions in MSCquartets (2.0.1)

dataGeneTreeSample

Simulated gene tree dataset from species tree
pTableYeastRokas

pTable for Yeast dataset
powerDivStat

Power divergence statistic of Cressie & Read
quartetCutTestInd

Multiple independent hypothesis tests for quartet counts fitting the Cut model under the NMSC
quartetCutTest

Hypothesis test for quartet counts fitting a resolved quartet tree of blobs under NMSC
WQDSAdjustLengths

Adjust edge lengths on tree built from Weighted Quartet distance to estimate metric tree
collapseEdges

Collapse short tree edges
quartetCutMLE

Maximum likelihood estimate of quartet tree of blobs topology and CF under Cut model
QDC

Compute Quartet Distance Consensus tree from gene tree data
QDS

Compute Quartet Distance Supertree
quartetDist

Compute quartet distance between taxa
compatibleSplits

Extract compatible splits
expectedCFs

Produce table of expected quartet concordance factors for a species tree
taxonNames

Get all taxon names from a collection of trees
quartetTableParallel

Produce table of counts of quartets displayed on trees, in parallel for large data sets
quartetTablePrint

Print a quartet table with nice formatting
WQDCrecursive

Compute the Recursive Weighted Quartet Distance Consensus tree from gene tree data
WQDC

Compute Weighted Quartet Distance Consensus tree from gene tree data
quartetWeightedDist

Compute the Weighted Quartet Distance between taxa
simplexCoords

Convert 3-d coordinates to 2-d probability simplex coordinates
dataYeastRokas

Yeast gene tree dataset
dataPapioniniVanderpool

Papionini gene tree dataset
estimateEdgeLengths

Estimate edge lengths on a species tree from gene tree quartet counts
dataHeliconiusMartin

Heliconius gene tree dataset
quartetTreeTest

Hypothesis test for quartet counts fitting a tree under the MSC
pvalHist

Plot histogram of log p-values in table
quartetBTinferencePlot

Produce simplex plot with results of B/T-quartet inference
quartetStarTestInd

Multiple independent hypothesis tests for gene quartet counts fitting a species quartet star tree under the MSC
quartetTable

Produce table of counts of quartets displayed on trees
quartetTreeTestInd

Multiple independent hypothesis tests for quartet counts fitting a species tree under the MSC
simplexLabels

Label vertices of 2-d probability simplex
simplexPoint

Plot point in 2-d probability simplex
treeFromSplits

Produce tree from compatible splits
nexusDist

Write a distance table to a file in nexus format
treeOfBlobs

Tree of blobs for a network
nodeGroups

Groups taxa by deleting a node in a tree
quartetTableResolved

Modify quartet table to show only resolved quartets
topDist

Topological distances on a tree
quartetTallyCpp

Build quartet table from distances
quartetTableCollapse

Reduce quartet table by combining some taxa
simplexText

Add text at a point in 2-d probability simplex
sortQuartetTableRows

Sort quartet table rows by lex order
quartetTableDominant

Produce table of dominant quartets, with estimates of internal edge lengths
quartetTestPlot

Produce simplex plot with results of quartet hypothesis tests
initBquartets

Initialize vector of B quartets
quartetTreeErrorProb

Bayesian posterior probability of error in 4-taxon unrooted species tree topology estimate
simplexSegment

Plot line segment in 2-d probability simplex
quartetNetworkDist

Compute network quartet distance between taxa
quartetStarTest

Hypothesis test for quartet counts fitting a star tree under the MSC
simplexPrepare

Draw 2-d probability simplex, with model lines for T3 or T1 model
HolmBonferroni

Apply Holm-Bonferroni method to adjust for multiple tests
T1density

Probability density function for Model T1
MSCquartets-package

Multispecies Coalescent Model Quartet Package
M0

Modified Struve function
BQinference

Main loop of B-quartet inference
T3density

Probability density function for Model T3
NANUQ

Apply NANUQ network inference algorithm to gene tree data
NANUQdist

Compute NANUQ distance and write to file
WQDS

Compute the Weighted Quartet Distance Supertree
cutDensity

Probability density function for Cut Model
TINNIK

TINNIK algorithm to infer species tree of blobs
TINNIKdist

Compute TINNIK distance from quartets and hypothesis test p-values