annotate SMART/DiffExpAnal/DESeqTools/removeNul.R @ 18:94ab73e8a190

Uploaded
author m-zytnicki
date Mon, 29 Apr 2013 03:20:15 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
1 # removeNul
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
2 # remove genes with null counts in all samples
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
3
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
4 # input : counts
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
5 # output : counts
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
6
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
7 # created Feb 7th, 2012
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
8 # Marie-Agnes Dillies
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
9
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
10
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
11 removeNul <- function( counts, info = NULL ){
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
12
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
13 return( list(counts[rowSums(counts) > 0,], info[rowSums(counts) > 0,]) )
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
14 }