Skip to content

Commit

Permalink
More robust norm-from-counts
Browse files Browse the repository at this point in the history
  • Loading branch information
pfh committed Oct 4, 2016
1 parent 73095e2 commit 85604ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nesoni/nesoni-r/R/counts.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ read.counts <- function(filename, min.total=0, min.max=0, keep=NULL, norm.file=N

result <- DGEList(counts=counts[good,,drop=F], genes=gene[good,,drop=F])

mean.lib.size <- exp(mean(log(result$samples$lib.size)))
mean.lib.size <- exp(mean(log(pmax(1,result$samples$lib.size))))

if (!have.norm) {
if (use.tmm) {
Expand Down

0 comments on commit 85604ef

Please sign in to comment.