11#include <OpenMS/config.h>
28 class PeptideIdentificationList;
61 static std::string
scoreName(
const std::string& name);
87 const std::vector<bool>& has_spectrum,
88 bool isotope_observed_minus_theoretical);
97 double window = 100.0;
103 bool deisotoped =
false;
107 bool cap_at_precursor =
true;
129 static std::vector<Size>
keptPeaks(
const MSSpectrum& spectrum,
const std::vector<PeptideHit::PeakAnnotation>& annotations,
130 int precursor_charge,
const PeakFilter& filter);
137 std::shared_ptr<arrow::Table>
table;
179 const std::string& run_file_name,
const PeakFilter& filter);
187 std::string label =
"LFQ";
227 std::string organism =
"not available";
229 std::string organism_part =
"not available";
263 static std::shared_ptr<arrow::Table>
runView(
const std::vector<Run>& runs);
273 static std::shared_ptr<arrow::Table>
sampleView(
const std::vector<Sample>& samples);
285 static std::shared_ptr<arrow::Table>
provenanceView(
const std::vector<ProvenanceStep>& steps);
307 static std::string
formatNumber(
double value,
const std::string& non_finite =
"null");
314 std::vector<std::shared_ptr<arrow::Table>>
tables;
339 const std::map<std::string, View>& views, std::set<std::string>* failed =
nullptr);
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
The representation of a 1D spectrum.
Definition MSSpectrum.h:45
Management and storage of parameters / INI files.
Definition Param.h:46
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
The parts of a QPX dataset that a search engine adds to the views of QPXFile.
Definition QPXDatasetExport.h:46
static std::shared_ptr< arrow::Table > sampleView(const std::vector< Sample > &samples)
The QPX sample view: one row per sample, in the order of samples.
std::string config
The config (e.g. paramToJSON() of the tool's parameters; "": null)
Definition QPXDatasetExport.h:244
std::shared_ptr< arrow::Table > table
The mz view (null if it could not be built; the error is logged)
Definition QPXDatasetExport.h:137
static std::vector< Column > psmColumns(const PeptideIdentificationList &peptide_ids, const std::vector< bool > &has_spectrum, bool isotope_observed_minus_theoretical)
The optional columns of the QPX psm view, one entry per row of the view (the best hit of each element...
std::string tool
The tool_name (e.g. "ProSE")
Definition QPXDatasetExport.h:240
std::vector< std::shared_ptr< arrow::Table > > tables
Definition QPXDatasetExport.h:314
std::optional< std::string > dissociation_method
The dissociation_method (none or "": null)
Definition QPXDatasetExport.h:210
std::string run_file_name
The run_file_name (as in the psm and mz views)
Definition QPXDatasetExport.h:200
std::optional< std::string > instrument
The instrument (none or "": null)
Definition QPXDatasetExport.h:208
static std::vector< Size > keptPeaks(const MSSpectrum &spectrum, const std::vector< PeptideHit::PeakAnnotation > &annotations, int precursor_charge, const PeakFilter &filter)
The indices of the peaks of spectrum that filter keeps: the most intense ones per window and those of...
std::vector< std::string > fixed_modifications
The fixed modifications of the search, by their OpenMS names (e.g. "Carbamidomethyl (C)")
Definition QPXDatasetExport.h:216
std::map< std::string, std::string > metadata
Extra keys of the file's footer (ArrowIOHelpers::qpxFileMetadata())
Definition QPXDatasetExport.h:318
std::optional< Int32 > biological_replicate
The biological replicate (none: null)
Definition QPXDatasetExport.h:189
std::string file_name
The file_name (e.g. the base name of the input file; "": null)
Definition QPXDatasetExport.h:202
std::optional< Int32 > technical_replicate
The technical replicate (none: null)
Definition QPXDatasetExport.h:191
static std::shared_ptr< arrow::Table > runView(const std::vector< Run > &runs)
The QPX run view: one row per run, in the order of runs.
static std::shared_ptr< arrow::Table > provenanceView(const std::vector< ProvenanceStep > &steps)
The QPX provenance view: one row per step, in the order of steps.
std::string name
The step_name (e.g. "peptide_search")
Definition QPXDatasetExport.h:238
std::vector< std::string > enzymes
The enzymes (empty: null)
Definition QPXDatasetExport.h:214
static std::string formatNumber(double value, const std::string &non_finite="null")
value as a locale-independent number: the shortest of 15 to 17 significant digits that reads back as ...
std::vector< std::pair< std::string, std::string > > parameters
The parameters, as key and value, in this order.
Definition QPXDatasetExport.h:242
std::vector< std::string > variable_modifications
The variable modifications of the search, by their OpenMS names (e.g. "Oxidation (M)")
Definition QPXDatasetExport.h:218
std::vector< RunSample > samples
The samples of the run.
Definition QPXDatasetExport.h:204
static bool writeDataset(const std::string &directory, const std::string &prefix, const std::map< std::string, View > &views, std::set< std::string > *failed=nullptr)
Write the QPX dataset views to directory: directory/prefix.VIEW.parquet per view (VIEW: its name)
std::optional< std::string > fraction
The fraction (none or "": null)
Definition QPXDatasetExport.h:206
std::vector< std::string > output_views
The output_views (e.g. "psm"; empty: null)
Definition QPXDatasetExport.h:246
std::string category
The step_category (e.g. "database_search")
Definition QPXDatasetExport.h:236
static std::string scoreName(const std::string &name)
The name of a score or meta value in the snake_case of the QPX additional_scores.
std::string accession
The sample's sample_accession (of the sample view)
Definition QPXDatasetExport.h:185
ParquetWriteConfig config
The writer configuration.
Definition QPXDatasetExport.h:316
std::vector< bool > has_spectrum
Definition QPXDatasetExport.h:140
static MzView mzView(const MSExperiment &spectra, const PeptideIdentificationList &peptide_ids, const std::string &run_file_name, const PeakFilter &filter)
The QPX mz view of the MS2 spectra of the PSMs of one run, with the peaks filter keeps.
std::optional< std::string > acquisition_method
The acquisition_method (none or "": null)
Definition QPXDatasetExport.h:212
static std::string paramToJSON(const Param ¶m)
param as one JSON object of its full parameter names (e.g. "Search:precursor:mass_tolerance_lower") a...
Definition QPXDatasetExport.h:135
The peak filter of the mz view: the top most intense peaks per window Th (top 0: all peaks),...
Definition QPXDatasetExport.h:95
A step of the processing (a row of the provenance view, provenanceView())
Definition QPXDatasetExport.h:234
A run of the dataset (a row of the run view, runView())
Definition QPXDatasetExport.h:196
A sample of a run (the run view's samples)
Definition QPXDatasetExport.h:183
A sample of the dataset (a row of the sample view, sampleView())
Definition QPXDatasetExport.h:223
A view of the dataset for writeDataset()
Definition QPXDatasetExport.h:311
OpenMS looks in the< code > OPENMS_THERMO_MANAGED_DIR</code > environment variable then in the share directory
Definition common-cmake-parameters.doxygen:179
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
One column for withColumns(), built without Arrow types.
Definition ArrowIOHelpers.h:94
Configuration for Parquet file writing.
Definition MSExperimentArrowExport.h:136