|
| void | extractChromatograms (const OpenSwath::SpectrumAccessPtr input, std::vector< OpenSwath::ChromatogramPtr > &output, const std::vector< ExtractionCoordinates > &extraction_coordinates, double mz_extraction_window, bool ppm, const String &filter) |
| | Extract chromatograms at the m/z and RT defined by the ExtractionCoordinates.
|
| |
| void | extractChromatograms (const OpenSwath::SpectrumAccessPtr input, std::vector< OpenSwath::ChromatogramPtr > &output, const std::vector< ExtractionCoordinates > &extraction_coordinates, double mz_extraction_window, bool ppm, double im_extraction_window, const String &filter) |
| | Extract chromatograms at the m/z and RT defined by the ExtractionCoordinates.
|
| |
| | ProgressLogger () |
| | Constructor.
|
| |
| virtual | ~ProgressLogger () |
| | Destructor.
|
| |
| | ProgressLogger (const ProgressLogger &other) |
| | Copy constructor.
|
| |
| ProgressLogger & | operator= (const ProgressLogger &other) |
| | Assignment Operator.
|
| |
| void | setLogType (LogType type) const |
| | Sets the progress log that should be used. The default type is NONE!
|
| |
| LogType | getLogType () const |
| | Returns the type of progress log being used.
|
| |
| void | setLogger (ProgressLoggerImpl *logger) |
| | Sets the logger to be used for progress logging.
|
| |
| void | startProgress (SignedSize begin, SignedSize end, const String &label) const |
| | Initializes the progress display.
|
| |
| void | setProgress (SignedSize value) const |
| | Sets the current progress.
|
| |
| void | endProgress (UInt64 bytes_processed=0) const |
| |
| void | nextProgress () const |
| | increment progress by 1 (according to range begin-end)
|
| |
|
| static void | prepare_coordinates (std::vector< OpenSwath::ChromatogramPtr > &output_chromatograms, std::vector< ExtractionCoordinates > &coordinates, const OpenMS::TargetedExperiment &transition_exp, const double rt_extraction_window, const bool ms1=false, const int ms1_isotopes=0) |
| | Prepare the extraction coordinates from a TargetedExperiment.
|
| |
| static void | prepare_coordinates (std::vector< OpenSwath::ChromatogramPtr > &output_chromatograms, std::vector< ExtractionCoordinates > &coordinates, const OpenSwath::LightTargetedExperiment &transition_exp_used, const double rt_extraction_window, const bool ms1=false, const int ms1_isotopes=0) |
| |
| template<typename TransitionExpT > |
| static void | return_chromatogram (const std::vector< OpenSwath::ChromatogramPtr > &chromatograms, const std::vector< ChromatogramExtractor::ExtractionCoordinates > &coordinates, TransitionExpT &transition_exp_used, SpectrumSettings settings, std::vector< OpenMS::MSChromatogram > &output_chromatograms, bool ms1, double im_extraction_width=0.0) |
| | This converts the ChromatogramPtr to MSChromatogram and adds meta-information.
|
| |
The ChromatogramExtractor extracts chromatograms (intensity vs retention time) from mass spectrometry data.
This class provides functionality to extract chromatographic traces from mass spectrometry data based on specified coordinates (m/z, retention time, and optionally ion mobility values).
The extractor supports two main interfaces:
- Legacy interface: Takes a TargetedExperiment object containing transitions and extracts chromatograms at the m/z values specified in those transitions.
- Modern interface: Takes a set of ExtractionCoordinates that specify the exact coordinates for extraction. This provides more flexibility and control over the extraction process. The prepare_coordinates() helper function can generate these coordinates for common MS1 and MS2 extraction scenarios.
Key features:
- Supports both MS1 and MS2 level extractions
- Configurable extraction window sizes in m/z dimension (absolute or ppm)
- Multiple filter types available (Bartlett, tophat) for signal processing
- Handles ion mobility data when available
- Optimized for SWATH/DIA (Data Independent Acquisition) experiments
- Progress logging capabilities through ProgressLogger base class
For MS2 extractions, the input data is expected to come from a SWATH/DIA experiment where precursor ions are fragmented in wide isolation windows, allowing for extraction of fragment ion chromatograms.
- See also
- ChromatogramExtractorAlgorithm For the underlying extraction algorithm implementation
-
ExtractionCoordinates For the coordinate specification format
template<class SpectrumSettingsT , class ChromatogramT >
| void prepareSpectra_ |
( |
SpectrumSettingsT & |
settings, |
|
|
std::vector< ChromatogramT > & |
chromatograms, |
|
|
OpenMS::TargetedExperiment & |
transition_exp |
|
) |
| |
|
inlineprivate |
This populates the chromatograms vector with empty chromatograms (but sets their meta-information)
It extracts 1) the target m/z 2) the isolation window (upper/lower) 3) the peptide sequence 4) the fragment m/z 5) Copy the meta-data, e.g. InstrumentSettings, AcquisitionInfo, sourceFile and DataProcessing 6) the native ID from the transition
References ReactionMonitoringTransition::getCompoundRef(), TargetedExperiment::getCompounds(), ReactionMonitoringTransition::getNativeID(), ReactionMonitoringTransition::getPeptideRef(), TargetedExperiment::getPeptides(), ReactionMonitoringTransition::getPrecursorMZ(), ReactionMonitoringTransition::getProductMZ(), TargetedExperiment::getTransitions(), PeptideCompound::id, Peptide::sequence, Precursor::setIsolationWindowLowerOffset(), Precursor::setIsolationWindowUpperOffset(), MetaInfoInterface::setMetaValue(), Peak1D::setMZ(), and Product::setMZ().