Commit 16bc0d7c authored by Ilya Korsunsky's avatar Ilya Korsunsky
Browse files

fixed treatment of adding back residuals in regress_out_one_gene

parent 910b8669
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ regress_out_one_gene <- function(formula_full, formula_reduced, design, y, commo
            re.form = formula_reduced
        ) 
        yresid <- residuals(glmer_res, type = 'response') 
        return(ypred + yresid)  
        return(ypred + exp(yresid))
    }, error = function(e) {
        return(rep(NA, length(y)))
    })