cluster_origin_comparison: Compute cumulative proportion of samples descended from...

Description Usage Arguments Value

View source: R/frequency0.R

Description

Compute cumulative proportion of samples descended from clusters originating within a specified time window

Usage

1
2
3
4
5
6
cluster_origin_comparison(
  s,
  mint = decimal_date(as.Date("2020-08-01")),
  maxt = Inf,
  res = 50
)

Arguments

s

data frame with del_introduction(character), sample_time(numeric)

mint

lower sample time bound. Clusters must have sample before this time

maxt

upper sample time bound. Clusters must have sample after this time

res

integer resolution of time axis

Value

list with 1) result with columns: cumulative fraction of samples descended from new clusters, number descended from old clusters, number descended from new clusters 2) data with cluster subset


emvolz-phylodynamics/variantAnalysis documentation built on Nov. 13, 2021, 7:16 p.m.