Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pampa_web
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Flissi Areski
pampa_web
Commits
4dd17b7d
Commit
4dd17b7d
authored
2 months ago
by
Hottlet Valentin
Browse files
Options
Downloads
Patches
Plain Diff
Add digestion enzyme selection and improve peak config handling
parent
a41164e8
Branches
add-craft
Branches containing commit
No related tags found
1 merge request
!8
Tests docker
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
www/cgi-bin/pampa/pampa.py
+20
-7
20 additions, 7 deletions
www/cgi-bin/pampa/pampa.py
www/html/pampa/form.php
+41
-10
41 additions, 10 deletions
www/html/pampa/form.php
with
61 additions
and
17 deletions
www/cgi-bin/pampa/pampa.py
+
20
−
7
View file @
4dd17b7d
...
...
@@ -236,17 +236,30 @@ def extract_request(form):
fOut
.
write
(
f
"
PTM=
{
req
[
'
limit_PTM
'
]
}
"
)
fOut
.
write
(
"
\n
"
)
minimum
=
None
digestion
=
None
if
"
minimum_peaks
"
in
form
:
if
form
[
"
minimum_peaks
"
].
value
!=
""
and
form
[
"
minimum_peaks
"
].
value
!=
"
5
"
:
minimum
=
form
[
"
minimum_peaks
"
].
value
else
:
minimum
=
None
if
minimum
:
if
"
digestion
"
in
form
:
if
form
[
"
digestion
"
].
value
!=
""
and
form
[
"
digestion
"
].
value
!=
"
trypsin
"
:
digestion
=
form
[
"
digestion
"
].
value
if
not
minimum
and
not
digestion
:
pass
else
:
with
open
(
f
'
{
common
.
CONFIG_FILE
}
'
,
'
r
'
)
as
f
:
data
=
json
.
load
(
f
)
if
minimum
:
data
[
'
min_number_of_peaks
'
]
=
minimum
log
.
write
(
f
"
Minimum number of peaks set to
{
minimum
}
\n
"
)
if
digestion
:
data
[
'
digestion
'
]
=
digestion
log
.
write
(
f
"
Digestion set to
{
digestion
}
\n
"
)
json
.
dump
(
data
,
open
(
f
'
{
resdir
}
/config.json
'
,
'
w
'
))
log
.
write
(
f
"
Digestion set to
{
minimum
}
\n
"
)
req
[
'
config_file
'
]
=
resdir
+
'
/config.json
'
log
.
write
(
"
Recap downloads :
\n
"
)
...
...
This diff is collapsed.
Click to expand it.
www/html/pampa/form.php
+
41
−
10
View file @
4dd17b7d
...
...
@@ -56,16 +56,6 @@
</table>
<br>
<b>
Minimum peaks configuration
</b>
<table
class=
"vide pampa_choice"
>
<tr>
<td>
<input
type=
"number"
name=
"minimum_peaks"
step=
"1"
min=
"1"
max=
"100"
value=
"5"
required
>
</td>
</tr>
</table>
<br>
<b>
Mass error tolerance
</b>
<table
class=
"vide pampa_choice"
>
<tr>
...
...
@@ -299,6 +289,47 @@
</div>
</div>
<div
class=
"formulaire"
>
<h2>
Configuration
<span
style=
"font-weight: normal"
>
(optional) :
</span></h2>
<table
class=
"vide"
>
<tr>
<td
class=
"label"
>
<B>
Choose
</B>
your digestion enzyme.
</td>
</tr>
<tr>
<td>
<select
name=
"digestion"
>
<option
value=
"arg-c"
>
arg-c
</option>
<option
value=
"asp-n"
>
asp-n
</option>
<option
value=
"chymotrypsin high specificity"
>
chymotrypsin high specificity
</option>
<option
value=
"chymotrypsin low specificity"
>
chymotrypsin low specificity
</option>
<option
value=
"glutamyl endopeptidase"
>
glutamyl endopeptidase
</option>
<option
value=
"pepsin ph1.3"
>
pepsin ph1.3
</option>
<option
value=
"pepsin ph2.0"
>
pepsin ph2.0
</option>
<option
value=
"proline endopeptidase"
>
proline endopeptidase
</option>
<option
value=
"trypsin"
selected
>
trypsin (Default)
</option>
<option
value=
"trypsin_exception"
>
trypsin_exception
</option>
</select>
</td>
</tr>
</table>
<br>
<table>
<tr>
<td
class=
"label"
>
<b>
Minimum peaks configuration
</b>
</td>
</tr>
<tr>
<td>
<input
type=
"number"
name=
"minimum_peaks"
step=
"1"
min=
"1"
max=
"100"
value=
"5"
required
>
</td>
</tr>
</table>
<br>
</div>
<div
class=
"center"
>
<input
type=
"button"
id=
"example_1"
name=
"example_1"
value=
"Example"
>
<input
type=
"submit"
id=
"reset"
name=
"reset"
value=
"Reset"
/>
...
...
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