Get the min/max coordinates of a given gene (including known regulatory regions, introns, and exons). Remove any SNPs from the data.frame that fall outside these coordinates.

gene_trimmer(dat, gene, min_POS = NA, max_POS = NA)

See also

Other SNP filters: filter_snps(), limit_snps()