Description Usage Arguments Value Author(s) Examples
View source: R/gene_cpg_finder.R
Find the probes associated to a given gene symbol (UCSC) using Regex
1 | gene_cpg_finder(gene_symbol, annotation.gr)
|
gene_symbol |
A (list of) UCSC gene symbol(s) |
annotation.gr |
GenomicRanges object containing the annotation/features of the GMset (obtained through minfi::getAnnotation()) |
A (list of) GenomicRanges object(s) containing the CpG annotations associated to the gene of interest
Andrew Y.F. Li Yim
1 2 3 4 5 6 7 8 9 10 11 12 | #Load data
require(minfiData)
baseDir <- system.file("extdata", package = "minfiData")
targets <- read.450k.sheet(base = baseDir)
RGset <- read.450k.exp(targets = targets, recursive = T)
Mset <- preprocessIllumina(rgSet = RGset, bg.correct = T, normalize = "controls", reference = 2)
Rset <- ratioConvert(Mset)
GMset <- mapToGenome(Rset)
annotation.gr <- makeGRangesFromDataFrame(getAnnotation(GMset), keep.extra.columns = T, start.field = "pos", end.field = "pos")
gene_cpg_finder(gene_symbol = "TNF", annotation.gr = annotation.gr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.