Skip to contents

Sprinkle mutations on genealogy

Usage

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

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

Details

make_sample creates a genotype matrix from a given genealogy tree.