limit_snps | R Documentation |
Start with the lead SNP and keep expanding the window until you reach
the desired number of SNPs.
dat
should only contain one locus from one chromosome.
limit_snps(dat, max_snps = 500, verbose = TRUE)
dat |
A data.frame that contains at least the following columns:
|
max_snps |
The maximum number of SNPs to keep in the resulting data.table. |
verbose |
Print messages. |
A filtered data.table.
Other SNP filters:
filter_snps()
,
gene_trimmer()
dat2 <- echodata::limit_snps(dat = echodata::BST1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.