testMRCA
performs a permutation test on a set of lineage trees to determine
the significance of an annotation's association with the MRCA position of the lineage
trees.
1 2 
graphs 
list of igraph object containing annotated lineage trees. 
field 
string defining the annotation field to test. 
root 
name of the root (germline) node. 
exclude 
vector of strings defining 
nperm 
number of permutations to perform. 
progress 
if 
An MRCATest object containing the test results and permutation realizations.
Uses getMRCA and getPathLengths. See plotMRCATest for plotting the permutation distributions.
1 2 3 4 5 6  # Define example tree set
graphs < ExampleTrees[110]
# Perform MRCA test on isotypes
x < testMRCA(graphs, "ISOTYPE", nperm=10)
print(x)

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.