Entering edit mode
Dear all,
I build the following simple ExpressionSet in R:
dataDirectory <- system.file("extdata", package = "Biobase")
exprsFile <- "path to expression data.txt"
exprs <- as.matrix(read.table(exprsFile, header = TRUE, sep = "\t", row.names = 1, as.is = TRUE))
pDataFile <- "path to phenotype data.txt"
pData <- read.table(pDataFile, row.names=1, header=TRUE, sep="\t")
phenoData <- new("AnnotatedDataFrame",data=pData)
exampleSet <- ExpressionSet(assayData=exprs, phenoData=phenoData)
Now I want to remove all samples with >80% NA values & also each gene with >50% NA values. Is there a simple solution for that?
Thanks in advance for your help!
