19 #include <boost/dynamic_bitset.hpp>
48 void run(std::vector<ProteinHit>& hits,
const std::vector<FLASHHelperClasses::Tag>& tags,
50 const MSSpectrum& spec,
double ppm,
bool multiple_hits_per_spec);
54 for (
const auto& hit : proteoform_hits_)
62 return ! proteoform_hits_.empty();
70 const static int multi_ion_score = 1;
86 int protein_start_position_ = -1, protein_end_position_ = -1;
87 double calculated_precursor_mass_ = -1;
90 std::map<double, std::vector<ResidueModification>>
mod_map_;
95 const std::map<
int, std::vector<Size>>& best_path_map,
101 const std::vector<FLASHHelperClasses::Tag>& matched_tags,
102 std::map<
int, std::vector<Size>>& all_paths_per_mode,
int max_mod_cntr_for_last_mode);
111 const std::vector<std::vector<int>>& tag_edges,
112 int max_mod_cntr_for_last_mode,
117 std::map<
Size, std::tuple<double, double>>& sinks,
119 double truncation_mass,
120 double cumulative_shift,
121 std::map<
Size, std::map<int, int>>& node_max_score_map,
122 const std::vector<std::vector<int>>& tag_edges,
123 int max_mod_cntr_for_last_mode,
131 int diagonal_counter,
132 double truncation_mass,
133 double cumulative_mod_mass,
134 std::map<
Size, std::map<int, int>>& node_max_score_map,
135 int max_mod_cntr_for_last_mode);
137 int getProteinLength_(
const std::vector<Size>& path,
const std::vector<double>& pro_masses)
const;
146 std::vector<FLASHHelperClasses::Tag>
tags_;
150 int max_mod_cntr_ = 0;
152 const int max_path_score_ = 1200;
153 const int min_path_score_ = -20;
154 const int max_extension_stretch_ = 50;
155 double max_mod_mass_ = 500.0;
156 double given_precursor_mass_ = -1;
A class representing a deconvolved spectrum. DeconvolvedSpectrum consists of PeakGroups representing ...
Definition: DeconvolvedSpectrum.h:30
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
Definition: FLASHExtenderAlgorithm.h:31
std::vector< ProteinHit > proteoform_hits_
Definition: FLASHExtenderAlgorithm.h:145
double getSpecMassSpan_(const std::vector< Size > &path, const MSSpectrum &node_spec, int pro_mass_size) const
FLASHExtenderAlgorithm(const FLASHExtenderAlgorithm &)=default
copy constructor
std::map< int, MSSpectrum > node_spec_map_
Definition: FLASHExtenderAlgorithm.h:83
Size getVertex_(int node_index, int pro_index, int score, int num_mod, Size pro_mass_size) const
static void getProMasses_(const ProteinHit &hit, std::vector< double > &pro_masses, int mode)
boost::dynamic_bitset visited_
Definition: FLASHExtenderAlgorithm.h:81
void defineNodes_(const DeconvolvedSpectrum &dspec, HitInformation &hi, double max_mass)
void calculatePrecursorMass_(const ProteinHit &hit, const std::map< int, std::vector< Size >> &best_path_map, HitInformation &hi)
FLASHExtenderAlgorithm & operator=(const FLASHExtenderAlgorithm &other)
assignment operator
void setModificationMap(const std::map< double, std::vector< ResidueModification >> &mod_map)
Definition: FLASHExtenderAlgorithm.h:65
int getProIndex_(Size vertex, Size pro_mass_size) const
int getProteinLength_(const std::vector< Size > &path, const std::vector< double > &pro_masses) const
FLASHExtenderAlgorithm()
constructor
std::vector< std::string > ion_types_str_
Definition: FLASHExtenderAlgorithm.h:142
void setDefaultParams_()
implemented for DefaultParamHandler
~FLASHExtenderAlgorithm() override=default
destructor
std::vector< int > start_pro_indices_
Definition: FLASHExtenderAlgorithm.h:151
FLASHHelperClasses::DAG dag_
Definition: FLASHExtenderAlgorithm.h:82
void getProteoforms(std::vector< ProteinHit > &hits) const
Definition: FLASHExtenderAlgorithm.h:52
int getScore_(Size vertex) const
std::vector< double > prefix_shifts_
Definition: FLASHExtenderAlgorithm.h:143
void run_(const ProteinHit &hit, HitInformation &hi, const std::vector< FLASHHelperClasses::Tag > &matched_tags, std::map< int, std::vector< Size >> &all_paths_per_mode, int max_mod_cntr_for_last_mode)
void constructDAG_(std::set< Size > &sinks, HitInformation &hi, const std::vector< std::vector< int >> &tag_edges, int max_mod_cntr_for_last_mode, bool use_tags)
void extendBetweenTags_(std::map< Size, std::tuple< double, double >> &sinks, HitInformation &hi, Size start_vertex, int end_node_index, int end_pro_index, int diagonal_counter, double truncation_mass, double cumulative_mod_mass, std::map< Size, std::map< int, int >> &node_max_score_map, int max_mod_cntr_for_last_mode)
std::map< double, std::vector< ResidueModification > > mod_map_
Definition: FLASHExtenderAlgorithm.h:90
double tol_
Definition: FLASHExtenderAlgorithm.h:147
double getProteinMassSpan_(const std::vector< Size > &path, const std::vector< double > &pro_masses) const
int getNodeIndex_(Size vertex, Size pro_mass_size) const
void run(std::vector< ProteinHit > &hits, const std::vector< FLASHHelperClasses::Tag > &tags, const DeconvolvedSpectrum &dspec, const MSSpectrum &spec, double ppm, bool multiple_hits_per_spec)
std::vector< double > suffix_shifts_
Definition: FLASHExtenderAlgorithm.h:144
int getModifiedAACount_(const std::vector< Size > &path) const
FLASHExtenderAlgorithm(FLASHExtenderAlgorithm &&other)=default
move constructor
std::vector< FLASHHelperClasses::Tag > tags_
Definition: FLASHExtenderAlgorithm.h:146
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
int mode_
Definition: FLASHExtenderAlgorithm.h:85
bool hasProteoforms() const
Definition: FLASHExtenderAlgorithm.h:60
std::map< int, std::vector< double > > pro_mass_map_
Definition: FLASHExtenderAlgorithm.h:84
int getModNumber_(Size vertex) const
void connectBetweenTags_(std::set< Size > &visited_tag_edges, HitInformation &hi, std::map< Size, std::tuple< double, double >> &sinks, Size vertex, double truncation_mass, double cumulative_shift, std::map< Size, std::map< int, int >> &node_max_score_map, const std::vector< std::vector< int >> &tag_edges, int max_mod_cntr_for_last_mode, bool use_tags)
Definition: FLASHHelperClasses.h:282
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:27
Representation of a protein hit.
Definition: ProteinHit.h:34
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
FLASHIda C++ to C# (or vice versa) bridge functions The functions here are called in C# to invoke fun...
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19