66 location_zero.
tree = -1;
83 std::size_t beginning, std::size_t length,
int tree,
int score,
const SpOMSProtein *protein_ptr)
94 if(iter->tree == tree)
97 iter->length = length;
118 catch(
const std::exception &error)
121 QObject::tr(
"addLocation failed std::exception :\n%1").arg(error.what()));
125std::vector<pappso::specpeptidoms::Location>
128 std::vector<Location> locations;
136 locations.push_back(*iter);
163 QObject::tr(
"LocationSaver::getMinScore failed :\nout of "
164 "range access %1 with m_tree_scores.size() %2")
193 location_zero.
tree = -1;
int getMinScore(int tree_id) const
Returns the minimum score for a location with the provided tree_id to be saved in the heap.
std::vector< int > m_tree_scores
void resetLocationSaver()
static bool locationCompare(const Location &loc1, const Location &loc2)
void addLocation(std::size_t beginning, std::size_t length, int tree, int score, const SpOMSProtein *protein_ptr)
Adds a location to the locations heap. If a saved location has the same tree_id, it will replace it....
std::vector< bool > m_tree_in_heap
std::vector< Location > getLocations() const
Returns a vector containing the saved locations.
std::vector< Location > m_locations_heap
std::size_t getNextTree()
Creates a new alignment tree and returns its id.
const uint MAX_SAVED_ALIGNMENTS(5)
const int MIN_ALIGNMENT_SCORE(15)
const float ALIGNMENT_FILTER(0.9)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
std::size_t length
length of the subsequence
QString getPeptideString() const
convenient function to get peptide sequence from location
std::size_t beginning
start position of the subsequence
const SpOMSProtein * proteinPtr
Protein accession.