@return the number of labels per file
| 541 | |
| 542 | // @return the number of labels per file |
| 543 | unsigned ExperimentalDesign::getNumberOfLabels() const |
| 544 | { |
| 545 | if (msfile_section_.empty()) { return 0; } |
| 546 | return std::max_element(msfile_section_.begin(), msfile_section_.end(), |
| 547 | [](const MSFileSectionEntry& f1, const MSFileSectionEntry& f2) |
| 548 | { |
| 549 | return f1.label < f2.label; |
| 550 | })->label; |
| 551 | } |
| 552 | |
| 553 | // @return the number of MS files (= fractions * fraction_groups) |
| 554 | unsigned ExperimentalDesign::getNumberOfMSFiles() const |