34#include <boost/numeric/ublas/matrix.hpp>
107 const QString &protein_seq,
108 const QString &protein_id,
109 const std::size_t beginning,
110 const std::size_t length);
122 const QString &protein_seq,
123 const QString &protein_id,
124 std::size_t beginning,
126 const std::vector<double> &shifts);
152 const QString &protein_seq);
185 const QString &protein_seq,
186 const QString &protein_id,
188 std::vector<std::size_t> peaks_to_remove,
203 const std::size_t row_number,
204 const std::vector<AaPosition> aa_positions,
206 const bool fast_align,
207 const QString &protein);
221 const std::size_t origin_row,
222 const std::size_t current_row,
223 const std::size_t l_peak,
224 const std::size_t r_peak)
const;
236 const std::size_t current_row,
237 const std::size_t r_peak)
const;
249 std::size_t end_peak)
const;
collection of integer code for each amino acid 0 => null 1 to 20 => amino acid sorted by there mass (...
void saveBestAlignment(const QString &sequence, const SpOMSSpectrum &spectrum, std::size_t offset)
Stores the best alignment from m_scenario in m_best_alignment.
LocationSaver m_location_saver
const Alignment & getBestAlignment() const
Returns a const ref to m_best_alignment.
void preciseAlign(const SpOMSSpectrum &spectrum, const QString &protein_seq, const QString &protein_id, const std::size_t beginning, const std::size_t length)
performs the second alignment search between a protein subsequence and a spectrum.
Scenario getScenario() const
Returns a copy of m_scenario.
void updateAlignmentMatrix(const QString &sequence, const std::size_t row_number, const std::vector< AaPosition > aa_positions, const SpOMSSpectrum &spectrum, const bool fast_align, const QString &protein)
updates the scores of the alignment matrix for a given amino acid as well as the location heap/scenar...
void postProcessingAlign(const SpOMSSpectrum &spectrum, const QString &protein_seq, const QString &protein_id, std::size_t beginning, std::size_t length, const std::vector< double > &shifts)
performs the post-processing : generates corrected spectra and align them
Alignment m_best_alignment
const ScoreValues & m_scorevalues
bool perfectShiftPossible(const QString &sequence, const SpOMSSpectrum &spectrum, const std::size_t origin_row, const std::size_t current_row, const std::size_t l_peak, const std::size_t r_peak) const
indicates if a perfect shift is possible between the provided positions
std::size_t perfectShiftPossibleEnd(const QString &sequence, const SpOMSSpectrum &spectrum, std::size_t end_row, std::size_t end_peak) const
indicates if a perfect shift is possible between the provided positions
Alignment m_best_post_processed_alignment
Alignment m_best_corrected_alignment
std::vector< std::pair< std::size_t, KeyCell > > m_updated_cells
std::vector< KeyCell > m_interest_cells
static std::vector< double > getPotentialMassErrors(const pappso::AaCode &aa_code, const Alignment &alignment, const QString &protein_seq)
Returns a list of the potential mass errors corresponding to the provided alignment in the provided p...
void correctAlign(int recursive_call_count, const QString &protein_seq, const QString &protein_id, const SpOMSSpectrum &spectrum, std::vector< std::size_t > peaks_to_remove, std::size_t offset)
Recursively performs the correction of the alignment.
SemiGlobalAlignment(const ScoreValues &score_values, const pappso::PrecisionPtr precision_ptr, const AaCode &aaCode)
void fastAlign(const SpOMSSpectrum &spectrum, const QString &protein_seq, const QString &protein_id)
perform the first alignment search between a protein sequence and a spectrum. The member location hea...
pappso::PrecisionPtr m_precision_ptr
std::size_t perfectShiftPossibleFrom0(const QString &sequence, const SpOMSSpectrum &spectrum, const std::size_t current_row, const std::size_t r_peak) const
indicates if a perfect shift is possible from the spectrum beginning to the provided peak.
LocationSaver getLocationSaver() const
Returns a copy of m_location_saver.
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
const PrecisionBase * PrecisionPtr
void reset()
reinitialize to default score_values
std::vector< double > shifts
std::vector< std::size_t > peaks