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

Method getNumberOfLabels

src/openms/source/METADATA/ExperimentalDesign.cpp:543–551  ·  view source on GitHub ↗

@return the number of labels per file

Source from the content-addressed store, hash-verified

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

Callers 9

testExperimentalDesignFunction · 0.95
main_Method · 0.80
writeComments_Method · 0.80
storeLFQMethod · 0.80
storeLFQMethod · 0.80
fromConsensusMapMethod · 0.80
fromFeatureMapMethod · 0.80
fromIdentificationsMethod · 0.80

Calls 3

emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

testExperimentalDesignFunction · 0.76