# NOT RUN {
# download an example genomic data set
prefix <- download_data(dirname = tempdir())
# create an EIGENSTRAT R object from the downloaded data
snps <- eigenstrat(prefix)
# get the path to an example BED file
bed <- file.path(dirname(prefix), "regions.bed")
# BED file contains regions to keep in an analysis
snps_kept <- filter_bed(snps, bed)
# BED file contains regions to remove from an analysis
snps_removed <- filter_bed(snps, bed, remove = TRUE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab