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

Method registerExperiment

src/openms/source/METADATA/MSQuantifications.cpp:136–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135
136 void MSQuantifications::registerExperiment(PeakMap & exp, std::vector<std::vector<std::pair<String, double> > > label)
137 {
138 for (std::vector<std::vector<std::pair<String, double> > >::const_iterator lit = label.begin(); lit != label.end(); ++lit)
139 {
140 //TODO look for existing labels
141 Assay a;
142 a.mods_ = (*lit);
143 a.raw_files_.push_back(exp.getExperimentalSettings());
144 assays_.push_back(a);
145 }
146
147 //TODO check if empty, overwrite MSExperiments inherited front method to work. [0] operator is ugly!
148 data_processings_.clear();
149 for (Size i = 0; i < exp[0].getDataProcessing().size(); i++)
150 {
151 data_processings_.push_back( *exp[0].getDataProcessing()[i].get() );
152 }
153 }
154
155 void MSQuantifications::registerExperiment(ExperimentalSettings & es, std::vector<DataProcessing>& /* dps */, std::vector<std::vector<std::pair<String, double> > > label)
156 {

Callers 1

MSQuantificationsMethod · 0.95

Calls 8

beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45
clearMethod · 0.45
sizeMethod · 0.45
getDataProcessingMethod · 0.45
getMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected