Skip to content

Commit

Permalink
Proposed fix for RGLab#130
Browse files Browse the repository at this point in the history
Temporary fix for bug where the last scale co-factor gets applied to all asinh channels. May have something to do with lazy evaluation and 'T' parameter not being set correctly if the function is not called before co-factor is reset.
  • Loading branch information
bjreisman authored Apr 23, 2021
1 parent 4f12e7d commit f683f98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/cytobankExperiment.R
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ ce_get_transformations <- function(x, panel_name = NULL){
{
T <- sinh(1) * cofactor
res[[pname]] <- asinhtGml2_trans(T = T, M = 0.43429448190325176, A = 0)#seems that M and A values are constant in cytobank
test <- res[[pname]]$transform(cofactor)
}else if(stype != "Linear")
stop("Unknown scale type: ", stype)

Expand Down

0 comments on commit f683f98

Please sign in to comment.