Filter SNPs by MAF, window size, min/max position, maximum number of SNPs, or gene coordinates. You can also explicitly remove certain variants.
filter_snps(
dat,
bp_distance = 5e+05,
remove_variants = FALSE,
min_POS = NA,
max_POS = NA,
max_snps = NULL,
min_MAF = NULL,
trim_gene_limits = FALSE,
verbose = TRUE
)
Fine-mapping results data.
Distance around the lead SNP to include.
A list of SNP RSIDs to remove.
Minimum genomic position to include.
Maximum genomic position to include.
Maximum number of SNPs to include.
Minimum Minor Allele Frequency (MAF) of SNPs to include.
If a gene name is supplied to this argument
(e.g. trim_gene_limits="BST"
), only SNPs within the gene body
will be included.
Print messages.
Other SNP filters:
gene_trimmer()
,
limit_snps()
dat <- echodata::filter_snps(dat = echodata::BST1)
#> FILTER:: Filtering by SNP features.
#> + FILTER:: Post-filtered data: 2913 x 26