Skip to content

Commit

Permalink
transpose contrast0 if provided as class Hypothesis
Browse files Browse the repository at this point in the history
  • Loading branch information
derrik-gratz authored Sep 25, 2023
1 parent c834de3 commit 77a9bcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/ZlmFit-logFC.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ logFC <- function(zlmfit, contrast0, contrast1){
} else if(inherits(contrast0, 'Hypothesis')){
gh <- generateHypothesis(contrast0, coname)
contrast0 <- gh@contrastMatrix
contrast0 <- t(contrast0)
}
if(missing(contrast1)){
contrast1 <- cbind(0, diag(1, nrow=length(coname)-1))
Expand Down

0 comments on commit 77a9bcd

Please sign in to comment.