Skip to content

Commit

Permalink
revert change to voom for quality weight version
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzheng Li committed Mar 26, 2019
1 parent c663256 commit c2315f2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions R/riborex.r
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,7 @@ voomRex <- function(rnaCntTable, riboCntTable, rnaCond, riboCond,

message("applying Voom to modified design matrix")

rnaZ = c(rep(1, nrow(rnaCond)), rep(0, nrow(riboCond)))
riboZ = c(rep(0, nrow(rnaCond)), rep(1, nrow(riboCond)))
Z = cbind(rnaZ, riboZ)
v <- voomWithQualityWeights(dge, design=design, normalization="none",
var.design=Z, plot=FALSE)
v <- voom(dge, design, plot=FALSE)
fit <- lmFit(v, design)
if(!is.null(contrast)) {
fit <- contrasts.fit(fit, contrasts = contrast)
Expand Down

0 comments on commit c2315f2

Please sign in to comment.