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

Method MSPFile

src/openms/source/FORMAT/MSPFile.cpp:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace OpenMS
22{
23 MSPFile::MSPFile() :
24 DefaultParamHandler("MSPFile")
25 {
26 defaults_.setValue("parse_headers", "false", "Flag whether header information should be parsed an stored for each spectrum");
27 vector<std::string> parse_strings{"true","false"};
28 defaults_.setValidStrings("parse_headers", parse_strings);
29 defaults_.setValue("parse_peakinfo", "true", "Flag whether the peak annotation information should be parsed and stored for each peak");
30 defaults_.setValidStrings("parse_peakinfo", parse_strings);
31 defaults_.setValue("parse_firstpeakinfo_only", "true", "Flag whether only the first (default for 1:1 correspondence in SpecLibSearcher) or all peak annotation information should be parsed and stored for each peak.");
32 defaults_.setValidStrings("parse_firstpeakinfo_only", parse_strings);
33 defaults_.setValue("instrument", "", "If instrument given, only spectra of these type of instrument (Inst= in header) are parsed");
34 defaults_.setValidStrings("instrument", {"","it","qtof","toftof"});
35
36 defaultsToParam_();
37 }
38
39 MSPFile::MSPFile(const MSPFile & rhs) = default;
40

Callers 1

testMSPFileFunction · 0.80

Calls 2

setValidStringsMethod · 0.80
setValueMethod · 0.45

Tested by 1

testMSPFileFunction · 0.64