Skip to content
Snippets Groups Projects
Commit 7dabcd4a authored by Olivier Langella's avatar Olivier Langella
Browse files

sequence Li count

parent 1b561aca
No related branches found
No related tags found
No related merge requests found
......@@ -187,11 +187,11 @@ unsigned int ProteinMatch::countPeptideMatch(ValidationState state) const {
});
}
size_t ProteinMatch::countUniqueSequence(ValidationState state)const {
size_t ProteinMatch::countUniqueSequenceLi(ValidationState state)const {
std::set<QString> sequence_list;
for (auto & p_peptide_match : _peptide_match_list) {
if (p_peptide_match->getValidationState() >= state) {
sequence_list.insert(p_peptide_match->getPeptideXtpSp().get()->getSequence());
sequence_list.insert(p_peptide_match->getPeptideXtpSp().get()->getSequenceLi());
}
}
return sequence_list.size();
......
......@@ -80,7 +80,7 @@ public:
/** @brief count unique identified sequences (from valid and cheked spectrums)
* */
size_t countUniqueSequence(ValidationState state)const;
size_t countUniqueSequenceLi(ValidationState state)const;
const pappso::GrpProteinSp & getGrpProteinSp() const;
......
......@@ -111,19 +111,19 @@ std::size_t GroupingGroup::countSpecificSpectrum(const ProteinMatch * p_protein_
std::size_t GroupingGroup::countSpecificSequence(const ProteinMatch * p_protein_match) const {
if (_number_of_subgroup == 1) {
return p_protein_match->countUniqueSequence(ValidationState::validAndChecked);
return p_protein_match->countUniqueSequenceLi(ValidationState::validAndChecked);
}
std::set<QString> sequence_list_in;
for (auto && p_peptide_match :p_protein_match->getPeptideMatchList()) {
if (p_peptide_match->isValidAndChecked()) {
sequence_list_in.insert(p_peptide_match->getPeptideXtpSp().get()->getSequence());
sequence_list_in.insert(p_peptide_match->getPeptideXtpSp().get()->getSequenceLi());
}
}
std::set<QString> sequence_list_out;
unsigned int sg_number = p_protein_match->getGrpProteinSp().get()->getSubGroupNumber();
for (auto && pair_peptide_match :_pair_sg_number_peptide_match_list) {
if (pair_peptide_match.first != sg_number) {
sequence_list_out.insert(pair_peptide_match.second->getPeptideXtpSp().get()->getSequence());
sequence_list_out.insert(pair_peptide_match.second->getPeptideXtpSp().get()->getSequenceLi());
}
}
......
......@@ -181,7 +181,7 @@ QVariant ProteinTableModel::data(const QModelIndex &index, int role ) const {
}
if (_column_assignment[col] == (std::int8_t) ProteinListColumn::sequence ) {
return QVariant ((qreal) _p_identification_group->getProteinMatchList().at(row)->countUniqueSequence(ValidationState::validAndChecked));
return QVariant ((qreal) _p_identification_group->getProteinMatchList().at(row)->countUniqueSequenceLi(ValidationState::validAndChecked));
}
if (_column_assignment[col] == (std::int8_t) ProteinListColumn::specific_sequence ) {
GroupingGroup * p_groupin_group = _p_identification_group->getProteinMatchList().at(row)->getGroupingGroupSp().get();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment