Description Usage Arguments Value
View source: R/sampleSelection.R
Select samples based on quantile of sample time distribution. Requires date to be at and of sequence label. Alternatively can do a simple random sample within a region
1 2 3 4 5 6 7 8 9 | region_time_stratified_sample1(
region_regex,
n,
path_to_align,
smallGDpairs,
nregion = NULL,
path_to_save = NULL,
time_stratify_region = TRUE
)
|
region_regex |
Sample names matching this regular expression will be retained and closest matches also retained |
n |
sample size from outside region |
smallGDpairs |
A data frame or path to csv containing <ID1 ID2 Distance> such as produced by the 'tn93' tool |
nregion |
sample size within region; if null will include everything in region |
path_to_save |
Where to store (as fasta) the filtered alignment |
time_stratify_region |
If TRUE (default) will perform a time stratified sample within region, otherwise will do a simple random sample |
q_threshold |
Clock outlier threshold |
minEdge |
minimum branch length (substitutions per site) to stabilize clock inference |
A DNAbin alignment. Will also save to path_to_save
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.