Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
i2MassChroQ
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PAPPSO
i2MassChroQ
Commits
a9ecf09d
Commit
a9ecf09d
authored
7 years ago
by
Langella Olivier
Browse files
Options
Downloads
Patches
Plain Diff
change in mass delta compute : a peptide evidence is only counted once
parent
f7a0540b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/core/identificationgroup.cpp
+2
-2
2 additions, 2 deletions
src/core/identificationgroup.cpp
src/core/proteinmatch.cpp
+6
-4
6 additions, 4 deletions
src/core/proteinmatch.cpp
src/core/proteinmatch.h
+5
-1
5 additions, 1 deletion
src/core/proteinmatch.h
with
13 additions
and
7 deletions
src/core/identificationgroup.cpp
+
2
−
2
View file @
a9ecf09d
...
...
@@ -209,11 +209,11 @@ std::size_t IdentificationGroup::countSubGroup()const {
}
void
IdentificationGroup
::
collectMhDelta
(
std
::
vector
<
pappso
::
pappso_double
>
&
delta_list
,
pappso
::
PrecisionUnit
unit
,
ValidationState
state
)
const
{
std
::
set
<
PeptideEvidence
*>
already_counted
;
std
::
set
<
const
PeptideEvidence
*>
already_counted
;
for
(
auto
&
p_protein_match
:
_protein_match_list
)
{
if
(
p_protein_match
->
getValidationState
()
>=
state
)
{
if
(
!
p_protein_match
->
getProteinXtpSp
().
get
()
->
isDecoy
())
{
p_protein_match
->
collectMhDelta
(
delta_list
,
unit
,
state
);
p_protein_match
->
collectMhDelta
(
already_counted
,
delta_list
,
unit
,
state
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/core/proteinmatch.cpp
+
6
−
4
View file @
a9ecf09d
...
...
@@ -445,17 +445,19 @@ void ProteinMatch::setGroupInstance(GroupStore & group_store) {
}
void
ProteinMatch
::
collectMhDelta
(
std
::
vector
<
pappso
::
pappso_double
>
&
delta_list
,
pappso
::
PrecisionUnit
unit
,
ValidationState
state
)
const
{
void
ProteinMatch
::
collectMhDelta
(
std
::
set
<
const
PeptideEvidence
*>
&
already_counted
,
std
::
vector
<
pappso
::
pappso_double
>
&
delta_list
,
pappso
::
PrecisionUnit
unit
,
ValidationState
state
)
const
{
for
(
auto
&
peptide_match
:
_peptide_match_list
)
{
if
(
peptide_match
.
getPeptideEvidence
()
->
getValidationState
()
>=
state
)
{
pappso
::
pappso_double
diff
=
peptide_match
.
getPeptideEvidence
()
->
getDeltaMass
();
const
PeptideEvidence
*
p_peptide_evidence
=
peptide_match
.
getPeptideEvidence
();
if
((
p_peptide_evidence
->
getValidationState
()
>=
state
)
&&
(
already_counted
.
find
(
p_peptide_evidence
)
==
already_counted
.
end
()))
{
pappso
::
pappso_double
diff
=
p_peptide_evidence
->
getDeltaMass
();
if
(
unit
==
pappso
::
PrecisionUnit
::
ppm
)
{
while
(
diff
<
-
0.5
)
{
diff
=
diff
+
pappso
::
DIFFC12C13
;
}
diff
=
(
diff
/
peptide_
match
.
getPeptideE
vidence
()
->
getPeptideXtpSp
().
get
()
->
getMz
(
1
))
*
pappso
::
ONEMILLION
;
diff
=
(
diff
/
p_
peptide_
e
vidence
->
getPeptideXtpSp
().
get
()
->
getMz
(
1
))
*
pappso
::
ONEMILLION
;
}
delta_list
.
push_back
(
diff
);
already_counted
.
insert
(
p_peptide_evidence
);
}
}
}
This diff is collapsed.
Click to expand it.
src/core/proteinmatch.h
+
5
−
1
View file @
a9ecf09d
...
...
@@ -23,6 +23,7 @@
#include
<QColor>
#include
<vector>
#include
<set>
#include
<pappsomspp/types.h>
#include
"proteinxtp.h"
#include
"peptidematch.h"
...
...
@@ -113,7 +114,10 @@ public:
* */
void
updateAutomaticFilters
(
const
AutomaticFilterParameters
&
automatic_filter_parameters
);
void
collectMhDelta
(
std
::
vector
<
pappso
::
pappso_double
>
&
delta_list
,
pappso
::
PrecisionUnit
unit
,
ValidationState
state
)
const
;
/** @brief collect mass delta between theoretical mass and observed mass
* each peptide evidence is only counted once
*/
void
collectMhDelta
(
std
::
set
<
const
PeptideEvidence
*>
&
already_counted
,
std
::
vector
<
pappso
::
pappso_double
>
&
delta_list
,
pappso
::
PrecisionUnit
unit
,
ValidationState
state
)
const
;
/** @brief count distinct sequence taking into account equivalence between Leucine and Isoleucine
* @param state validation state of peptides to count
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment