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_regex |
Sample names matching this regular expression will be retained and closest matches also retained |
n |
sample size from outside region |
D |
An optional distance matrix between sequences. Can be based on cophenetic distance from ML tree. If not provided will compute using a HKY model (slow!) |
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.