Skip to content

Commit

Permalink
feat: probe filter defaults for proteomics
Browse files Browse the repository at this point in the history
proteomics people might like different defaults, so when proteomics data
is uploaded they are displayed
  • Loading branch information
ESCRI11 committed Aug 13, 2024
1 parent 8eb1180 commit 4f65018
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions components/board.upload/R/upload_module_computepgx.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,27 @@ upload_module_computepgx_server <- function(
DEV.NAMES <- c("noLM + prune")
DEV.SELECTED <- c()

## Probe filtering defaults
PROBE_FILTER_SELECTED <- shiny::eventReactive(
{
upload_datatype()
},
{
if (tolower(upload_datatype()) == "proteomics") {
mm <- c()
} else {
mm <- c(
"remove.notexpressed",
"remove.unknown",
"only.proteincoding"
)
}
return(mm)
}
)



readthedocs_url <- "https://omicsplayground.readthedocs.io/en/latest/dataprep/geneset.html"

output$UI <- shiny::renderUI({
Expand Down Expand Up @@ -170,12 +191,7 @@ upload_module_computepgx_server <- function(
## "Skip normalization"
## "Exclude immunogenes",
),
selected = c(
## "only.hugo",
"remove.notexpressed",
"remove.unknown",
"only.proteincoding"
)
selected = PROBE_FILTER_SELECTED()
)
),
bslib::card(
Expand Down

0 comments on commit 4f65018

Please sign in to comment.