function tests if a metric has the required input files gives a warning with the name of the metric that can not be performed
| 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 | { |
no test coverage detected