Created
July 5, 2018 15:04
-
-
Save lwaldron/17e419370e3c8fe053f71fbab055c786 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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