![]() |
OpenMS
|
FLASHIda class for real time deconvolution This class contains functions to perform deconvolution (by SpectralDeconvolution) for the spectrum received from Thermo iAPI. Also precursor selection is done in this class. The functions in this class are invoked in C# Thermo iAPI side through the functions in FLASHIdaBridgeFunctions class. More...
#include <OpenMS/ANALYSIS/TOPDOWN/FLASHIda.h>
Public Types | |
| typedef FLASHHelperClasses::PrecalculatedAveragine | PrecalculatedAveragine |
| typedef FLASHHelperClasses::LogMzPeak | LogMzPeak |
Public Member Functions | |
| FLASHIda (char *arg) | |
| constructor that takes string input argument More... | |
| ~FLASHIda ()=default | |
| destructor More... | |
| FLASHIda (const FLASHIda &)=default | |
| copy constructor More... | |
| FLASHIda (FLASHIda &&other)=default | |
| move constructor More... | |
| FLASHIda & | operator= (const FLASHIda &fd)=default |
| assignment operator More... | |
| int | getPeakGroups (const double *mzs, const double *intensities, int length, double rt, int ms_level, const char *name, const char *cv) |
| get peak groups (deconvolved masses) from input spectrum, specified by mzs and intensities (due to C# interface it is necessary) More... | |
| void | getIsolationWindows (double *window_start, double *window_end, double *qscores, int *charges, int *min_charges, int *max_charges, double *mono_masses, double *charge_cos, double *charge_snrs, double *iso_cos, double *snrs, double *charge_scores, double *ppm_errors, double *precursor_intensities, double *peakgroup_intensities, int *ids) |
| get isolation windows using FLASHDeconv algorithm. Many parameters are in primitive types so they can be passed to C# FLASHIda side. All parameters are for isolation windows. More... | |
| void | removeFromExlusionList (int id) |
| Remove a given precursor from the exclusion list by id (needed for FAIMS) More... | |
| double | getRepresentativeMass () |
| void | getAllMonoisotopicMasses (double *masses, int length) |
| int | GetAllPeakGroupSize () |
Static Public Member Functions | |
| static std::map< int, std::vector< std::vector< float > > > | parseFLASHIdaLog (const String &in_log_file) |
| parse FLASHIda log file More... | |
Private Member Functions | |
| void | filterPeakGroupsUsingMassExclusion_ (int ms_level, double rt) |
| discard peak groups using mass exclusion More... | |
Static Private Member Functions | |
| static MSSpectrum | makeMSSpectrum_ (const double *mzs, const double *ints, int length, double rt, int ms_level, const char *name) |
| generate MSSpectrum class using mzs and intensities. mzs and intensities and other information are provided by Thermo iAPI More... | |
Private Attributes | |
| std::unordered_map< int, double > | tqscore_exceeding_mz_rt_map_ |
| PeakGroup comparator for soring by QScore. More... | |
| std::unordered_map< int, double > | tqscore_exceeding_mass_rt_map_ |
| integer mz value vs. retention time with tqscore exceeding total qscore threshold More... | |
| std::unordered_map< int, double > | all_mass_rt_map_ |
| integer mass value vs. retention time with tqscore exceeding total qscore threshold More... | |
| std::unordered_map< int, double > | mass_qscore_map_ |
| mz value vs. retention time for all acquired precursors More... | |
| std::unordered_map< int, int > | id_mass_map_ |
| mass value vs. total qscore for all acquired precursors More... | |
| std::unordered_map< int, int > | id_mz_map_ |
| std::unordered_map< int, double > | id_qscore_map_ |
| DeconvolvedSpectrum | deconvolved_spectrum_ |
| deconvolved spectrum that contains the peak group More... | |
| DeconvolvedSpectrum | selected_peak_groups_ |
| selected peak groups out of deconvolved_spectrum_ More... | |
| std::vector< int > | trigger_charges |
| peakGroup charges to be triggered More... | |
| std::vector< double > | trigger_left_isolation_mzs_ |
| peakGroup isolation window ranges More... | |
| std::vector< double > | trigger_right_isolation_mzs_ |
| std::vector< int > | trigger_ids_ |
| SpectralDeconvolution | fd_ |
| SpectralDeconvolution class for deconvolution. More... | |
| double | tqscore_threshold = .99 |
| total QScore threshold More... | |
| double | qscore_threshold_ |
| q score threshold - determined from C# side More... | |
| double | rt_window_ |
| retention time window - determined from C# side More... | |
| IntList | mass_count_ |
| how many masses will be selected per ms level? - determined from C# side More... | |
| int | targeting_mode_ = 0 |
| std::map< double, std::vector< double > > | target_mass_rt_map_ |
| 0 no targeting 1 inclusive 2 exclusive More... | |
| std::map< double, std::vector< double > > | target_mass_qscore_map_ |
| std::vector< double > | target_masses_ |
| int | window_id_ = 0 |
| current target masses. updated per spectrum More... | |
| std::map< double, std::vector< double > > | exclusion_rt_masses_map_ |
| maps for global exclusion More... | |
| std::vector< double > | excluded_masses_ |
| if rt == 0, its mapped masses are always excluded. More... | |
| double | snr_threshold_ = 1 |
| current target masses. updated per spectrum More... | |
| DoubleList | tol_ |
| mass tolerance More... | |
| std::map< double, std::vector< double > > | cv_to_mass_ |
FLASHIda class for real time deconvolution This class contains functions to perform deconvolution (by SpectralDeconvolution) for the spectrum received from Thermo iAPI. Also precursor selection is done in this class. The functions in this class are invoked in C# Thermo iAPI side through the functions in FLASHIdaBridgeFunctions class.
|
explicit |
constructor that takes string input argument
|
default |
destructor
|
private |
discard peak groups using mass exclusion
| ms_level | MS level |
| rt | Retention time |
| void getAllMonoisotopicMasses | ( | double * | masses, |
| int | length | ||
| ) |
| int GetAllPeakGroupSize | ( | ) |
| void getIsolationWindows | ( | double * | window_start, |
| double * | window_end, | ||
| double * | qscores, | ||
| int * | charges, | ||
| int * | min_charges, | ||
| int * | max_charges, | ||
| double * | mono_masses, | ||
| double * | charge_cos, | ||
| double * | charge_snrs, | ||
| double * | iso_cos, | ||
| double * | snrs, | ||
| double * | charge_scores, | ||
| double * | ppm_errors, | ||
| double * | precursor_intensities, | ||
| double * | peakgroup_intensities, | ||
| int * | ids | ||
| ) |
get isolation windows using FLASHDeconv algorithm. Many parameters are in primitive types so they can be passed to C# FLASHIda side. All parameters are for isolation windows.
| window_start | window start mzs |
| window_end | window end mzs |
| qscores | QScores of windows |
| charges | charges of windows |
| min_charges | minimum charges |
| max_charges | maximum charges |
| mono_masses | monoisotopic masses |
| charge_cos | charge cosine scores |
| charge_snrs | charge SNRs or precursor SNRs |
| iso_cos | mass cosine scores |
| snrs | mass SNRs |
| charge_scores | charge distribution scores |
| ppm_errors | average PPM errors |
| precursor_intensities | precursor peak intensities |
| peakgroup_intensities | precursor mass intensities |
| ids | precursor IDs |
| int getPeakGroups | ( | const double * | mzs, |
| const double * | intensities, | ||
| int | length, | ||
| double | rt, | ||
| int | ms_level, | ||
| const char * | name, | ||
| const char * | cv | ||
| ) |
get peak groups (deconvolved masses) from input spectrum, specified by mzs and intensities (due to C# interface it is necessary)
| mzs | mz values of the input spectrum |
| intensities | intensities of the input spectrum |
| length | length of mzs and ints |
| rt | Retention time in seconds |
| ms_level | ms level |
| name | spectrum name |
| cv | CV values when FAIMS is used |
| double getRepresentativeMass | ( | ) |
|
staticprivate |
generate MSSpectrum class using mzs and intensities. mzs and intensities and other information are provided by Thermo iAPI
| mzs | m/z values |
| ints | intensities |
| length | number of peaks |
| rt | Retention time |
| ms_level | MS level |
| name | spectrum name |
|
static |
parse FLASHIda log file
| in_log_file | input log file |
| void removeFromExlusionList | ( | int | id | ) |
Remove a given precursor from the exclusion list by id (needed for FAIMS)
| id | id of precursor |
|
private |
integer mass value vs. retention time with tqscore exceeding total qscore threshold
|
private |
|
private |
deconvolved spectrum that contains the peak group
|
private |
if rt == 0, its mapped masses are always excluded.
|
private |
maps for global exclusion
|
private |
SpectralDeconvolution class for deconvolution.
|
private |
mass value vs. total qscore for all acquired precursors
Maps that are neccessary for selectively disabling mass exclusion (needed for FAIMS support)
|
private |
|
private |
|
private |
how many masses will be selected per ms level? - determined from C# side
|
private |
mz value vs. retention time for all acquired precursors
|
private |
q score threshold - determined from C# side
|
private |
retention time window - determined from C# side
|
private |
selected peak groups out of deconvolved_spectrum_
|
private |
current target masses. updated per spectrum
precursor SNR threshold
|
private |
|
private |
0 no targeting 1 inclusive 2 exclusive
maps for global inclusion targeting
|
private |
|
private |
|
private |
mass tolerance
|
private |
integer mz value vs. retention time with tqscore exceeding total qscore threshold
|
private |
PeakGroup comparator for soring by QScore.
Maps that are necessary for mass exclusion
|
private |
total QScore threshold
|
private |
peakGroup charges to be triggered
|
private |
|
private |
peakGroup isolation window ranges
|
private |
|
private |
current target masses. updated per spectrum