Mercurial > repos > yufei-luo > differential_expression_analysis_pipeline_for_rnaseq_data
diff deseq/differential_expression_analysis_pipeline_for_rnaseq_data-a03838a6eb54/DiffExpAnal/DESeqTools/removeNul.R @ 10:6e573fd3c41b draft
Uploaded
author | yufei-luo |
---|---|
date | Mon, 13 May 2013 10:06:30 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deseq/differential_expression_analysis_pipeline_for_rnaseq_data-a03838a6eb54/DiffExpAnal/DESeqTools/removeNul.R Mon May 13 10:06:30 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,]) ) +}