comparison SMART/DiffExpAnal/DESeqTools/HTseqClean.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 # HTseqClean
2 # remove extra counts out of genes
3 # for HTseq output
4
5 # input : rawCounts
6 # output : cleaned rawCounts
7
8 # created Feb 6th, 2012
9 # Modified Feb 16th, 2012
10 # Marie-Agnes Dillies
11
12
13 HTseqClean <- function( rawCounts ){
14
15 row2remove <- c("alignment_not_unique", "ambiguous", "no_feature", "not_aligned", "too_low_aQual")
16 rawCounts <- rawCounts[!rawCounts$Id %in% row2remove,]
17 rawCounts[is.na(rawCounts)] <- 0
18 return(rawCounts)
19 }