Mercurial > repos > yufei-luo > s_mart
diff SMART/DiffExpAnal/DESeqTools/removeNul.R @ 18:94ab73e8a190
Uploaded
author | m-zytnicki |
---|---|
date | Mon, 29 Apr 2013 03:20:15 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SMART/DiffExpAnal/DESeqTools/removeNul.R Mon Apr 29 03:20:15 2013 -0400 @@ -0,0 +1,14 @@ +# removeNul +# remove genes with null counts in all samples + +# input : counts +# output : counts + +# created Feb 7th, 2012 +# Marie-Agnes Dillies + + +removeNul <- function( counts, info = NULL ){ + + return( list(counts[rowSums(counts) > 0,], info[rowSums(counts) > 0,]) ) +}