Skip to contents

Sprinkle mutations on genealogy

Usage

make_sample(graph, nsam = 0L, mu = NULL, segsites = NULL)

edge_lengths(graph, mu = 0, accel = 0)

Arguments

graph

igraph

nsam

number of cells to sample

mu

mutation rate per cell division (ignored if segsites is given)

segsites

number of segregating sites

accel

assumption undocumented yet

Details

make_sample creates a genotype matrix from a given genealogy tree.

edge_lengths() calculates lengths of edges on a given genealogy tree.