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

write FDR in ODS file as percentage, compute peptide FDR on all proteins

parent 36054737
No related branches found
No related tags found
No related merge requests found
......@@ -93,11 +93,10 @@ IdentificationGroup::countPeptideMassSample(ValidationState state) const
std::vector<std::size_t> count_peptide_mass_sample;
for(auto &p_protein_match : _protein_match_list)
{
if(p_protein_match->getValidationState() >= state)
{
p_protein_match->countPeptideMassSample(count_peptide_mass_sample,
state);
}
// if(p_protein_match->getValidationState() >= state)
// {
p_protein_match->countPeptideMassSample(count_peptide_mass_sample, state);
// }
}
std::sort(count_peptide_mass_sample.begin(), count_peptide_mass_sample.end());
auto last = std::unique(count_peptide_mass_sample.begin(),
......@@ -113,11 +112,11 @@ IdentificationGroup::countDecoyPeptideMassSample(ValidationState state) const
{
if(p_protein_match->getProteinXtpSp().get()->isDecoy())
{
if(p_protein_match->getValidationState() >= state)
{
p_protein_match->countPeptideMassSample(count_peptide_mass_sample,
state);
}
// if(p_protein_match->getValidationState() >= state)
// {
p_protein_match->countPeptideMassSample(count_peptide_mass_sample,
state);
//}
}
}
std::sort(count_peptide_mass_sample.begin(), count_peptide_mass_sample.end());
......
......@@ -73,8 +73,8 @@ GroupingSheet::writeIdentificationGroup(IdentificationGroup *p_ident)
//_p_writer->writeCell(p_ident->countSequence(ValidationState::grouped));
_p_writer->writeCell(
p_ident->countPeptideMassSample(ValidationState::grouped));
_p_writer->writeCell(p_ident->getProteinFdr(ValidationState::valid));
_p_writer->writeCell(p_ident->getPeptideMassFdr(ValidationState::valid));
_p_writer->writeCellPercentage(p_ident->getProteinFdr(ValidationState::valid));
_p_writer->writeCellPercentage(p_ident->getPeptideMassFdr(ValidationState::valid));
}
......
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