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
cecf8093
Commit
cecf8093
authored
7 years ago
by
Olivier Langella
Browse files
Options
Downloads
Patches
Plain Diff
WIP: new class to handle ptm sample scan ambiguity
parent
7f6e1434
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/grouping/ptm/ptmisland.cpp
+13
-1
13 additions, 1 deletion
src/grouping/ptm/ptmisland.cpp
src/grouping/ptm/ptmsamplescan.cpp
+4
-1
4 additions, 1 deletion
src/grouping/ptm/ptmsamplescan.cpp
src/grouping/ptm/ptmsamplescan.h
+2
-1
2 additions, 1 deletion
src/grouping/ptm/ptmsamplescan.h
with
19 additions
and
3 deletions
src/grouping/ptm/ptmisland.cpp
+
13
−
1
View file @
cecf8093
...
...
@@ -172,6 +172,18 @@ bool PtmIsland::merge(PtmIslandSp ptm_island_sp) {
std
::
vector
<
PtmSampleScanSp
>
PtmIsland
::
getPtmSampleScanSpList
()
const
{
std
::
vector
<
PtmSampleScanSp
>
sample_scan_list
;
for
(
const
PeptideMatch
*
p_peptide_match
:
_peptide_match_list
)
{
std
::
vector
<
PtmSampleScanSp
>::
iterator
it_ptm
=
sample_scan_list
.
begin
();
std
::
vector
<
PtmSampleScanSp
>::
iterator
it_ptm_end
=
sample_scan_list
.
end
();
while
((
it_ptm
!=
it_ptm_end
)
&&
(
it_ptm
->
get
()
->
add
(
p_peptide_match
)
==
false
))
{
//peptide added
}
if
(
it_ptm
==
it_ptm_end
)
{
//peptide NOT added
sample_scan_list
.
push_back
(
std
::
make_shared
<
PtmSampleScan
>
(
p_peptide_match
));
}
}
return
sample_scan_list
;
}
This diff is collapsed.
Click to expand it.
src/grouping/ptm/ptmsamplescan.cpp
+
4
−
1
View file @
cecf8093
...
...
@@ -29,7 +29,7 @@
#include
"ptmsamplescan.h"
PtmSampleScan
::
PtmSampleScan
()
{
PtmSampleScan
::
PtmSampleScan
(
const
PeptideMatch
*
p_peptide_match
)
{
}
PtmSampleScan
::
PtmSampleScan
(
const
PtmSampleScan
&
other
){
...
...
@@ -37,3 +37,6 @@ PtmSampleScan::PtmSampleScan(const PtmSampleScan& other){
PtmSampleScan
::~
PtmSampleScan
()
{
}
bool
PtmSampleScan
::
add
(
const
PeptideMatch
*
p_peptide_match
)
{
return
false
;
}
This diff is collapsed.
Click to expand it.
src/grouping/ptm/ptmsamplescan.h
+
2
−
1
View file @
cecf8093
...
...
@@ -43,10 +43,11 @@ typedef std::shared_ptr<PtmSampleScan> PtmSampleScanSp;
class
PtmSampleScan
{
public:
PtmSampleScan
();
PtmSampleScan
(
const
PeptideMatch
*
p_peptide_match
);
PtmSampleScan
(
const
PtmSampleScan
&
other
);
~
PtmSampleScan
();
bool
add
(
const
PeptideMatch
*
p_peptide_match
);
private:
std
::
vector
<
const
PeptideMatch
*>
_peptide_match_list
;
...
...
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