-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscriptSup.R
More file actions
37 lines (33 loc) · 1.41 KB
/
Copy pathscriptSup.R
File metadata and controls
37 lines (33 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Some arguments have been changed due to package updates
# Install the package ####
if (!requireNamespace("BiocManager", quietly = TRUE)){
install.packages("BiocManager")
}
BiocManager::install("transcriptogramer", version = BiocManager::version())
# Load the package ####
library(transcriptogramer)
# Load the required data ####
load("data.RData")
# Run the analysis ####
t <- transcriptogramPreprocess(association = edges, ordering = Hs800,
radius = 125)
groups <- c(rep("control", 3), rep("aza5", 3), rep("aza10", 3))
idx <- groups %in% (c("control", "aza10"))
t <- transcriptogramStep1(object = t, expression = exp[, idx],
dictionary = GPL570)
t <- transcriptogramStep2(object = t)
levels <- groups[idx] %in% "control"
t <- differentiallyExpressed(object = t, levels = levels, pValue = 0.022,
title = "aza10 x aza0 (Microarray)",
species = "Homo sapiens",
boundaryConditions = FALSE)
View(DE(t))
rdp <- clusterVisualization(t, onlyGenesInDE = TRUE)
t <- clusterEnrichment(t, species = "Homo sapiens", nCores = TRUE,
algorithm = "parentchild", pValue = 0.05,
onlyGenesInDE = TRUE)
terms <- Terms(t)
top5terms <- lapply(1:4, function(i){
head(terms[terms$ClusterNumber == i, c(1, 2, 7)], 5)
})
top5terms