MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / isRunnable

Method isRunnable

src/openms/source/QC/QCBase.cpp:61–75  ·  view source on GitHub ↗

function tests if a metric has the required input files gives a warning with the name of the metric that can not be performed

Source from the content-addressed store, hash-verified

59 // function tests if a metric has the required input files
60 // gives a warning with the name of the metric that can not be performed
61 bool QCBase::isRunnable(const Status& s) const
62 {
63 if (s.isSuperSetOf(this->requirements()))
64 {
65 return true;
66 }
67 for (Size i = 0; i < (UInt64)QCBase::Requires::SIZE_OF_REQUIRES; ++i)
68 {
69 if (this->requirements().isSuperSetOf(QCBase::Requires(i)) && !s.isSuperSetOf(QCBase::Requires(i)))
70 {
71 OPENMS_LOG_WARN << "Note: Metric '" << this->getName() << "' cannot run because input data '" << QCBase::names_of_requires[i] << "' is missing!\n";
72 }
73 }
74 return false;
75 }
76
77 bool QCBase::isLabeledExperiment(const ConsensusMap& cm)
78 {

Callers 2

main_Method · 0.80
storeMethod · 0.80

Calls 4

RequiresEnum · 0.85
isSuperSetOfMethod · 0.80
requirementsMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected