Skip to content
Snippets Groups Projects
Commit 635d86d7 authored by Treutler's avatar Treutler
Browse files

Fixed bug when multiplicityFilter is not set

parent 7fdfc028
No related branches found
No related tags found
No related merge requests found
...@@ -293,6 +293,10 @@ msmsWorkflow <- function(w, mode="pH", steps=c(1:8), confirmMode = FALSE, newRec ...@@ -293,6 +293,10 @@ msmsWorkflow <- function(w, mode="pH", steps=c(1:8), confirmMode = FALSE, newRec
message("msmsWorkflow: Step 8. Peak multiplicity filtering") message("msmsWorkflow: Step 8. Peak multiplicity filtering")
if (is.null(settings$multiplicityFilter)) { if (is.null(settings$multiplicityFilter)) {
message("msmsWorkflow: Step 8. Peak multiplicity filtering skipped because multiplicityFilter parameter is not set.") message("msmsWorkflow: Step 8. Peak multiplicity filtering skipped because multiplicityFilter parameter is not set.")
w@aggregated <- addProperty(w@aggregated, "formulaMultiplicity", "integer", 1)
w@aggregated <- addProperty(w@aggregated, "filterOK", "logical", FALSE)
w@aggregated$filterOK <- !((is.na(w@aggregated$formulaCount) | w@aggregated$formulaCount==0) & (is.na(w@aggregated$reanalyzed.formulaCount) | w@aggregated$reanalyzed.formulaCount==0))
w@aggregated <- addProperty(w@aggregated, "problematicPeak", "logical", FALSE)
} else { } else {
# apply heuristic filter # apply heuristic filter
w@aggregated <- filterMultiplicity(w = w, archivename = archivename, mode = mode, multiplicityFilter = settings$multiplicityFilter) w@aggregated <- filterMultiplicity(w = w, archivename = archivename, mode = mode, multiplicityFilter = settings$multiplicityFilter)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment