ancestry: Get the ancestry of each genotype

Description Usage Arguments Value Examples

View source: R/sweepmetrics.R

Description

Get the ancestry of each genotype

Usage

1
ancestry(edges)

Arguments

edges

Dataframe comprising an adjacency matrix, with column names "Parent" and "Identity"

Value

Dataframe listing the ancestors of each genotype (one row per Identity value).

Examples

1
2
3
4
5
library(dplyr)
phylo <- filter(driver_phylo, CellsPerSample == -1)
library(ggmuller)
edges <- get_edges(phylo)
ancestry(edges)

robjohnnoble/demonanalysis documentation built on June 30, 2020, 12:47 a.m.