nrows <- 20000; ncols <- 20
counts <- matrix(runif(nrows * ncols, 1, 1e4), nrows)
ranges <- GenomicRanges::GRanges(rep(c("chr1", "chr2"), c(5000, 15000)),
IRanges::IRanges(floor(runif(20000, 1e5, 1e6)), width=100),
strand=sample(c("+", "-"), 20000, TRUE),
probeID=sprintf("ID%03d", 1:20000),
Gene_Symbol=sprintf("ID%03d", 1:20000))
colData <- S4Vectors::DataFrame(Treatment=rep(c("ChIP", "Input"), 5),
row.names=LETTERS[1:20],
group=rep(c("group1","group2"),c(10,10)))
data <- SummarizedExperiment::SummarizedExperiment(
assays=S4Vectors::SimpleList(counts=counts),
rowRanges=ranges,
colData=colData)
met <- data
exp <- data.frame(row.names=sprintf("ID%03d", 1:20000),
logFC=runif(20000, -5, 5),
FDR=runif(20000, 0.01, 1))
SummarizedExperiment::rowRanges(met)$diffmean.g1.g2 <- c(runif(20000, -0.1, 0.1))
SummarizedExperiment::rowRanges(met)$diffmean.g2.g1 <- -1*(SummarizedExperiment::rowRanges(met)$diffmean.g1.g2)
SummarizedExperiment::rowRanges(met)$p.value.g1.g2 <- c(runif(20000, 0, 1))
SummarizedExperiment::rowRanges(met)$p.value.adj.g1.g2 <- c(runif(20000, 0, 1))
result <- TCGAvisualize_starburst(met,exp,
exp.p.cut = 0.05, met.p.cut = 0.05,
group1="g1",group2="g2",
diffmean.cut=0.0,
names=TRUE, circle = FALSE)
result <- TCGAvisualize_starburst(SummarizedExperiment::values(met),
exp,
exp.p.cut = 0.05, met.p.cut = 0.05,
group1="g1",group2="g2",
diffmean.cut=0.0,
names=TRUE, circle = FALSE)
Run the code above in your browser using DataLab