comparison SMART/DiffExpAnal/DESeqTools/raw2counts.R @ 18:94ab73e8a190

Uploaded
author m-zytnicki
date Mon, 29 Apr 2013 03:20:15 -0400
parents
children
comparison
equal deleted inserted replaced
17:b0e8584489e6 18:94ab73e8a190
1 # raw2counts
2 # extract counts only from rawCounts
3 # and add rownames to counts
4
5 # input : rawCounts
6 # output : counts
7
8 # created Feb 6th, 2012
9 # modified April 12, 2012
10 # Marie-Agnes Dillies
11
12
13 raw2counts <- function( rawCounts, annot=1 ){
14
15 ex <- 1:annot
16 counts <- as.matrix( rawCounts[,-ex] )
17 rownames(counts) <- rawCounts[,1]
18 infoCounts <- rawCounts[,ex]
19 return( list("counts"=counts, "infoCounts"= infoCounts) )
20 }