| samples_filter | R Documentation | 
Filter out samples of a vcfR object based on depth
samples_filter(
  x,
  lower_quant = 0.05,
  stat = "median",
  filter_bot = TRUE,
  filter_top = FALSE,
  remove_nonpolymorphs = TRUE
)
| x | A vcfR object | 
| lower_quant | lower quantile to filter by. The top quantile will be  | 
| stat | Statistic to filter by. Right now, supports "median" to filter on median depth, "mean" to filter on mean depth, or "missingness" to filter on percent missing data. | 
| filter_bot | Omit samples in the bottom quantile | 
| filter_top | Omit samples in the top quantile | 
| remove_nonpolymorphs | After omitting samples, some variants will be nonpolymorphic. These should be removed. | 
A filtered vcfR object.
ultrafiltered_vcf <- samples_filter(filtered_vcf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.