sesamize | R Documentation |
"fix" a SummarizedExperiment (for which IDATs may be unavailable) with Sesame
sesamize(
x,
genome = "hg19",
BPPARAM = SerialParam(),
mft = NULL,
sce = TRUE,
verbose = FALSE,
...
)
x |
SummarizedExperiment-derived object with assays Red & Green |
genome |
Which genome should the probes be mapped to? (hg19) |
BPPARAM |
a BiocParallelParam object (SerialParam()) |
mft |
a data.frame with columns Probe_ID, M, U, and col (guess) |
sce |
return SingleCellExperiment rather than a RatioSet? (TRUE) |
verbose |
be verbose? (FALSE) |
... |
additional arguments passed to openSesame |
a sesamized SingleCellExperiment or GenomicRatioSet from x
# reprocess some 450k data from an existing RGChannelSet
if (require(FlowSorted.CordBloodNorway.450k) &&
require(IlluminaHumanMethylation450kmanifest) &&
require(IlluminaHumanMethylation450kanno.ilmn12.hg19)) {
sesamized <- sesamize(FlowSorted.CordBloodNorway.450k[,1:2])
}
# reprocess some TCGA 450k data from IDATs
if (require(minfi) &&
require(TCGAMethylation450k) &&
require(IlluminaHumanMethylation450kmanifest) &&
require(IlluminaHumanMethylation450kanno.ilmn12.hg19)) {
TCGA_path <- system.file("extdata","idat", package="TCGAMethylation450k")
TCGA_IDATs <- list.files(TCGA_path)
TCGA_stubs <- unique(sub("_(Red|Grn).idat", "", TCGA_IDATs))
TCGA_targets <- data.frame(Basename=TCGA_stubs)
TCGA_rgSet <- read.metharray.exp(base=TCGA_path, targets=TCGA_targets)
TCGA_grSet <- sesamize(TCGA_rgSet)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.