Skip to content
Snippets Groups Projects
Commit f4cf635e authored by Holger Brandl's avatar Holger Brandl
Browse files

cont. cummerbund methods

parent 8332f533
No related branches found
No related tags found
No related merge requests found
require.auto(cummeRbund)
require(cummeRbund)
getExpressedGenes <- function(cuff, minFPKM=1, logMode=F){
getExpressedGenes <- function(cuff, ...){
fpkmMat<-repFpkmMatrix(genes(cuff))
rownames(filterByExpression(fpkmMat, ...))
}
filterByExpression <- function(fpkmMat, minFPKM=1, logMode=F){
if(logMode) fpkmMat<-log10(fpkmMat+1) ## add a pseudocount
geneMax <- apply(fpkmMat, 1, max)
rownames(fpkmMat[geneMax>minFPKM,])
fpkmMat[geneMax>minFPKM,]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment