Mercurial > repos > yufei-luo > s_mart
comparison SMART/DiffExpAnal/DESeqTools/raw2counts.R @ 31:0ab839023fe4
Uploaded
author | m-zytnicki |
---|---|
date | Tue, 30 Apr 2013 14:33:21 -0400 |
parents | 94ab73e8a190 |
children |
comparison
equal
deleted
inserted
replaced
30:5677346472b5 | 31:0ab839023fe4 |
---|---|
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 } |