Browse code

Rescale PsiNorm normalized data in wrapper

Davide Risso authored on 07/05/2021 08:25:41
Showing 2 changed files

... ...
@@ -53,7 +53,7 @@ jobs:
53 53
       matrix:
54 54
         config:
55 55
           - { os: ubuntu-latest, r: '4.1', bioc: '3.13', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
56
-          - { os: ubuntu-latest, r: '4.0', bioc: '3.12', cont: "bioconductor/bioconductor_docker:RELEASE_3_12", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
56
+          #- { os: ubuntu-latest, r: '4.0', bioc: '3.12', cont: "bioconductor/bioconductor_docker:RELEASE_3_12", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
57 57
           - { os: macOS-latest, r: '4.0', bioc: '3.12'}
58 58
           - { os: windows-latest, r: '4.0', bioc: '3.12'}
59 59
     env:
... ...
@@ -154,6 +154,7 @@ SCRAN_FN = function(ei){
154 154
 #' eo <- PSINORM_FN(ei)
155 155
 #'
156 156
 PSINORM_FN = function(ei){
157
-  eo = PsiNorm(ei)
157
+  inv_sf <- pareto.MLE(ei+1)
158
+  eo = t(t(ei) / mean(inv_sf) * inv_sf)
158 159
   return(eo)
159 160
 }