Skip to content

Instantly share code, notes, and snippets.

@lwaldron
Created July 5, 2018 15:04
Show Gist options
  • Save lwaldron/17e419370e3c8fe053f71fbab055c786 to your computer and use it in GitHub Desktop.
Save lwaldron/17e419370e3c8fe053f71fbab055c786 to your computer and use it in GitHub Desktop.
library(curatedTCGAData)
curatedTCGAData("OV")
mae <- curatedTCGAData("OV", assays=c("mRNAArray", "RNASeq2GeneNorm", "RNASeqGene"), dry.run = FALSE)
library(TCGAutils)
keep <- TCGAsampleSelect(colnames(mae), 11)
mae <- mae[, keep, ]
mae <- intersectColumns(mae)
mae <- intersectRows(mae)
library(org.Hs.eg.db)
entrez.ids <- mapIds(org.Hs.eg.db, keys=rownames(mae[[1]]), keytype = "SYMBOL", column="ENTREZID")
library(consensusOV)
consensus.subtypes <- lapply(experiments(mae), function(x) get.subtypes(x, method = "consensusOV", entrez.ids = entrez.ids))
## set higher threshold for ambiguous subtypes in get.subtypes
## also consider limma-voom transformation of RNA-seq datasets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment