make_gene_genealogy()
generates a random gene genealogy from a table.
Usage
make_gene_genealogy(samples)
gather_segments(samples)
count_uncoalesced(genealogy)
annotate_sampled(genealogy)
Arguments
- samples
A data.frame: sample_family
or output from gather_segments()
.
- genealogy
An output from make_gene_genealogy()
.
Details
gather_segments()
transforms an individual-based sample_family
into
a segment-based table.
count_uncoalesced()
counts uncoalesced roots of the samples.
annotate_sampled()
adds "sampled" edge attribute: TRUE
if sampled,
FALSE
if upstream of samples, NA
if unrelated.