s614_phylodynamics: Run skygrowth and treestructure on clades defined by s614...

Description Usage Arguments Value Examples

View source: R/spike.R

Description

Run skygrowth and treestructure on clades defined by s614 polymorphism

Usage

1
s614_phylodynamics(tds, s614, ...)

Arguments

tds

List or multiPhylo of treedater trees or ape::phylo

s614

A data frame produced by compute_spike614genotype

...

Additional arguments passed to sarscov2::skygrowth1

Value

A list with skygrowth for G and D, and a list of treestructure tests for each tree

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
library( sarscov2 ) 
 spikedf = compute_spike614genotype( 'algn3.fasta', 'algn4.fasta' )
 # inspect spikedf to make sure it a assigned D or G 
 # some precomputed treedater trees corersponding to algn3.fasta: 
 tds = readRDS('tds.rds' )  
 result = s614_phylodynamics( tds, spikedf)
 print( result$treestructureTests  )
 # make a plot 
 add_ggR_sarscov2skygrowth( result$sgD, result$sgG )

## End(Not run)

emvolz-phylodynamics/sarscov2Rutils documentation built on Nov. 17, 2020, 9:22 a.m.