1 #ifndef GUI_WIDGET_SEQ_GRAPHICS___ALIGNMENT_SORTER_BY_SCORE__HPP
2 #define GUI_WIDGET_SEQ_GRAPHICS___ALIGNMENT_SORTER_BY_SCORE__HPP
72 if (group.second != idx)
83 virtual int GetGroupIdx(
const objects::CSeq_align& align)
const
CAlignSorterByScore is a sorter used to sort alignments by scores.
virtual SSorterDescriptor GetThisDescr() const
Return a name for the sorter.
void SetMapper(TScoreMapper &score_mapper)
const std::string m_GroupName
TScoreMapper m_ScoreMapper
const std::string m_ScoreId
std::function< string(const T &)> TScoreMapper
virtual int GetGroupIdx(const objects::CSeq_align &align) const
Get the sorted group index for a given feature.
CAlignSorterByScore(std::string const &score_name, std::string const &score_id, const std::string &group_name, std::string const &description)
virtual std::string GroupIdxToName(int idx) const
Convert group index into group name.
const std::string m_Description
std::map< string, int > m_SortGroups
Curently intended sorting groups.
const std::string m_ScoreName
IAlignSorter is an abstract interface for sorting alignments based on any criteria.
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
unsigned int
A callback function used to compare two keys in a database.