Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chipathlon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Holland Computing Center
chipathlon
Commits
ee8a85a3
Commit
ee8a85a3
authored
8 years ago
by
aknecht2
Browse files
Options
Downloads
Patches
Plain Diff
Added job yaml file. Updated workflow_job parsing to handle rawfolder argument.
parent
c17b5649
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
chipathlon/jobs/params/music_punctate.yaml
+89
-0
89 additions, 0 deletions
chipathlon/jobs/params/music_punctate.yaml
chipathlon/workflow_job.py
+10
-0
10 additions, 0 deletions
chipathlon/workflow_job.py
with
99 additions
and
0 deletions
chipathlon/jobs/params/music_punctate.yaml
0 → 100644
+
89
−
0
View file @
ee8a85a3
music_punctate
:
inputs
:
-
name
:
prefix
type
:
string
-
name
:
control.bed
type
:
file
file_type
:
bed
-
name
:
signal.bed
type
:
file
file_type
:
bed
additional_inputs
:
-
name
:
mapp_inputs
type
:
list
file_type
:
bin
outputs
:
-
name
:
scale_129.bed
type
:
file
file_type
:
bed
-
name
:
scale_194.bed
type
:
file
file_type
:
bed
-
name
:
scale_291.bed
type
:
file
file_type
:
bed
-
name
:
scale_437.bed
type
:
file
file_type
:
bed
-
name
:
scale_656.bed
type
:
file
file_type
:
bed
-
name
:
scale_985.bed
type
:
file
file_type
:
bed
-
name
:
scale_1477.bed
type
:
file
file_type
:
bed
-
name
:
scale_2216.bed
type
:
file
file_type
:
bed
command
:
run_music.py
arguments
:
-
"
--prefix"
:
type
:
string
changeable
:
false
required
:
true
has_value
:
true
default
:
"
$inputs.0"
-
"
--peak_type"
:
type
:
string
changeable
:
false
required
:
true
has_value
:
true
default
:
"
punctate"
-
"
--controls"
:
type
:
file
changeable
:
false
required
:
true
has_value
:
true
default
:
"
$inputs.1"
-
"
--signals"
:
type
:
file
changeable
:
false
required
:
true
has_value
:
true
default
:
"
$inputs.2"
-
"
--mapp"
:
type
:
rawfolder
changeable
:
true
required
:
true
has_value
:
true
-
"
--lmapp"
:
type
:
numeric
changeable
:
true
required
:
true
has_value
:
true
default
:
50
walltime
:
240
memory
:
16000
cores
:
1
nodes
:
1
This diff is collapsed.
Click to expand it.
chipathlon/workflow_job.py
+
10
−
0
View file @
ee8a85a3
...
@@ -294,9 +294,19 @@ class WorkflowJob(object):
...
@@ -294,9 +294,19 @@ class WorkflowJob(object):
valid_arg
,
msg
=
self
.
_is_valid_arg
(
arg_name
,
arg_info
)
valid_arg
,
msg
=
self
.
_is_valid_arg
(
arg_name
,
arg_info
)
if
valid_arg
:
if
valid_arg
:
# If the argument is a rawfile, add it to the raw_file list for use in the DAX
# If the argument is a rawfile, add it to the raw_file list for use in the DAX
# This is for files that are on disk and need to be staged
if
arg_info
[
"
type
"
]
==
"
rawfile
"
:
if
arg_info
[
"
type
"
]
==
"
rawfile
"
:
arg_value
=
self
.
_get_arg_value
(
arg_name
,
arg_info
)
arg_value
=
self
.
_get_arg_value
(
arg_name
,
arg_info
)
self
.
raw_files
[
os
.
path
.
basename
(
arg_value
)]
=
{
"
path
"
:
arg_value
}
self
.
raw_files
[
os
.
path
.
basename
(
arg_value
)]
=
{
"
path
"
:
arg_value
}
# Sometimes we have a folder full of files we need to include,
# in this case, use the rawfolder argument to stage all files
# within the folder.
elif
arg_info
[
"
type
"
]
==
"
rawfolder
"
:
arg_value
=
self
.
_get_arg_value
(
arg_name
,
arg_info
)
for
root
,
dirs
,
files
in
os
.
walk
(
arg_value
):
for
f
in
files
:
self
.
raw_files
[
f
]
=
{
"
path
"
:
"
%s/%s
"
%
(
arg_value
,
f
)}
break
else
:
else
:
self
.
errors
.
append
(
msg
)
self
.
errors
.
append
(
msg
)
if
self
.
params
.
get
(
"
arguments
"
)
is
not
None
:
if
self
.
params
.
get
(
"
arguments
"
)
is
not
None
:
...
...
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