|
1 | 1 | if( !require(RTCGAToolbox) ){ |
2 | | - library(devtools) |
3 | | - install_github("LiNk-NY/RTCGAToolbox") |
4 | | - library(RTCGAToolbox) |
| 2 | + library(BiocInstaller) |
| 3 | + biocLite("LiNk-NY/RTCGAToolbox") |
| 4 | + library(RTCGAToolbox) |
5 | 5 | } |
6 | 6 |
|
7 | 7 | all.dates <- getFirehoseRunningDates() |
@@ -33,6 +33,20 @@ for (i in 1:length(tcga.res)) { |
33 | 33 | eset = try(extract(tcga.res[[i]], "RNAseq2_Gene_Norm")) |
34 | 34 | if (is(eset, "try-error")) |
35 | 35 | next |
36 | | - eset = eset[, substr(sampleNames(eset), 14, 15) %in% c("01", "03", "09")] |
| 36 | + eset = eset[, as.integer(substr(sampleNames(eset), 14, 15)) %in% 1:9] |
37 | 37 | saveRDS(eset, file = paste0(names(tcga.res)[i], "_RNAseq2.rds")) |
38 | 38 | } |
| 39 | + |
| 40 | +res <- getFirehoseData("SKCM", runDate="20151101", RNAseq2_Gene_Norm=TRUE) |
| 41 | +eset = extract(res, "RNAseq2_Gene_Norm") |
| 42 | +devtools::session_info() |
| 43 | + |
| 44 | +expdat <- res@RNASeq2GeneNorm |
| 45 | +colnames(expdat) <- tolower(substr(colnames(expdat), 1, 12)) |
| 46 | +clindat <- res@Clinical |
| 47 | +rownames(clindat) <- gsub(".", "-", rownames(clindat), fixed=TRUE) |
| 48 | +clindat <- clindat[rownames(clindat) %in% colnames(expdat), ] |
| 49 | +expdat <- expdat[, match(rownames(clindat), colnames(expdat))] |
| 50 | + |
| 51 | +all.equal(colnames(expdat), rownames(clindat)) |
| 52 | +eset <- ExpressionSet(assayData=expdat, phenoData=AnnotatedDataFrame(clindat)) |
0 commit comments