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
acea4912
Commit
acea4912
authored
6 years ago
by
Langella Olivier
Browse files
Options
Downloads
Patches
Plain Diff
WIP: compute NSAF
parent
8f197cba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/proteinmatch.cpp
+11
-0
11 additions, 0 deletions
src/core/proteinmatch.cpp
src/core/proteinmatch.h
+5
-0
5 additions, 0 deletions
src/core/proteinmatch.h
with
16 additions
and
0 deletions
src/core/proteinmatch.cpp
+
11
−
0
View file @
acea4912
...
...
@@ -326,6 +326,17 @@ pappso::pappso_double ProteinMatch::getLogEvalue(const MsRun * sp_msrun_id) cons
}
pappso
::
pappso_double
ProteinMatch
::
getProtoNsaf
(
const
MsRun
*
sp_msrun_id
)
const
{
try
{
pappso
::
pappso_double
proto_nsaf
=
(
pappso
::
pappso_double
)
countSampleScan
(
ValidationState
::
validAndChecked
,
sp_msrun_id
)
/
(
pappso
::
pappso_double
)
_protein_sp
.
get
()
->
size
();
return
proto_nsaf
;
}
catch
(
pappso
::
PappsoException
error
)
{
throw
pappso
::
PappsoException
(
QObject
::
tr
(
"Error computing proto NSAF for protein %1 :
\n
%2"
).
arg
(
this
->
getProteinXtpSp
().
get
()
->
getAccession
()).
arg
(
error
.
qwhat
()));
}
}
pappso
::
pappso_double
ProteinMatch
::
getPAI
(
const
MsRun
*
sp_msrun_id
)
const
{
try
{
pappso
::
pappso_double
PAI
=
(
pappso
::
pappso_double
)
countPeptideMassCharge
(
ValidationState
::
validAndChecked
,
sp_msrun_id
)
/
(
pappso
::
pappso_double
)
_protein_sp
.
get
()
->
countTrypticPeptidesForPAI
();
...
...
This diff is collapsed.
Click to expand it.
src/core/proteinmatch.h
+
5
−
0
View file @
acea4912
...
...
@@ -64,6 +64,11 @@ public:
**/
const
QString
getHtmlSequence
(
PeptideEvidence
*
peptide_evidence_to_locate
=
nullptr
)
const
;
/** @brief compute proto NSAF within sample
* Warning: this is not NSAF, just a part
* */
pappso
::
pappso_double
getProtoNsaf
(
const
MsRun
*
sp_msrun_id
=
nullptr
)
const
;
/** @brief compute Protein Abundance Index (PAI) within sample
* PAI computation (Rappsilber et al. 2002)
* */
...
...
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