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
9225e6b9
Commit
9225e6b9
authored
5 years ago
by
Langella Olivier
Browse files
Options
Downloads
Patches
Plain Diff
WIP: using msrunretention object
parent
cd0259e3
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/msrun.cpp
+36
-8
36 additions, 8 deletions
src/core/msrun.cpp
src/core/msrun.h
+4
-2
4 additions, 2 deletions
src/core/msrun.h
src/gui/export/export_masschroq_dialog/exportmasschroqdialog.cpp
+18
-3
18 additions, 3 deletions
.../export/export_masschroq_dialog/exportmasschroqdialog.cpp
with
58 additions
and
13 deletions
src/core/msrun.cpp
+
36
−
8
View file @
9225e6b9
...
...
@@ -309,18 +309,46 @@ MsRun::getMsRunXicExtractorInterfaceSp()
}
void
MsRun
::
initialize
MsRunRetentionTime
(
MsRun
::
build
MsRunRetentionTime
(
const
PeptideEvidenceStore
&
peptide_evidence_store
)
{
pappso
::
MsRunReaderSPtr
reader
=
getMsRunReaderSPtr
();
mpa_msrunRetentionTime
=
new
pappso
::
MsRunRetentionTime
<
const
pappso
::
Peptide
*>
(
reader
);
if
(
mpa_msrunRetentionTime
==
nullptr
)
{
mpa_msrunRetentionTime
=
new
pappso
::
MsRunRetentionTime
<
const
pappso
::
Peptide
*>
(
reader
);
}
for
(
auto
&
peptide_evidence
:
peptide_evidence_store
.
getPeptideEvidenceList
())
{
mpa_msrunRetentionTime
->
addPeptideAsSeamark
(
peptide_evidence
.
get
()
->
getPeptideXtpSp
().
get
()
->
getNativePeptideP
(),
reader
.
get
()
->
scanNumber2SpectrumIndex
(
peptide_evidence
.
get
()
->
getScanNumber
()));
if
(
peptide_evidence
.
get
()
->
getMsRunP
()
==
this
)
{
mpa_msrunRetentionTime
->
addPeptideAsSeamark
(
peptide_evidence
.
get
()
->
getPeptideXtpSp
()
.
get
()
->
getNativePeptideP
(),
reader
.
get
()
->
scanNumber2SpectrumIndex
(
peptide_evidence
.
get
()
->
getScanNumber
()));
}
}
// mpa_msrunRetentionTime->computePeptideRetentionTimes();
}
void
MsRun
::
computeMsRunRetentionTime
()
{
if
(
mpa_msrunRetentionTime
==
nullptr
)
{
mpa_msrunRetentionTime
->
computePeptideRetentionTimes
();
}
}
void
MsRun
::
clearMsRunRetentionTime
()
{
if
(
mpa_msrunRetentionTime
==
nullptr
)
{
delete
mpa_msrunRetentionTime
;
mpa_msrunRetentionTime
=
nullptr
;
}
}
This diff is collapsed.
Click to expand it.
src/core/msrun.h
+
4
−
2
View file @
9225e6b9
...
...
@@ -81,8 +81,10 @@ class MsRun : public pappso::MsRunId
pappso
::
MsRunXicExtractorInterfaceSp
getMsRunXicExtractorInterfaceSp
();
void
initializeMsRunRetentionTime
(
const
PeptideEvidenceStore
&
peptide_evidence_store
);
void
buildMsRunRetentionTime
(
const
PeptideEvidenceStore
&
peptide_evidence_store
);
void
computeMsRunRetentionTime
();
void
clearMsRunRetentionTime
();
private:
std
::
map
<
MsRunStatistics
,
QVariant
>
_param_stats
;
...
...
This diff is collapsed.
Click to expand it.
src/gui/export/export_masschroq_dialog/exportmasschroqdialog.cpp
+
18
−
3
View file @
9225e6b9
...
...
@@ -277,22 +277,22 @@ ExportMasschroqDialog::doFindBestMsrunForAlignment()
// p_identification_group =
// mp_project->getIdentificationGroupList()[0]->get
}
std
::
vector
<
MsRunSp
>
msrun_list
;
bool
is_ok
=
true
;
for
(
IdentificationDataSourceSp
p_ident_data_source
:
mp_project
->
getIdentificationDataSourceStore
()
.
getIdentificationDataSourceList
())
{
MsRunSp
msrun_sp
=
p_ident_data_source
->
getMsRunSp
();
msrun_list
.
push_back
(
msrun_sp
);
if
(
msrun_sp
->
findMsRunFile
())
{
// msrun_sp->checkMsRunStatistics();
msrun_sp
->
initialize
MsRunRetentionTime
(
msrun_sp
->
build
MsRunRetentionTime
(
p_ident_data_source
->
getPeptideEvidenceStore
());
}
else
{
is_ok
=
false
;
ui
->
warningDirectoryLabel
->
setText
(
tr
(
"%1 not found : Please choose the directory to look for this MS "
"run file."
)
...
...
@@ -301,4 +301,19 @@ ExportMasschroqDialog::doFindBestMsrunForAlignment()
break
;
}
}
if
(
is_ok
)
{
for
(
auto
&
msrun_sp
:
mp_project
->
getMsRunStore
().
getMsRunList
())
{
msrun_sp
->
computeMsRunRetentionTime
();
}
//find the best reference
}
else
{
for
(
auto
&
msrun_sp
:
mp_project
->
getMsRunStore
().
getMsRunList
())
{
msrun_sp
->
clearMsRunRetentionTime
();
}
}
}
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