Description Usage Arguments Value Author(s) Examples
Removes CpGs that overlap with SNPs from methylation GRanges object.
1 | removeSNPs(m, snps)
|
m |
GRanges object containing the methylation data. |
snps |
GRanges object containing the SNPs. |
The methylation GRanges object (m) with all CpGs overlapping SNPs removed.
Lukas Burger lukas.burger@fmi.ch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library(MethylSeekR)
# get chromosome lengths
library("BSgenome.Hsapiens.UCSC.hg18")
sLengths=seqlengths(Hsapiens)
# read methylation data
methFname <- system.file("extdata", "Lister2009_imr90_hg18_chr22.tab",
package="MethylSeekR")
meth.gr <- readMethylome(FileName=methFname, seqLengths=sLengths)
#read SNP data
snpFname <- system.file("extdata", "SNVs_hg18_chr22.tab",
package="MethylSeekR")
snps.gr <- readSNPTable(FileName=snpFname, seqLengths=sLengths)
# remove SNPs
meth.gr <- removeSNPs(meth.gr, snps.gr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.