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
05e670ee
Commit
05e670ee
authored
4 years ago
by
Renne Thomas
Browse files
Options
Downloads
Patches
Plain Diff
Export PTm spectra of checked ptm island
parent
eed8eb06
No related branches found
No related tags found
1 merge request
!33
Multiples Corrections and features implementations
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/grouping/ptm/ptmisland.cpp
+1
-1
1 addition, 1 deletion
src/grouping/ptm/ptmisland.cpp
src/grouping/ptm/ptmisland.h
+1
-1
1 addition, 1 deletion
src/grouping/ptm/ptmisland.h
src/output/ods/ptm/ptmspectrasheet.cpp
+41
-31
41 additions, 31 deletions
src/output/ods/ptm/ptmspectrasheet.cpp
with
43 additions
and
33 deletions
src/grouping/ptm/ptmisland.cpp
+
1
−
1
View file @
05e670ee
...
...
@@ -62,7 +62,7 @@ PtmIsland::size() const
return
_protein_stop
-
_protein_start
;
}
bool
PtmIsland
::
isChecked
()
bool
PtmIsland
::
isChecked
()
const
{
return
m_checked
;
}
...
...
This diff is collapsed.
Click to expand it.
src/grouping/ptm/ptmisland.h
+
1
−
1
View file @
05e670ee
...
...
@@ -77,7 +77,7 @@ class PtmIsland
unsigned
int
getStart
()
const
;
unsigned
int
size
()
const
;
void
setChecked
(
bool
check_status
);
bool
isChecked
();
bool
isChecked
()
const
;
std
::
vector
<
PtmSampleScanSp
>
getPtmSampleScanSpList
()
const
;
...
...
This diff is collapsed.
Click to expand it.
src/output/ods/ptm/ptmspectrasheet.cpp
+
41
−
31
View file @
05e670ee
...
...
@@ -237,7 +237,10 @@ PtmSpectraSheet::writeBestPeptideEvidence(
// return _ptm_sample_scan_list.at(row).get()->getObservedPtmPositionList();
for
(
const
PtmIsland
*
ptm_island
:
ptmisland_occurence_list
)
{
position_list
<<
ptm_island
->
getGroupingId
();
if
(
ptm_island
->
isChecked
())
{
position_list
<<
ptm_island
->
getGroupingId
();
}
}
_p_writer
->
writeCell
(
position_list
.
join
(
" "
));
...
...
@@ -286,41 +289,48 @@ PtmSpectraSheet::writePtmIslandSubgroupSp(
for
(
PtmIslandSp
ptm_island_sp
:
ptm_island_subgroup_sp
.
get
()
->
getPtmIslandList
())
{
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
for
(
PeptideMatch
peptide_match
:
ptm_island_sp
.
get
()
->
getPeptideMatchList
())
if
(
ptm_island_sp
->
isChecked
())
{
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
std
::
vector
<
PtmSampleScanOccurence
>::
iterator
it_ptm
=
ptm_sample_scan_occurence_list
.
begin
();
std
::
vector
<
PtmSampleScanOccurence
>::
iterator
it_ptm_end
=
ptm_sample_scan_occurence_list
.
end
();
while
((
it_ptm
!=
it_ptm_end
)
&&
(
it_ptm
->
ptm_sample_scan
.
add
(
peptide_match
)
==
false
))
{
// peptide added
it_ptm
++
;
}
if
(
it_ptm
==
it_ptm_end
)
for
(
PeptideMatch
peptide_match
:
ptm_island_sp
.
get
()
->
getPeptideMatchList
())
{
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
// peptide NOT added
PtmSampleScanOccurence
new_occurence
=
{
PtmSampleScan
(
peptide_match
),
std
::
set
<
const
PtmIsland
*>
()};
new_occurence
.
ptmisland_occurence_list
.
insert
(
ptm_island_sp
.
get
());
ptm_sample_scan_occurence_list
.
push_back
(
new_occurence
);
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
}
else
{
// peptide added
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
it_ptm
->
ptmisland_occurence_list
.
insert
(
ptm_island_sp
.
get
());
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
std
::
vector
<
PtmSampleScanOccurence
>::
iterator
it_ptm
=
ptm_sample_scan_occurence_list
.
begin
();
std
::
vector
<
PtmSampleScanOccurence
>::
iterator
it_ptm_end
=
ptm_sample_scan_occurence_list
.
end
();
while
((
it_ptm
!=
it_ptm_end
)
&&
(
it_ptm
->
ptm_sample_scan
.
add
(
peptide_match
)
==
false
))
{
// peptide added
it_ptm
++
;
}
if
(
it_ptm
==
it_ptm_end
)
{
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
// peptide NOT added
PtmSampleScanOccurence
new_occurence
=
{
PtmSampleScan
(
peptide_match
),
std
::
set
<
const
PtmIsland
*>
()};
new_occurence
.
ptmisland_occurence_list
.
insert
(
ptm_island_sp
.
get
());
ptm_sample_scan_occurence_list
.
push_back
(
new_occurence
);
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
}
else
{
// peptide added
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
it_ptm
->
ptmisland_occurence_list
.
insert
(
ptm_island_sp
.
get
());
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
}
}
}
}
...
...
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