## this is kind of silly but it encapsulates two important defaults.
##
processIDATs <- function(targets, name, base=".", ...) {
rgSetFile <- paste0(name, "_rgSet.rds")
stopifnot(c("Sample_Name", "Basename" ) %in% names(targets))
## failures can be mysterious if we do not set verbose!
rgSet <- read.450k.exp(base=base, targets, verbose=TRUE)
sampleNames(rgSet) <- targets$Sample_Name ## mandatory!
message(ncol(rgSet), " samples processed sucessfully.")
message("Saving raw intensities to ", rgSetFile, "...")
saveRDS(rgSet, rgSetFile)
invisible(rgSet)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.