Skip to content

Commit

Permalink
feat: add skip normalization option
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokwee committed Nov 2, 2023
1 parent ca35cc7 commit f1f0dee
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions components/board.upload/R/upload_module_computepgx.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,24 @@ upload_module_computepgx_server <- function(
"only.hugo",
"only.proteincoding",
"remove.unknown",
"remove.notexpressed"
"remove.notexpressed",
"normalize.counts"
),
choiceNames =
c(
"convert to HUGO",
"protein-coding only",
"remove Rik/ORF/LOC genes",
"remove not-expressed"
"remove not-expressed",
"normalize counts"
## "Exclude immunogenes",
),
selected = c(
"only.hugo",
"only.proteincoding",
"remove.unknown",
"remove.notexpressed"
"remove.notexpressed",
"normalize.counts"
)
)
),
Expand Down Expand Up @@ -449,7 +452,8 @@ upload_module_computepgx_server <- function(
only.hugo <- ("only.hugo" %in% flt)
do.protein <- ("proteingenes" %in% flt)
remove.unknown <- ("remove.unknown" %in% flt)
excl.immuno <- ("excl.immuno" %in% flt)
do.normalization <- ("normalize.counts" %in% flt)
excl.immuno <- ("excl.immuno" %in% flt)
excl.xy <- ("excl.xy" %in% flt)
only.proteincoding <- ("only.proteincoding" %in% flt)
filter.genes <- ("remove.notexpressed" %in% flt)
Expand Down Expand Up @@ -478,6 +482,7 @@ upload_module_computepgx_server <- function(
counts = counts,
contrasts = contrasts,
batch.correct = FALSE,
normalize = do.normalization,
prune.samples = TRUE,
filter.genes = filter.genes,
only.known = !remove.unknown,
Expand Down

0 comments on commit f1f0dee

Please sign in to comment.