set.seed(9209)
library(SummarizedExperiment)
library(panc.data)
data(cnp_se, package="panc.data")
data(snp_se, package="panc.data")
colnames(cnp_se) <- seq_along(colnames(cnp_se))
colData(cnp_se) <- DataFrame(plate=colData(cnp_se)[, "Sample.Plate"])
cnp_se <- cnp_se[c(1, 14, 22, 29, 121, 147, 244), ]
rowRanges(cnp_se) <- granges(rowRanges(cnp_se))
medians <- assays(cnp_se)[["MEDIAN"]]
se <- SummarizedExperiment(assays=SimpleList(cnv_summary=medians),
rowRanges=rowRanges(cnp_se),
colData=colData(cnp_se))
colnames(se) <- seq_len(ncol(se))
cnp_se <- se
snp_se <- subsetByOverlaps(snp_se, cnp_se)
colData(snp_se) <- colData(cnp_se)
colnames(colData(snp_se)) <- "Sample.Plate"
colnames(colData(cnp_se)) <- "Sample.Plate"
saveRDS(snp_se, file="../inst/extdata/snp_se.rds")
saveRDS(cnp_se, file="../inst/extdata/cnp_se.rds")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.