Skip to content

Commit

Permalink
converter(DIANN): Enable q-value filtering for DIANN converter
Browse files Browse the repository at this point in the history
  • Loading branch information
tonywu1999 committed Jan 17, 2025
1 parent 78ce7ca commit ef400ad
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,19 @@ getData <- function(input) {
data = read.csv(input$dianndata$datapath, sep=input$sep_dianndata)
# }
print(input$dianndata$datapath)

qvalue_cutoff = 0.01
if (input$q_val) {
qvalue_cutoff = input$q_cutoff
}

mydata = DIANNtoMSstatsFormat(data,
annotation = getAnnot(input),
qvalue_cutoff = 0.01, ## same as default
removeProtein_with1Feature = TRUE,
use_log_file = FALSE)
annotation = getAnnot(input),
qvalue_cutoff = qvalue_cutoff,
removeProtein_with1Feature = TRUE,
removeFewMeasurements = FALSE,
use_log_file = FALSE,
MBR = FALSE)
print("Mydata from mstats")
print(mydata)
}
Expand Down

0 comments on commit ef400ad

Please sign in to comment.