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
ef940b5b
Commit
ef940b5b
authored
7 years ago
by
Olivier Langella
Browse files
Options
Downloads
Patches
Plain Diff
new hash sample scan key computed in constructor
parent
abeb33e9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/peptidematch.cpp
+9
-1
9 additions, 1 deletion
src/core/peptidematch.cpp
src/core/peptidematch.h
+3
-0
3 additions, 0 deletions
src/core/peptidematch.h
with
12 additions
and
1 deletion
src/core/peptidematch.cpp
+
9
−
1
View file @
ef940b5b
...
...
@@ -23,9 +23,13 @@
#include
"peptidematch.h"
std
::
hash
<
std
::
string
>
PeptideMatch
::
_hash_fn
;
PeptideMatch
::
PeptideMatch
(
MsRun
*
msrunid_sp
,
unsigned
int
scan
)
{
_msrunid_sp
=
msrunid_sp
;
_scan
=
scan
;
_hash_sample_scan
=
PeptideMatch
::
_hash_fn
(
QString
(
"%1 %2"
).
arg
(
msrunid_sp
->
getXmlId
()).
arg
(
_scan
).
toStdString
());
}
void
PeptideMatch
::
updateAutomaticFilters
(
const
AutomaticFilterParameters
&
automatic_filter_parameters
)
{
...
...
@@ -42,6 +46,10 @@ void PeptideMatch::setEvalue(pappso::pappso_double evalue) {
_evalue
=
evalue
;
}
std
::
size_t
PeptideMatch
::
getHashSampleScan
()
const
{
return
_hash_sample_scan
;
}
pappso
::
pappso_double
PeptideMatch
::
getEvalue
()
const
{
return
_evalue
;
}
...
...
@@ -76,7 +84,7 @@ ValidationState PeptideMatch::getValidationState() const {
return
ValidationState
::
validAndChecked
;
}
else
if
(
isValid
())
{
return
ValidationState
::
valid
;
}
}
return
ValidationState
::
notValid
;
}
...
...
This diff is collapsed.
Click to expand it.
src/core/peptidematch.h
+
3
−
0
View file @
ef940b5b
...
...
@@ -35,6 +35,7 @@ class PeptideMatch
{
public
:
PeptideMatch
(
MsRun
*
msrunid_sp
,
unsigned
int
scan
);
std
::
size_t
getHashSampleScan
()
const
;
void
setRetentionTime
(
pappso
::
pappso_double
rt
);
void
setEvalue
(
pappso
::
pappso_double
evalue
);
...
...
@@ -80,8 +81,10 @@ public :
ValidationState
getValidationState
()
const
;
private
:
static
std
::
hash
<
std
::
string
>
_hash_fn
;
MsRun
*
_msrunid_sp
;
unsigned
int
_scan
;
size_t
_hash_sample_scan
;
pappso
::
GrpPeptideSp
_sp_grp_peptide
;
PeptideXtpSp
_peptide_sp
;
pappso
::
pappso_double
_rt
;
...
...
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