112 use_ms1_traces_(false),
113 use_ms1_ion_mobility_(false),
115 threads_outer_loop_(-1)
132 use_ms1_traces_(use_ms1_traces),
133 use_ms1_ion_mobility_(use_ms1_ion_mobility),
135 threads_outer_loop_(threads_outer_loop)
153 const std::vector< OpenSwath::SwathMap > & swath_maps,
154 std::vector< MSChromatogram >& ms1_chromatograms,
159 bool ms1only =
false,
160 int ms1_isotopes = 0);
180 std::vector< ChromatogramExtractorAlgorithm::ExtractionCoordinates > & coordinates,
184 const bool ms1 =
false,
185 const int ms1_isotopes = -1)
const;
275 std::vector< OpenSwath::SwathMap > & swath_maps,
279 const Param & feature_finder_param,
281 const Param& irt_detection_param,
282 const Param& calibration_param,
283 const String& irt_mzml_out,
286 bool load_into_memory =
false);
320 const std::vector< OpenMS::MSChromatogram >& chromatograms,
322 std::vector< OpenSwath::SwathMap > & swath_maps,
325 const Param& default_ffparam,
326 const Param& irt_detection_param,
327 const Param& calibration_param);
342 std::vector< OpenMS::MSChromatogram > & chromatograms,
346 bool load_into_memory);
404 OpenSwathWorkflow(
bool use_ms1_traces,
bool use_ms1_ion_mobility,
bool prm,
int threads_outer_loop) :
438 const Param & feature_finder_param,
441 bool store_features_in_featureFile,
447 bool load_into_memory);
509 const std::vector< OpenMS::MSChromatogram > & ms2_chromatograms,
510 const std::vector< OpenMS::MSChromatogram > & ms1_chromatograms,
511 const std::vector< OpenSwath::SwathMap >& swath_maps,
513 const Param& feature_finder_param,
515 const double rt_extraction_window,
519 int nr_ms1_isotopes = 0,
520 bool ms1only =
false)
const;
551 const std::vector<OpenSwath::LightTransition>& all_transitions,
552 std::vector<OpenSwath::LightTransition>& output);
616 const Param & feature_finder_param,
624 bool load_into_memory);
630 double & sonar_winsize,
631 double & sonar_start,
633 int & sonar_total_win);
639 const std::vector< ChromatogramExtractor::ExtractionCoordinates > & coordinates,
640 std::vector< OpenSwath::ChromatogramPtr > & chrom_list,
A container for features.
Definition: FeatureMap.h:105
The interface of a consumer of spectra and chromatograms.
Definition: IMSDataConsumer.h:70
The representation of a group of transitions in a targeted proteomics experiment.
Definition: MRMTransitionGroup.h:68
The representation of a chromatogram.
Definition: MSChromatogram.h:58
Execute all steps for retention time and m/z calibration of SWATH-MS data.
Definition: OpenSwathWorkflow.h:237
OpenSwathCalibrationWorkflow()
Definition: OpenSwathWorkflow.h:240
static void addChromatograms(MSChromatogram &base_chrom, const MSChromatogram &newchrom)
Add two chromatograms.
void simpleExtractChromatograms_(const std::vector< OpenSwath::SwathMap > &swath_maps, const OpenSwath::LightTargetedExperiment &irt_transitions, std::vector< OpenMS::MSChromatogram > &chromatograms, const TransformationDescription &trafo, const ChromExtractParams &cp, bool sonar, bool load_into_memory)
Simple method to extract chromatograms (for the RT-normalization peptides)
TransformationDescription performRTNormalization(const OpenSwath::LightTargetedExperiment &irt_transitions, std::vector< OpenSwath::SwathMap > &swath_maps, TransformationDescription &im_trafo, double min_rsq, double min_coverage, const Param &feature_finder_param, const ChromExtractParams &cp_irt, const Param &irt_detection_param, const Param &calibration_param, const String &irt_mzml_out, Size debug_level, bool sonar=false, bool load_into_memory=false)
Perform RT and m/z correction of the input data using RT-normalization peptides.
OpenSwathCalibrationWorkflow(bool use_ms1_traces)
Definition: OpenSwathWorkflow.h:245
TransformationDescription doDataNormalization_(const OpenSwath::LightTargetedExperiment &transition_exp_, const std::vector< OpenMS::MSChromatogram > &chromatograms, TransformationDescription &im_trafo, std::vector< OpenSwath::SwathMap > &swath_maps, double min_rsq, double min_coverage, const Param &default_ffparam, const Param &irt_detection_param, const Param &calibration_param)
Perform retention time and m/z calibration.
Class to write out an OpenSwath OSW SQLite output (PyProphet input).
Definition: OpenSwathOSWWriter.h:116
Class to write out an OpenSwath TSV output (mProphet input).
Definition: OpenSwathTSVWriter.h:130
Definition: OpenSwathWorkflow.h:102
bool prm_
Whether data is acquired in targeted DIA (e.g. PRM mode) with potentially overlapping windows.
Definition: OpenSwathWorkflow.h:204
bool use_ms1_traces_
Whether to use the MS1 traces.
Definition: OpenSwathWorkflow.h:198
int threads_outer_loop_
How many threads should be used for the outer loop.
Definition: OpenSwathWorkflow.h:215
void prepareExtractionCoordinates_(std::vector< OpenSwath::ChromatogramPtr > &chrom_list, std::vector< ChromatogramExtractorAlgorithm::ExtractionCoordinates > &coordinates, const OpenSwath::LightTargetedExperiment &transition_exp_used, const TransformationDescription trafo_inverse, const ChromExtractParams &cp, const bool ms1=false, const int ms1_isotopes=-1) const
Function to prepare extraction coordinates that also correctly handles RT transformations.
OpenSwathWorkflowBase()
Default constructor.
Definition: OpenSwathWorkflow.h:111
bool use_ms1_ion_mobility_
Whether to use ion mobility extraction on MS1 traces.
Definition: OpenSwathWorkflow.h:201
OpenSwathWorkflowBase(bool use_ms1_traces, bool use_ms1_ion_mobility, bool prm, int threads_outer_loop)
Constructor.
Definition: OpenSwathWorkflow.h:131
void MS1Extraction_(const OpenSwath::SpectrumAccessPtr ms1_map, const std::vector< OpenSwath::SwathMap > &swath_maps, std::vector< MSChromatogram > &ms1_chromatograms, Interfaces::IMSDataConsumer *chromConsumer, const ChromExtractParams &cp, const OpenSwath::LightTargetedExperiment &transition_exp, const TransformationDescription &trafo_inverse, bool ms1only=false, int ms1_isotopes=0)
Perform MS1 extraction and store result in ms1_chromatograms.
Execute all steps in an OpenEcho analysis (OpenSwath for SONAR data)
Definition: OpenSwathWorkflow.h:582
OpenSwathWorkflowSonar(bool use_ms1_traces)
Definition: OpenSwathWorkflow.h:586
void computeSonarWindows_(const std::vector< OpenSwath::SwathMap > &swath_maps, double &sonar_winsize, double &sonar_start, double &sonar_end, int &sonar_total_win)
Compute start, end and total number of (virtual) SONAR windows.
OpenSwath::ChromatogramPtr addChromatograms(OpenSwath::ChromatogramPtr base_chrom, OpenSwath::ChromatogramPtr newchrom)
Add two chromatograms.
void performExtractionSonar(const std::vector< OpenSwath::SwathMap > &swath_maps, const TransformationDescription trafo, const ChromExtractParams &cp, const ChromExtractParams &cp_ms1, const Param &feature_finder_param, const OpenSwath::LightTargetedExperiment &transition_exp, FeatureMap &out_featureFile, bool store_features, OpenSwathTSVWriter &tsv_writer, OpenSwathOSWWriter &osw_writer, Interfaces::IMSDataConsumer *chromConsumer, int batchSize, bool load_into_memory)
Execute OpenSWATH analysis on a set of SONAR SwathMaps and transitions.
void performSonarExtraction_(const std::vector< OpenSwath::SwathMap > &used_maps, const std::vector< ChromatogramExtractor::ExtractionCoordinates > &coordinates, std::vector< OpenSwath::ChromatogramPtr > &chrom_list, const ChromExtractParams &cp)
Perform extraction from multiple SONAR windows.
Execute all steps in an OpenSwath analysis.
Definition: OpenSwathWorkflow.h:384
MRMTransitionGroup< MSChromatogram, TransitionType > MRMTransitionGroupType
Definition: OpenSwathWorkflow.h:386
void writeOutFeaturesAndChroms_(std::vector< OpenMS::MSChromatogram > &chromatograms, const FeatureMap &featureFile, FeatureMap &out_featureFile, bool store_features, Interfaces::IMSDataConsumer *chromConsumer)
Write output features and chromatograms.
void selectCompoundsForBatch_(const OpenSwath::LightTargetedExperiment &transition_exp_used_all, OpenSwath::LightTargetedExperiment &transition_exp_used, int batch_size, size_t batch_idx)
Select which compounds to analyze in the next batch (and copy to output)
OpenSwath::LightTransition TransitionType
Definition: OpenSwathWorkflow.h:385
void performExtraction(const std::vector< OpenSwath::SwathMap > &swath_maps, const TransformationDescription trafo, const ChromExtractParams &chromatogram_extraction_params, const ChromExtractParams &ms1_chromatogram_extraction_params, const Param &feature_finder_param, const OpenSwath::LightTargetedExperiment &assay_library, FeatureMap &result_featureFile, bool store_features_in_featureFile, OpenSwathTSVWriter &result_tsv, OpenSwathOSWWriter &result_osw, Interfaces::IMSDataConsumer *result_chromatograms, int batchSize, int ms1_isotopes, bool load_into_memory)
Execute OpenSWATH analysis on a set of SwathMaps and transitions.
void scoreAllChromatograms_(const std::vector< OpenMS::MSChromatogram > &ms2_chromatograms, const std::vector< OpenMS::MSChromatogram > &ms1_chromatograms, const std::vector< OpenSwath::SwathMap > &swath_maps, const OpenSwath::LightTargetedExperiment &transition_exp, const Param &feature_finder_param, TransformationDescription trafo, const double rt_extraction_window, FeatureMap &output, OpenSwathTSVWriter &tsv_writer, OpenSwathOSWWriter &osw_writer, int nr_ms1_isotopes=0, bool ms1only=false) const
Perform scoring on a set of chromatograms.
void copyBatchTransitions_(const std::vector< OpenSwath::LightCompound > &used_compounds, const std::vector< OpenSwath::LightTransition > &all_transitions, std::vector< OpenSwath::LightTransition > &output)
Helper function for selectCompoundsForBatch_()
OpenSwathWorkflow(bool use_ms1_traces, bool use_ms1_ion_mobility, bool prm, int threads_outer_loop)
Constructor.
Definition: OpenSwathWorkflow.h:404
Management and storage of parameters / INI files.
Definition: Param.h:70
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:55
A more convenient string class.
Definition: String.h:61
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
double im_extraction_window
Extraction window in ion mobility.
Definition: OpenSwathWorkflow.h:89
bool ppm
Whether the extraction window is given in ppm or Da.
Definition: OpenSwathWorkflow.h:91
String extraction_function
The extraction function in mass space.
Definition: OpenSwathWorkflow.h:93
double extra_rt_extract
Whether to extract some extra in the retention time (can be useful if one wants to look at the chroma...
Definition: OpenSwathWorkflow.h:97
double min_upper_edge_dist
Whether to not extract anything closer than this (in Da) from the upper edge.
Definition: OpenSwathWorkflow.h:85
double mz_extraction_window
Extraction window in Da or ppm (e.g. 50ppm means extraction +/- 25ppm)
Definition: OpenSwathWorkflow.h:87
double rt_extraction_window
The retention time extraction window.
Definition: OpenSwathWorkflow.h:95
boost::shared_ptr< Chromatogram > ChromatogramPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:172
boost::shared_ptr< ISpectrumAccess > SpectrumAccessPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:87
Definition: TransitionExperiment.h:207
Definition: TransitionExperiment.h:46