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

Method main_

src/topp/OpenPepXL.cpp:148–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 }
147
148 ExitCodes main_(int, const char**) override
149 {
150 ProgressLogger progresslogger;
151 progresslogger.setLogType(log_type_);
152
153 const string in_mzml(getStringOption_("in"));
154 const string in_fasta(getStringOption_("database"));
155 const string in_decoy_fasta(getStringOption_("decoy_database"));
156 const string in_consensus(getStringOption_("consensus"));
157 const string out_idXML(getStringOption_("out_idXML"));
158 const string out_xquest = getStringOption_("out_xquestxml");
159 const string out_xquest_specxml = getStringOption_("out_xquest_specxml");
160 const string out_mzIdentML = getStringOption_("out_mzIdentML");
161
162 OPENMS_LOG_INFO << "Analyzing file: " << endl;
163 OPENMS_LOG_INFO << in_mzml << endl;
164
165 // load MS2 map
166 PeakMap unprocessed_spectra;
167 MzMLFile f;
168 f.setLogType(log_type_);
169
170 PeakFileOptions options;
171 options.clearMSLevels();
172 options.addMSLevel(1);
173 options.addMSLevel(2);
174 f.getOptions() = options;
175 f.load(in_mzml, unprocessed_spectra);
176
177 // load linked features
178 ConsensusMap cfeatures;
179 ConsensusXMLFile cf;
180 cf.load(in_consensus, cfeatures);
181
182 // load fasta database
183 progresslogger.startProgress(0, 1, "Load database from FASTA file...");
184 FASTAFile fastaFile;
185 vector<FASTAFile::FASTAEntry> fasta_db;
186 fastaFile.load(in_fasta, fasta_db);
187
188 if (!in_decoy_fasta.empty())
189 {
190 vector<FASTAFile::FASTAEntry> fasta_decoys;
191 fastaFile.load(in_decoy_fasta, fasta_decoys);
192 fasta_db.reserve(fasta_db.size() + fasta_decoys.size());
193 fasta_db.insert(fasta_db.end(), fasta_decoys.begin(), fasta_decoys.end());
194 }
195 progresslogger.endProgress();
196
197 // initialize solution vectors
198 vector<ProteinIdentification> protein_ids(1);
199 vector<PeptideIdentification> peptide_ids;
200
201 // these are mainly necessary for writing out xQuest type spectrum files
202 OPXLDataStructs::PreprocessedPairSpectra preprocessed_pair_spectra(0);
203 vector< pair<Size, Size> > spectrum_pairs;
204 vector< vector< OPXLDataStructs::CrossLinkSpectrumMatch > > all_top_csms;
205 PeakMap spectra;

Callers

nothing calls this directly

Calls 15

setLogTypeMethod · 0.80
clearMSLevelsMethod · 0.80
addMSLevelMethod · 0.80
setParametersMethod · 0.80
setSearchParametersMethod · 0.80
setSearchEngineMethod · 0.80
DataValueClass · 0.50
StringClass · 0.50
loadMethod · 0.45
startProgressMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected