getLabGenealogy: Create genealogy

Description Usage Arguments Value Author(s) See Also Examples

View source: R/getLabGenealogy.R

Description

Create a labelled genealogy from an epidemiological record

Usage

1
getLabGenealogy(epirecord, epsilon = 0.001234)

Arguments

epirecord

an epidemiological record, as output from the function makeEpiRecord. It must be a matrix of at least two rows and with five columns named "Infectee", "Infector", "InfnTime", "RecTime", "DoneFlag".

epsilon

an optional small number to be used for branch lengths which would otherwise be zero.

Value

An object of class phylo representing the transmission tree from infectors to infectees.

Author(s)

Caroline Colijn [email protected]

Michelle Kendall [email protected]

See Also

makeEpiRecord

Examples

1
2
3
4
5
## Generate an epidemiological record:
myepirecord <- makeEpiRecord(c(1,2,3,4))
## make the corresponding genealogy from this record:
mygenealogy <- getLabGenealogy(myepirecord)
plot(mygenealogy)

phyloTop documentation built on Oct. 10, 2017, 5:06 p.m.