view DiffExpAnal/DESeqTools/removeNul.R @ 0:63799b789162 draft

Uploaded
author yufei-luo
date Tue, 22 Jan 2013 10:07:03 -0500
parents
children
line wrap: on
line source

# 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,]) )
}