![]() |
OpenMS
|
Resolve the precursor hierarchy from bridge metadata without fetching peaks. Keeps isolation targets distinct from selected ions, and retains SPS selections and supplemental reactions. The filter fallback follows ThermoRawFileParser. More...
#include <OpenMS/FORMAT/HANDLERS/ThermoRawFileMetadata.h>
Classes | |
| struct | State |
Public Member Functions | |
| nlohmann::json | precursors (const nlohmann::json &scan) |
| Precursor descriptors of one scan; scans must be passed in acquisition order. | |
Static Public Member Functions | |
| static std::string | trailer (const nlohmann::json &scan, const std::string &label) |
Value of the trailer-extra entry with exactly this label, or "" if absent / not a string. | |
| static nlohmann::json | number (const std::string &value) |
| Parse a trailer value as a number. | |
| static double | selectedIon (double target, const nlohmann::json &mono, double width) |
| Selected ion m/z of a precursor (ThermoRawFileParser rule). | |
Private Member Functions | |
| int | parentFromFilter_ (const std::string &key) const |
Static Private Member Functions | |
| static bool | supplemental_ (const nlohmann::json &first, const nlohmann::json &second) |
| static std::size_t | lastReaction_ (const nlohmann::json &reactions) |
| static std::vector< double > | spsMasses_ (const nlohmann::json &scan) |
Private Attributes | |
| std::map< int, State > | scans_ |
| std::map< std::string, int > | filters_ |
Resolve the precursor hierarchy from bridge metadata without fetching peaks. Keeps isolation targets distinct from selected ions, and retains SPS selections and supplemental reactions. The filter fallback follows ThermoRawFileParser.
| struct OpenMS::Internal::ThermoRawFileMetadata::State |
|
inlinestaticprivate |
References ThermoRawFileMetadata::supplemental_().
Referenced by ThermoRawFileMetadata::precursors().
|
inlinestatic |
Parse a trailer value as a number.
Referenced by ThermoRawFileMetadata::precursors(), and ThermoRawFileMetadata::spsMasses_().
|
inlineprivate |
References ThermoRawFileMetadata::filters_.
Referenced by ThermoRawFileMetadata::precursors().
|
inline |
Precursor descriptors of one scan; scans must be passed in acquisition order.
MS1 scans return an empty array and are only recorded as potential parents. For MSn scans the array holds the scan's own precursor (isolation target, selected ion, charge, window, parent scan / spectrum reference, activation and supplemental activation), followed by further SPS selections and then the precursors of every ancestor scan, so an MS3 scan lists its MS2 parent's precursor as well. Only each scan's own precursors are retained internally; ancestors are resolved through parent links on request.
References ThermoRawFileMetadata::filters_, ThermoRawFileMetadata::lastReaction_(), ThermoRawFileMetadata::State::level, ThermoRawFileMetadata::State::native_id, ThermoRawFileMetadata::number(), ThermoRawFileMetadata::State::own, ThermoRawFileMetadata::State::parent, ThermoRawFileMetadata::parentFromFilter_(), ThermoRawFileMetadata::State::reactions, ThermoRawFileMetadata::scans_, ThermoRawFileMetadata::selectedIon(), ThermoRawFileMetadata::spsMasses_(), and ThermoRawFileMetadata::trailer().
|
inlinestatic |
Selected ion m/z of a precursor (ThermoRawFileParser rule).
| target | isolation window target m/z of the reaction |
| mono | "Monoisotopic M/Z:" trailer value as returned by number() |
| width | isolation width (0 if unknown) |
Referenced by ThermoRawFileMetadata::precursors().
|
inlinestaticprivate |
References ThermoRawFileMetadata::number(), and ThermoRawFileMetadata::trailer().
Referenced by ThermoRawFileMetadata::precursors().
|
inlinestaticprivate |
References first.
Referenced by ThermoRawFileMetadata::lastReaction_().
|
inlinestatic |
Value of the trailer-extra entry with exactly this label, or "" if absent / not a string.
Referenced by ThermoRawFileMetadata::precursors(), and ThermoRawFileMetadata::spsMasses_().
|
private |
Referenced by ThermoRawFileMetadata::parentFromFilter_(), and ThermoRawFileMetadata::precursors().
|
private |
Referenced by ThermoRawFileMetadata::precursors().