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
6eefa061
Commit
6eefa061
authored
11 years ago
by
Olivier Langella
Browse files
Options
Downloads
Patches
Plain Diff
Match object cleaning : function renamed, obsolete functions removed
parent
a8ab55fc
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/fr/inra/pappso/xtandempipeline/class_msms/Match.java
+5
-60
5 additions, 60 deletions
src/fr/inra/pappso/xtandempipeline/class_msms/Match.java
src/fr/inra/pappso/xtandempipeline/filter_print/filter_peptide_evalue.java
+1
-1
1 addition, 1 deletion
...o/xtandempipeline/filter_print/filter_peptide_evalue.java
with
6 additions
and
61 deletions
src/fr/inra/pappso/xtandempipeline/class_msms/Match.java
+
5
−
60
View file @
6eefa061
...
...
@@ -32,13 +32,7 @@ public class Match implements Comparable<Match>, GrpProtMatch {
@Override
public
int
compareTo
(
Match
p
)
{
int
k
=
0
;
try
{
k
=
p
.
get_valid_peptide_number
()
-
this
.
get_valid_peptide_number
();
}
catch
(
MSMSException
e
)
{
String
error
=
"error in compareTo "
+
e
.
getMessage
();
logger
.
error
(
error
);
return
0
;
}
k
=
p
.
getValidSpectraNumber
()
-
this
.
getValidSpectraNumber
();
if
(
k
!=
0
)
return
(
k
);
int
i
=
p
.
peptides_match
.
size
()
-
this
.
peptides_match
.
size
();
...
...
@@ -128,7 +122,7 @@ public class Match implements Comparable<Match>, GrpProtMatch {
* @return
* @throws MSMSException
*/
private
int
getSpectraNumberIn
(
MsRun
samp
)
throws
MSMSException
{
private
int
get
Valid
SpectraNumberIn
(
MsRun
samp
)
throws
MSMSException
{
int
i
=
0
;
for
(
Peptide
pep
:
peptides_match
.
values
())
{
if
(
pep
.
isValidate
())
{
...
...
@@ -146,7 +140,7 @@ public class Match implements Comparable<Match>, GrpProtMatch {
* @return integer number of spectra
* @throws MSMSException
*/
p
rivate
int
getSpectraNumber
()
{
p
ublic
int
get
Valid
SpectraNumber
()
{
int
i
=
0
;
for
(
Peptide
pep
:
peptides_match
.
values
())
{
if
(
pep
.
isValidate
())
{
...
...
@@ -164,7 +158,7 @@ public class Match implements Comparable<Match>, GrpProtMatch {
*/
public
double
getPAI
()
{
// compute PAI
double
value
=
(
double
)
this
.
getSpectraNumber
()
double
value
=
(
double
)
this
.
get
Valid
SpectraNumber
()
/
(
double
)
this
.
get_protein_match
()
.
getNumberOfTrypticPeptidesForPAI
();
...
...
@@ -178,7 +172,7 @@ public class Match implements Comparable<Match>, GrpProtMatch {
*/
public
double
getPAIbyMsRun
(
MsRun
samp
)
throws
MSMSException
{
// compute PAI
double
value
=
(
double
)
this
.
getSpectraNumberIn
(
samp
)
double
value
=
(
double
)
this
.
get
Valid
SpectraNumberIn
(
samp
)
/
(
double
)
this
.
get_protein_match
()
.
getNumberOfTrypticPeptidesForPAI
();
...
...
@@ -212,15 +206,6 @@ public class Match implements Comparable<Match>, GrpProtMatch {
return
(
sequence
.
size
());
}
public
int
get_valid_peptide_number
()
throws
MSMSException
{
int
i
=
0
;
for
(
Peptide
pep
:
peptides_match
.
values
())
{
if
(
pep
.
isValidate
())
i
++;
}
return
(
i
);
}
public
ArrayList
<
Peptide
>
get_peptide_order_inclus_redon
()
{
Collections
.
sort
(
peptides_order
);
return
(
peptides_order
);
...
...
@@ -233,16 +218,6 @@ public class Match implements Comparable<Match>, GrpProtMatch {
return
(
peptides
);
}
public
int
get_valid_peptide_number_to
(
MsRun
samp
)
throws
MSMSException
{
int
i
=
0
;
for
(
Peptide
pep
:
peptides_match
.
values
())
{
if
(
pep
.
getMsRun
().
equals
(
samp
)
&&
pep
.
isValidate
())
{
i
++;
}
}
return
(
i
);
}
public
int
get_unique_valid_peptide_number
()
throws
MSMSException
{
HashSet
<
String
>
sequence
=
new
HashSet
<
String
>();
for
(
Peptide
pep
:
peptides_match
.
values
())
{
...
...
@@ -264,36 +239,6 @@ public class Match implements Comparable<Match>, GrpProtMatch {
return
(
sequence
.
size
());
}
public
int
get_coverage_to
(
MsRun
samp
)
throws
MSMSException
{
// Unknown sequence
if
(
this
.
protein_match
.
get_sequence
().
length
()
==
0
)
{
return
0
;
}
HashMap
<
Integer
,
Boolean
>
seq
=
new
HashMap
<
Integer
,
Boolean
>();
for
(
int
i
=
0
;
i
<
this
.
protein_match
.
get_sequence
().
length
();
i
++)
{
int
i_po
=
i
+
1
;
seq
.
put
(
i_po
,
false
);
}
for
(
Peptide
pep
:
peptides_match
.
values
())
{
if
(
pep
.
getMsRun
().
equals
(
samp
))
{
for
(
int
j
=
pep
.
get_start
();
j
<=
pep
.
get_stop
();
j
++)
{
seq
.
put
(
j
,
true
);
}
}
}
int
k
=
0
;
for
(
boolean
ST
:
seq
.
values
())
{
if
(
ST
)
k
++;
}
float
cov
=
(
float
)
k
/
(
this
.
protein_match
.
get_sequence
().
length
()
+
1
)
*
100
;
int
cov_temp
=
(
int
)
cov
;
return
(
cov_temp
);
}
public
int
get_coverage
()
throws
MSMSException
{
// Unknown sequence
if
(
this
.
protein_match
.
get_sequence
().
length
()
==
0
)
{
...
...
This diff is collapsed.
Click to expand it.
src/fr/inra/pappso/xtandempipeline/filter_print/filter_peptide_evalue.java
+
1
−
1
View file @
6eefa061
...
...
@@ -25,7 +25,7 @@ public class filter_peptide_evalue extends filter_base {
if
(
pep
.
get_evalue
()
>=
this
.
peptide_evalue
)
pep
.
setValidate
(
false
);
}
if
(
ms
.
get
_v
alid
_
pe
ptide_n
umber
()
>
0
)
{
if
(
ms
.
get
V
alid
S
pe
ctraN
umber
()
>
0
)
{
numberOfValidMatch
++;
}
else
{
ms
.
setIsvalidate
(
false
);
...
...
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