11#include <OpenMS/config.h>
73 bool has_mobility =
false;
83 bool is_experiment =
false;
104 std::vector<std::string> ion_sources, mass_analyzers,
detectors;
106 struct OPENMS_DLLAPI
Contact { std::string first_name, last_name,
email; };
150 bool is_consensus =
false;
155 UInt64 assigned_ids = 0, unassigned_ids = 0;
167 UInt64 num_runs = 0, protein_hits = 0, non_redundant_protein_hits = 0;
168 UInt64 matched_spectra = 0, peptide_hits = 0;
169 double psms_per_spectrum = 0.0, avg_peptide_length = 0.0;
170 UInt64 non_redundant_peptides = 0, modified_tophits = 0;
177 UInt64 num_sequences = 0, total_residues = 0;
178 bool is_nucleic_acid =
false;
181 UInt64 seq_with_ambiguous = 0, dup_headers = 0, dup_sequences = 0;
188 std::string version,
mode, type;
189 UInt64 psms = 0, peptides = 0, proteins = 0, oligonucleotides = 0, osms = 0,
190 small_molecules = 0, nucleic_acids = 0;
196 bool performed =
false, supported =
true, valid =
false;
199 std::vector<std::string> warnings,
errors;
201 bool index_checked =
false, index_valid =
false;
202 UInt64 indexed_spectra = 0, indexed_chromatograms = 0;
208 bool performed =
false;
209 std::vector<std::string>
errors, warnings;
215 bool performed =
false;
249 bool processing =
false;
250 bool statistics =
false;
251 bool detailed =
false;
252 bool check_corrupt =
false;
253 bool validate =
false;
254 bool check_index =
false;
296 std::ostream& os, std::ostream& os_tsv,
Result& r);
Library-level equivalent of the FileInfo tool.
Definition FileInfo.h:49
std::string document_id
Definition FileInfo.h:98
std::string transformation_summary
trafoXML: model + printSummary
Definition FileInfo.h:235
std::string detail
captured validator output (re-emitted verbatim)
Definition FileInfo.h:198
std::vector< ProcessingStep > processing
Definition FileInfo.h:230
DetailInfo detail
Definition FileInfo.h:234
std::string text
Human-readable rendering, identical to the FileInfo CLI -out output (filled by run()).
Definition FileInfo.h:239
void report_(const std::string &in, FileTypes::Type in_type, const Options &o, std::ostream &os, std::ostream &os_tsv, Result &r)
std::map< std::string, UInt64 > modification_counts
Definition FileInfo.h:171
std::vector< std::string > actions
Definition FileInfo.h:114
std::vector< std::string > detectors
Definition FileInfo.h:104
std::map< UInt, RangeSet > per_ms_level
MSExperiment only, keyed by MS level.
Definition FileInfo.h:81
RangeSet chromatograms
MSExperiment only.
Definition FileInfo.h:82
std::string email
Definition FileInfo.h:106
std::vector< std::string > lines
Definition FileInfo.h:216
RangeSet combined
spectra + chromatograms (or the whole map)
Definition FileInfo.h:79
std::optional< ExperimentMeta > experiment_meta
Definition FileInfo.h:229
std::string file_type_name
FileTypes::typeToName(file_type)
Definition FileInfo.h:91
FileMeta meta
Definition FileInfo.h:222
std::string targeted_summary
PQP: getSummary()
Definition FileInfo.h:236
std::optional< MzTabInfo > mztab
Definition FileInfo.h:228
std::string file_name
Definition FileInfo.h:89
Math::SummaryStatistics< std::vector< double > > length_stats
Definition FileInfo.h:179
std::string db_name
Definition FileInfo.h:165
std::string mode
Definition FileInfo.h:188
std::map< UInt64, UInt64 > ids_per_element
number of IDs -> number of elements
Definition FileInfo.h:154
Result runAll(const std::string &filename)
Convenience: compute all content metrics (meta/processing/statistics on; no v/i/d/c).
RangeSet spectra_overall
MSExperiment only.
Definition FileInfo.h:80
std::optional< IdentInfo > ident
Definition FileInfo.h:226
std::string tsv
TSV rendering, identical to the FileInfo CLI -out_tsv output (filled by run()).
Definition FileInfo.h:241
std::string date
Definition FileInfo.h:99
std::vector< std::string > search_engines
"engine (version)"
Definition FileInfo.h:166
Range rt
retention time (seconds)
Definition FileInfo.h:69
Range mobility
ion mobility (only filled when the source carries it)
Definition FileInfo.h:71
std::optional< FastaInfo > fasta
Definition FileInfo.h:227
std::string completion_time
Definition FileInfo.h:113
Ranges ranges
filled for peak / feature / consensus
Definition FileInfo.h:223
ValidationInfo validation
Definition FileInfo.h:232
std::vector< std::string > errors
semantic validation
Definition FileInfo.h:199
std::string sample_comment
Definition FileInfo.h:101
std::vector< Contact > contacts
Definition FileInfo.h:107
static std::string toTSV(const Result &r)
Return the TSV rendering produced by run() (== the FileInfo CLI -out_tsv output, cached in r).
Definition FileInfo.h:289
std::optional< FeatureInfo > feature
Definition FileInfo.h:225
std::string title
Definition FileInfo.h:120
std::optional< PeakInfo > peak
Definition FileInfo.h:224
std::map< std::string, UInt64 > ambiguity_counts
buckets depend on is_nucleic_acid
Definition FileInfo.h:182
std::vector< MapColumn > map_columns
Definition FileInfo.h:159
std::string instrument_model
Definition FileInfo.h:103
Range mz
mass-to-charge
Definition FileInfo.h:70
Result run(const std::string &filename)
Load filename with default options (no extra flags).
Definition FileInfo.h:272
std::vector< NamedStats > statistics
Definition FileInfo.h:231
Range intensity
Definition FileInfo.h:72
std::map< char, UInt64 > residue_counts
Definition FileInfo.h:180
static std::string toText(const Result &r)
Return the human-readable rendering produced by run() (== the FileInfo CLI -out output,...
Definition FileInfo.h:282
std::string schema_version
Definition FileInfo.h:197
Result run(const std::string &filename, const Options &options)
Load filename (type auto-detected unless Options::forced_type set) and compute everything requested.
std::string filename
Definition FileInfo.h:158
std::map< Int, UInt64 > charges
charge -> count
Definition FileInfo.h:153
static std::string toTSV(const Result &r, const Options &options)
static std::string toText(const Result &r, const Options &options)
Math::SummaryStatistics< std::vector< double > > stats
Definition FileInfo.h:121
CorruptionInfo corruption
Definition FileInfo.h:233
std::map< UInt64, UInt64 > size_distribution
consensus-feature size -> count
Definition FileInfo.h:157
the -c (corrupt data) block
Definition FileInfo.h:207
detailed per-spectrum listing (the -d block); kept as pre-rendered lines
Definition FileInfo.h:214
FASTA specifics.
Definition FileInfo.h:176
feature / consensus specifics
Definition FileInfo.h:149
Definition FileInfo.h:158
identification specifics (idXML / mzIdentML)
Definition FileInfo.h:164
mzTab specifics
Definition FileInfo.h:187
one named SummaryStatistics block; title is the label used in both renderers
Definition FileInfo.h:119
what to compute (mirrors the CLI flags; lets callers opt into expensive work)
Definition FileInfo.h:246
one data-processing step (the -p block)
Definition FileInfo.h:112
one [min,max] interval for a single dimension; present==false => "<none>"
Definition FileInfo.h:60
the four range dimensions FileInfo reports for a map / spectrum group
Definition FileInfo.h:68
MSExperiment carries four range categories; non-MSExperiment maps fill only combined.
Definition FileInfo.h:78
the master result aggregate
Definition FileInfo.h:221
the -v (schema/semantic validation) and -i (indexed mzML) blocks
Definition FileInfo.h:195
LogType
Possible log types.
Definition ProgressLogger.h:43
uint64_t UInt64
Unsigned integer type (64bit)
Definition Types.h:47
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
peak-file (MSExperiment) specifics
Definition FileInfo.h:126
std::map< std::string, UInt64 > float_arrays
Definition FileInfo.h:137
std::map< std::string, UInt64 > chromatogram_types
type name -> count
Definition FileInfo.h:141
std::vector< double > faims_cvs
Definition FileInfo.h:138
std::vector< std::pair< std::string, double > > mass_analyzers
(type, resolution)
Definition FileInfo.h:128
std::vector< std::tuple< Int, std::string, UInt64 > > activationMethodsFlat() const
flattened (ms_level, method, count) view for ergonomic binding (mirrors the TSV columns)
std::vector< Int > ms_levels
Definition FileInfo.h:129
std::map< Int, UInt64 > spectra_per_ms_level
Definition FileInfo.h:132
std::string instrument_name
Definition FileInfo.h:127
std::map< Int, UInt64 > precursor_charges
charge -> count
Definition FileInfo.h:136
std::map< std::pair< Int, std::string >, UInt64 > activation_methods
activation methods: (ms_level, method_full_name) -> count
Definition FileInfo.h:135
std::map< Int, std::string > peak_type_per_ms_level
Definition FileInfo.h:133
Type
Actual file types enum.
Definition FileTypes.h:31
Helper class to gather (and dump) some statistics from a e.g. vector<double>.
Definition StatisticFunctions.h:934