|🔴⚪️⚪️⚪️|🔵⚪️⚪️⚪️|🔴⚪️⚪️⚪️|🔵⚪️⚪️⚪️|
This file contains 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(data.table) | |
library(foreach) | |
args <- commandArgs(TRUE) | |
#### Input files #### | |
# Series Matrix File | |
SERIES_FILE <- args[1] | |
# Platform data table obtained from GEO. | |
PLATFORM_FILE <- args[2] |
This file contains 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(data.table) | |
library(org.Hs.eg.db) | |
extract <- function(D, exp.only=FALSE, tissue=NULL, evidence=c("G","P")) { | |
if(exp.only) { | |
D <- D[grepl("exp", D$`evidence type`),] | |
} | |
if(!is.null(tissue)) { | |
keep <- sapply(D[[tissue]], function(x) any(evidence %in% x)) | |
D <- D[keep,] |