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
Admin message
A compter du 1er avril, attention à vos pipelines :
Nouvelles limitations de Docker Hub
Show more breadcrumbs
PAPPSO
i2MassChroQ
Commits
51144af4
Commit
51144af4
authored
7 years ago
by
Langella Olivier
Browse files
Options
Downloads
Patches
Plain Diff
new function to get mass delta in ppm
parent
feb7697e
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/peptideevidence.cpp
+10
-1
10 additions, 1 deletion
src/core/peptideevidence.cpp
src/core/peptideevidence.h
+5
-0
5 additions, 0 deletions
src/core/peptideevidence.h
src/core/proteinmatch.cpp
+5
-6
5 additions, 6 deletions
src/core/proteinmatch.cpp
with
20 additions
and
7 deletions
src/core/peptideevidence.cpp
+
10
−
1
View file @
51144af4
...
...
@@ -52,7 +52,7 @@ PeptideEvidence::PeptideEvidence(const PeptideEvidence & other): PeptideEvidence
_params
=
other
.
_params
;
_checked
=
other
.
_checked
;
_proxy_valid
=
other
.
_proxy_valid
;
}
PeptideEvidenceSp
PeptideEvidence
::
makePeptideEvidenceSp
()
const
{
...
...
@@ -117,6 +117,15 @@ void PeptideEvidence::setExperimentalMass(pappso::pappso_double exp_mass) {
pappso
::
mz
PeptideEvidence
::
getDeltaMass
()
const
{
return
(
_peptide_sp
.
get
()
->
getMz
(
1
)
-
(
_exp_mass
+
pappso
::
MHPLUS
));
}
pappso
::
mz
PeptideEvidence
::
getPpmDeltaMass
()
const
{
//return (_peptide_sp.get()->getMz(1) - (_exp_mass+pappso::MHPLUS));
pappso
::
pappso_double
diff
=
getDeltaMass
();
while
(
diff
<
-
0.5
)
{
diff
=
diff
+
pappso
::
DIFFC12C13
;
}
diff
=
(
diff
/
getPeptideXtpSp
().
get
()
->
getMz
(
1
))
*
pappso
::
ONEMILLION
;
return
diff
;
}
void
PeptideEvidence
::
setCharge
(
unsigned
int
charge
)
{
_charge
=
charge
;
}
...
...
This diff is collapsed.
Click to expand it.
src/core/peptideevidence.h
+
5
−
0
View file @
51144af4
...
...
@@ -113,6 +113,11 @@ public :
* theoretical mhplus mass - mhplus experimental mass
*/
pappso
::
mz
getDeltaMass
()
const
;
/** @brief get delta in ppm between theoretical mhplus mass and mhplus experimental mass
* theoretical mhplus mass - mhplus experimental mass
*/
pappso
::
mz
getPpmDeltaMass
()
const
;
ValidationState
getValidationState
()
const
;
...
...
This diff is collapsed.
Click to expand it.
src/core/proteinmatch.cpp
+
5
−
6
View file @
51144af4
...
...
@@ -449,14 +449,13 @@ void ProteinMatch::collectMhDelta(std::set< const PeptideEvidence *> & already_c
for
(
auto
&
peptide_match
:
_peptide_match_list
)
{
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
;
}
d
iff
=
(
diff
/
p_peptide_evidence
->
get
PeptideXtpSp
().
get
()
->
getMz
(
1
))
*
pappso
::
ONEMILLION
;
delta_list
.
push_back
(
p_peptide_evidence
->
getPpmDeltaMass
());
}
else
{
d
elta_list
.
push_back
(
p_peptide_evidence
->
get
DeltaMass
())
;
}
delta_list
.
push_back
(
diff
);
already_counted
.
insert
(
p_peptide_evidence
);
}
}
...
...
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