injectSNPs {BSgenome} | R Documentation |
Inject SNPs from a package of SNP locations into a genome.
injectSNPs(bsgenome, SNPlocs_pkgname) available.SNPs()
bsgenome |
[TODO] |
SNPlocs_pkgname |
[TODO] |
[TODO]
[TODO]
H. Pages
## Look at the SNP locations packages currently available: available.SNPs() if (interactive()) { ## Make your choice and install with: source("http://bioconductor.org/biocLite.R") biocLite("SNPlocs.Hsapiens.dbSNP.20071016") ## Inject into the Human genome: library(BSgenome.Hsapiens.UCSC.hg18) Hsapiens HsWithSNPs <- injectSNPs(Hsapiens, "SNPlocs.Hsapiens.dbSNP.20071016") HsWithSNPs alphabetFrequency(Hsapiens$chr1) alphabetFrequency(HsWithSNPs$chr1) }