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

Method getLabelAsUInt

src/openms/source/KERNEL/ConsensusMap.cpp:760–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758 }
759
760 unsigned ConsensusMap::ColumnHeader::getLabelAsUInt(const String& experiment_type) const
761 {
762 if (metaValueExists("channel_id"))
763 {
764 return static_cast<unsigned int>(getMetaValue("channel_id")) + 1;
765 }
766 else
767 {
768 if (experiment_type != "label-free")
769 {
770 // TODO There seem to be files in our test data from the Multiplex toolset that do not annotate
771 // a channel id but only add the "label" attribute with the SILAC modification. Add a fall-back here?
772 OPENMS_LOG_WARN << "No channel id annotated in labelled consensusXML. Assuming only a single channel was used." << std::endl;
773 }
774 return 1;
775 }
776 }
777
778 std::set<IdentificationDataInternal::ObservationMatchRef> ConsensusMap::getUnassignedIDMatches() const
779 {

Callers 5

readQuantDataMethod · 0.80
convertMap_Function · 0.80
CMMzTabStreamMethod · 0.80
fromConsensusMapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected