Commit 2af2709a authored by Langella Olivier's avatar Langella Olivier
Browse files

 removing const

parent c9ce7ea2
......@@ -144,7 +144,7 @@ ComputeQvalues::computeMascotPeptideEvidenceQvalues(
void
ComputeQvalues::computeTandemPeptideEvidenceQvalues(
std::vector<PeptideEvidence *> &tandem_peptide_evidence_list) const
std::vector<PeptideEvidence *> &tandem_peptide_evidence_list)
{
std::sort(tandem_peptide_evidence_list.begin(),
tandem_peptide_evidence_list.end(),
......@@ -169,6 +169,7 @@ ComputeQvalues::computeTandemPeptideEvidenceQvalues(
}
cleanPeptideEvidenceList(tandem_peptide_evidence_list);
m_tandemPeptideEvidenceList = tandem_peptide_evidence_list;
}
void
......@@ -199,4 +200,29 @@ ComputeQvalues::cleanPeptideEvidenceList(
void
ComputeQvalues::writeDistributionsByEngines(CalcWriterInterface *p_writer) const
{
std::size_t count_decoy = 0;
std::size_t count_target = 0;
for(PeptideEvidence *pep : m_tandemPeptideEvidenceList)
{
if(m_falsePeptideEvidenceList.find(pep) !=
m_falsePeptideEvidenceList.end())
{
count_decoy++;
}
else
{
count_target++;
}
// double qvalue = Utils::computeFdr(count_decoy, count_target);
// pep->setParam(PeptideEvidenceParam::pappso_qvalue, QVariant(qvalue));
p_writer->writeCell((int) count_target);
p_writer->writeCell((int) count_decoy);
p_writer->writeCell(pep->getEvalue());
p_writer->writeCell(pep->getParam(PeptideEvidenceParam::pappso_qvalue).toDouble());
p_writer->writeLine();
}
}
......@@ -51,7 +51,7 @@ class ComputeQvalues
private:
void computeTandemPeptideEvidenceQvalues(
std::vector<PeptideEvidence *> &tandem_peptide_evidence_list) const;
std::vector<PeptideEvidence *> &tandem_peptide_evidence_list);
void computeMascotPeptideEvidenceQvalues(
std::vector<PeptideEvidence *> &mascot_peptide_evidence_list) const;
......@@ -60,4 +60,7 @@ class ComputeQvalues
private:
std::set<const PeptideEvidence *> m_falsePeptideEvidenceList;
std::vector<PeptideEvidence *> m_tandemPeptideEvidenceList;
};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment