|
7 | 7 | #
|
8 | 8 | ############################################################
|
9 | 9 |
|
| 10 | +## DATA LOAD |
| 11 | +dataenv <- new.env(parent = emptyenv()) |
| 12 | +data("diseaseCodes", package = "TCGAutils", envir = dataenv) |
| 13 | +diseaseCodes <- dataenv[["diseaseCodes"]] |
| 14 | + |
10 | 15 | ## SETUP
|
11 |
| -ctypes <- TCGAutils::diseaseCodes[,"Study.Abbreviation"] |
| 16 | +ctypes <- diseaseCodes[,"Study.Abbreviation"] |
12 | 17 |
|
13 | 18 | ## cancer types
|
14 | 19 | .isSubClonal <- function(x) as.integer(x$Subclonal_HSCN_a1 | x$Subclonal_HSCN_a2)
|
@@ -56,7 +61,7 @@ ctypes <- TCGAutils::diseaseCodes[,"Study.Abbreviation"]
|
56 | 61 |
|
57 | 62 | ## GISTIC
|
58 | 63 | # @returns: a RangedSummarizedExperiment
|
59 |
| -gistic2RSE <- function(ctype=TCGAutils::diseaseCodes[,"Study.Abbreviation"], |
| 64 | +gistic2RSE <- function(ctype=ctypes, |
60 | 65 | peak=c("wide", "narrow", "full"), cache=TRUE)
|
61 | 66 | {
|
62 | 67 | ctype <- match.arg(ctype)
|
@@ -141,7 +146,7 @@ gistic2RSE <- function(ctype=TCGAutils::diseaseCodes[,"Study.Abbreviation"],
|
141 | 146 |
|
142 | 147 | ## Broad subtypes
|
143 | 148 | # @returns: a matrix with sample IDs as rownames and at least a column "cluster"
|
144 |
| -getBroadSubtypes <- function(ctype=TCGAutils::diseaseCodes[,"Study.Abbreviation"], |
| 149 | +getBroadSubtypes <- function(ctype=ctypes, |
145 | 150 | clust.alg=c("CNMF", "Consensus_Plus"), cache=TRUE)
|
146 | 151 | {
|
147 | 152 | ctype <- match.arg(ctype)
|
|
0 commit comments