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