This function excludes specified analyses from a MidarExperiment
object, either by
marking them as invalid for downstream processing.
The function also alloows to reset the exclusions.
Arguments
- data
A
MidarExperiment
object- analyses
A character vector of analysis IDs (case-sensitive) to be excluded from the dataset. If this is
NA
or an empty vector, the exclusion behavior will be handled as set via theclear_existing
flag.- clear_existing
A logical value. If
TRUE
, existingvalid_analysis
flags will be overwritten. IfFALSE
, the exclusions will be appended, preserving any existing invalidated analyses.