| 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 | { |
no outgoing calls
no test coverage detected