Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
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
Touzet Hélène
pampa_web
Commits
9e3ca95c
Commit
9e3ca95c
authored
4 months ago
by
Hottlet Valentin
Browse files
Options
Downloads
Patches
Plain Diff
update example autofill, method choice working
parent
f7e0e56f
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
www/cgi-bin/pampa/pampa-craft.py
+8
-1
8 additions, 1 deletion
www/cgi-bin/pampa/pampa-craft.py
www/html/pampa/craft-form.php
+6
-5
6 additions, 5 deletions
www/html/pampa/craft-form.php
www/html/pampa/js/pampa.js
+1
-0
1 addition, 0 deletions
www/html/pampa/js/pampa.js
with
15 additions
and
6 deletions
www/cgi-bin/pampa/pampa-craft.py
+
8
−
1
View file @
9e3ca95c
...
...
@@ -51,6 +51,11 @@ def extract_request(form):
else
:
log
.
write
(
"
Job name: None
\n
"
)
if
'
method
'
in
form
:
req
[
"
method
"
]
=
form
[
'
method
'
].
value
else
:
error_messages
.
append
(
f
"
Method is required
"
)
if
'
craft-example
'
in
form
:
FormTools
.
extract_files_from_list
([
common
.
CRAFT_PEPTIDE
],
resdir
)
req
[
"
peptides_path
"
]
=
resdir
+
'
/
'
+
"
craft_peptides.tsv
"
...
...
@@ -130,7 +135,9 @@ def launch_software(run_id, req):
sequences_arg
=
req
[
"
sequences_dir
"
]
command
=
"
python pampa_craft.py --homology -p
"
+
peptides_arg
+
"
-d
"
+
sequences_arg
+
"
-o
"
+
common
.
RESULT_DIR
+
run_id
+
"
/
"
+
output_arg
method
=
req
[
'
method
'
]
command
=
"
python pampa_craft.py --
"
+
method
+
"
-p
"
+
peptides_arg
+
"
-d
"
+
sequences_arg
+
"
-o
"
+
common
.
RESULT_DIR
+
run_id
+
"
/
"
+
output_arg
if
'
limit_path
'
in
req
:
limit_arg
=
req
[
"
limit_path
"
]
command
+=
"
-l
"
+
limit_arg
...
...
This diff is collapsed.
Click to expand it.
www/html/pampa/craft-form.php
+
6
−
5
View file @
9e3ca95c
...
...
@@ -31,36 +31,37 @@
</table>
</div>
<h2>
Method
</h2>
<table
class=
"vide table-center pampa-choice"
>
<tr>
<td>
<div>
<input
type=
"radio"
id=
"allpeptides"
name=
"
drone
"
value=
"allpeptides"
checked
/>
<input
type=
"radio"
id=
"allpeptides"
name=
"
method
"
value=
"allpeptides"
/>
<label
for=
"allpeptides"
>
Allpeptides
</label>
</div>
</td>
<td>
<div>
<input
type=
"radio"
id=
"deamidation"
name=
"
drone
"
value=
"deamidation"
/>
<input
type=
"radio"
id=
"deamidation"
name=
"
method
"
value=
"deamidation"
/>
<label
for=
"deamidation"
>
Deamidation
</label>
</div>
</td>
<td>
<div>
<input
type=
"radio"
id=
"fillin"
name=
"
drone
"
value=
"fillin"
/>
<input
type=
"radio"
id=
"fillin"
name=
"
method
"
value=
"fillin"
/>
<label
for=
"fillin"
>
Fillin
</label>
</div>
</td>
<td>
<div>
<input
type=
"radio"
id=
"homology"
name=
"
drone
"
value=
"homology"
/>
<input
type=
"radio"
id=
"homology"
name=
"
method
"
value=
"homology"
checked
/>
<label
for=
"homology"
>
Homology
</label>
</div>
</td>
<td>
<div>
<input
type=
"radio"
id=
"selection"
name=
"
drone
"
value=
"selection"
/>
<input
type=
"radio"
id=
"selection"
name=
"
method
"
value=
"selection"
/>
<label
for=
"selection"
>
Selection
</label>
</div>
</td>
...
...
This diff is collapsed.
Click to expand it.
www/html/pampa/js/pampa.js
+
1
−
0
View file @
9e3ca95c
...
...
@@ -107,6 +107,7 @@ $(document).on("click", "#example-craft", function() {
$
(
"
#sequences_input input
"
).
attr
(
"
required
"
,
false
);
$
(
"
#sequences_example
"
).
show
();
$
(
"
input[name='craft-example']
"
).
attr
(
"
checked
"
,
true
);
$
(
"
#homology
"
).
prop
(
"
checked
"
,
true
);
});
});
...
...
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