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

Method addSample

src/openms/source/METADATA/ExperimentalDesign.cpp:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 void ExperimentalDesign::SampleSection::addSample(const String& samplename, const vector<String>& content)
151 {
152 //TODO warn when already present? Overwrite?
153 //TODO check content size
154 sample_to_rowindex_.try_emplace(samplename, sample_to_rowindex_.size());
155 content_.push_back(content);
156 }
157
158 String ExperimentalDesign::SampleSection::getSampleName(unsigned sample_row) const
159 {

Callers 3

fromConsensusMapMethod · 0.80
fromFeatureMapMethod · 0.80
fromIdentificationsMethod · 0.80

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected