Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xtpcpp
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
Container Registry
Model registry
Operate
Environments
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
xtpcpp
Commits
5e243621
Commit
5e243621
authored
4 years ago
by
Langella Olivier
Browse files
Options
Downloads
Patches
Plain Diff
new function to get retention time from mz data if needed
parent
229810ad
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/core/peptideevidence.cpp
+27
-0
27 additions, 0 deletions
src/core/peptideevidence.cpp
src/core/peptideevidence.h
+15
-0
15 additions, 0 deletions
src/core/peptideevidence.h
src/gui/xic_view/xic_box/xicbox.cpp
+4
-3
4 additions, 3 deletions
src/gui/xic_view/xic_box/xicbox.cpp
with
46 additions
and
3 deletions
src/core/peptideevidence.cpp
+
27
−
0
View file @
5e243621
...
...
@@ -315,6 +315,33 @@ PeptideEvidence::getRetentionTime() const
{
return
_rt
;
}
pappso
::
pappso_double
PeptideEvidence
::
getHardenedRetentionTime
()
const
{
if
(
_rt
==
0
)
{
// try to look at mz data file
if
(
_p_identification_source
!=
nullptr
)
{
MsRunSp
msrunsp
=
_p_identification_source
->
getMsRunSp
();
if
(
msrunsp
!=
nullptr
)
{
pappso
::
MsRunReaderSPtr
reader
=
msrunsp
.
get
()
->
getMsRunReaderSPtr
();
if
(
reader
!=
nullptr
)
{
pappso
::
QualifiedMassSpectrum
qmassspec
=
reader
.
get
()
->
qualifiedMassSpectrum
(
m_scan_number
,
false
);
return
qmassspec
.
getRtInSeconds
();
}
}
}
}
return
_rt
;
}
unsigned
int
PeptideEvidence
::
getCharge
()
const
{
...
...
This diff is collapsed.
Click to expand it.
src/core/peptideevidence.h
+
15
−
0
View file @
5e243621
...
...
@@ -119,7 +119,22 @@ class PeptideEvidence
MsRun
*
getMsRunPtr
();
IdentificationDataSource
*
getIdentificationDataSource
()
const
;
unsigned
int
getScanNumber
()
const
;
/** @brief get retention time of this PSM in seconds
* the retention time must have been present when reading MS identification
* results. If no retention time was set, this returns O
* @return retention time in seconds or zero if data is missing
*/
pappso
::
pappso_double
getRetentionTime
()
const
;
/** @brief get retention time of this PSM in seconds by all means
*
* if retention time is missing, this tries to guess it by all means. It will
* try to look at mz data file.
* This could be time consuming.
* @return retention time in seconds or zero if data is missing
*/
pappso
::
pappso_double
getHardenedRetentionTime
()
const
;
unsigned
int
getCharge
()
const
;
const
PeptideXtpSp
&
getPeptideXtpSp
()
const
;
pappso
::
pappso_double
getEvalue
()
const
;
...
...
This diff is collapsed.
Click to expand it.
src/gui/xic_view/xic_box/xicbox.cpp
+
4
−
3
View file @
5e243621
...
...
@@ -63,7 +63,7 @@ class XicDetectionList : public pappso::TraceDetectionSinkInterface
{
for
(
const
PeptideEvidence
*
p_evidence
:
peptide_evidence_list
)
{
_rt_list
.
push_back
(
p_evidence
->
getRetentionTime
());
_rt_list
.
push_back
(
p_evidence
->
get
Hardened
RetentionTime
());
}
}
void
...
...
@@ -363,9 +363,10 @@ XicBox::setXic(std::vector<pappso::XicCstSPtr> xic_sp_list)
for
(
const
PeptideEvidence
*
peptide_evidence
:
_peptide_evidence_list
)
{
qDebug
()
<<
"XicBox::setXic peptide_evidence "
<<
peptide_evidence
->
getRetentionTime
();
<<
peptide_evidence
->
get
Hardened
RetentionTime
();
ui
->
xic_widget
->
addMsMsEvent
(
xic_isotope
.
xic_sp
.
get
(),
peptide_evidence
->
getRetentionTime
());
xic_isotope
.
xic_sp
.
get
(),
peptide_evidence
->
getHardenedRetentionTime
());
}
}
}
...
...
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