Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rpg
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas MAILLET
rpg
Commits
18551f60
Commit
18551f60
authored
4 years ago
by
Nicolas MAILLET
Browse files
Options
Downloads
Patches
Plain Diff
Add IPC2 to RPG and make it the default one
parent
dce7a910
No related branches found
Branches containing commit
Tags
v0.2.52
Tags containing commit
No related merge requests found
Pipeline
#57012
passed
4 years ago
Stage: py36
Stage: py37
Stage: py38
Stage: py39
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
rpg/RapidPeptidesGenerator.py
+6
-4
6 additions, 4 deletions
rpg/RapidPeptidesGenerator.py
rpg/core.py
+11
-0
11 additions, 0 deletions
rpg/core.py
rpg/sequence.py
+3
-1
3 additions, 1 deletion
rpg/sequence.py
tests/test_functional.py
+456
-13
456 additions, 13 deletions
tests/test_functional.py
with
476 additions
and
18 deletions
rpg/RapidPeptidesGenerator.py
+
6
−
4
View file @
18551f60
...
@@ -272,9 +272,9 @@ def main():
...
@@ -272,9 +272,9 @@ def main():
"
error(s) (--quiet enable, overwrite -v). If output
"
"
error(s) (--quiet enable, overwrite -v). If output
"
"
filename already exists, output file will be
"
"
filename already exists, output file will be
"
"
overwritten.
"
)
"
overwritten.
"
)
parser
.
add_argument
(
"
-p
"
,
"
--pka
"
,
metavar
=
""
,
choices
=
[
'
ipc
'
,
'
stryer
'
],
parser
.
add_argument
(
"
-p
"
,
"
--pka
"
,
metavar
=
""
,
choices
=
[
'
ipc
2
'
,
'
stryer
'
,
'
ipc
'
],
default
=
"
ipc
"
,
help
=
"
Define pKa values. Either
'
ipc
'
"
default
=
"
ipc
2
"
,
help
=
"
Define pKa values. Either
'
ipc
2
'
"
"
or
'
stryer
'
(default: ipc)
"
)
"'
stryer
'
or
'
ipc
'
(deprecated)
(default: ipc
2
)
"
)
group_output
=
parser
.
add_mutually_exclusive_group
()
group_output
=
parser
.
add_mutually_exclusive_group
()
group_output
.
add_argument
(
"
-o
"
,
"
--outputfile
"
,
type
=
str
,
metavar
=
""
,
group_output
.
add_argument
(
"
-o
"
,
"
--outputfile
"
,
type
=
str
,
metavar
=
""
,
default
=
""
,
help
=
"
Optional result file
"
default
=
""
,
help
=
"
Optional result file
"
...
@@ -306,9 +306,11 @@ def main():
...
@@ -306,9 +306,11 @@ def main():
args
.
miscleavage
=
[]
# No miscleavage on concurrent, infinite time
args
.
miscleavage
=
[]
# No miscleavage on concurrent, infinite time
# --pka option
# --pka option
aa_pka
=
core
.
AA_PKA_IPC
aa_pka
=
core
.
AA_PKA_IPC
_2
if
args
.
pka
==
"
stryer
"
:
if
args
.
pka
==
"
stryer
"
:
aa_pka
=
core
.
AA_PKA_S
aa_pka
=
core
.
AA_PKA_S
elif
args
.
pka
==
"
ipc
"
:
aa_pka
=
core
.
AA_PKA_IPC
# --list option
# --list option
if
args
.
list
:
if
args
.
list
:
...
...
This diff is collapsed.
Click to expand it.
rpg/core.py
+
11
−
0
View file @
18551f60
...
@@ -86,6 +86,17 @@ AA_PKA_IPC = {"Nterm" : 9.564,
...
@@ -86,6 +86,17 @@ AA_PKA_IPC = {"Nterm" : 9.564,
"
Y
"
:
10.071
,
"
Y
"
:
10.071
,
"
Cterm
"
:
2.383
}
"
Cterm
"
:
2.383
}
"""
pKa of important amino acid to compute pI (from IPC_peptide. See http://isoelectric.org/theory.html for details).
"""
"""
pKa of important amino acid to compute pI (from IPC_peptide. See http://isoelectric.org/theory.html for details).
"""
# IPC_peptide2
AA_PKA_IPC_2
=
{
"
Nterm
"
:
7.947
,
"
C
"
:
9.454
,
"
D
"
:
3.969
,
"
E
"
:
4.507
,
"
H
"
:
6.439
,
"
K
"
:
8.165
,
"
R
"
:
11.493
,
"
Y
"
:
9.153
,
"
Cterm
"
:
2.977
}
"""
pKa of important amino acid to compute pI (from IPC_peptide2. See http://www.ipc2-isoelectric-point.org/ for details).
"""
def
handle_errors
(
message
=
""
,
err
=
1
,
error_type
=
""
):
def
handle_errors
(
message
=
""
,
err
=
1
,
error_type
=
""
):
"""
Custom handling of errors and warnings.
"""
Custom handling of errors and warnings.
...
...
This diff is collapsed.
Click to expand it.
rpg/sequence.py
+
3
−
1
View file @
18551f60
...
@@ -68,9 +68,11 @@ class Peptide:
...
@@ -68,9 +68,11 @@ class Peptide:
# self representation for print
# self representation for print
def
__repr__
(
self
):
def
__repr__
(
self
):
pka
=
"
IPC
"
pka
=
"
IPC
2
"
if
self
.
aa_pka
==
core
.
AA_PKA_S
:
if
self
.
aa_pka
==
core
.
AA_PKA_S
:
pka
=
"
Stryer
"
pka
=
"
Stryer
"
elif
self
.
aa_pka
==
core
.
AA_PKA_IPC
:
pka
=
"
IPC
"
return
"
Original header:
"
+
self
.
header
+
"
\n
No. peptide:
"
+
\
return
"
Original header:
"
+
self
.
header
+
"
\n
No. peptide:
"
+
\
str
(
self
.
nb_peptide
)
+
"
\n
Enzyme:
"
+
self
.
enzyme_name
+
\
str
(
self
.
nb_peptide
)
+
"
\n
Enzyme:
"
+
self
.
enzyme_name
+
\
"
\n
Cleav. pos:
"
+
str
(
self
.
position
)
+
"
\n
Pep. size:
"
+
\
"
\n
Cleav. pos:
"
+
str
(
self
.
position
)
+
"
\n
Pep. size:
"
+
\
...
...
This diff is collapsed.
Click to expand it.
tests/test_functional.py
+
456
−
13
View file @
18551f60
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