-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathworkflow.py
executable file
·74 lines (59 loc) · 2.38 KB
/
workflow.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# WORKFLOW_CONFIG: Configuration information for the Plant IT server
WORKFLOW_CONFIG = {
###
# These values should not need changed.
###
#Human readable workflow name
"name": "Plant Image Analysis",
#Human readable description
"description": "",
#Location of icon to show for the workflow.
# This path is relative to the django/static/ directory.
# Due to the way django deals with static files, please
# do not place anything outside of 'workflows/plant_image_analysis'
"icon_loc": "workflows/plant_image_analysis/icon.png",
#The cluster side api version that this workflow requires.
# Provided for future compatibility. Currently, the only valid version
# is 0.1.
"api_version": 0.1,
#The computer readable app name. Must be a valid python module name
"app_name": "plant_image_analysis",
###
# These values you may need to change
###
#The url to the singularity container in which to run
# process_sample(). The provided singularity container must have
# python3 installed. And it must be executable using the
# 'python3' command.
"singularity_url": "singularity shell shub://lsx1980/plant-image-analysis",
}
#Defines the arguments that are passed to process_sample.
#See docs for more details
parameters = [
{
#unique group name, must be a valid python variable name
'id': 'settings',
#Human readable name, shown in website UI
'name': 'Workflow Settings',
#A list of parameters within this group. These are converted to
# fields in the website UI. Each parameter is represented by a
# python dictionary.
'params':[
{
#unique parameter name, must be a valid python variable name
'id': 'filetype',
#Type of value this field will handle
#Valid types are: bool, float, and int
'type': 'str',
#Initial value the field will have.
#Must be compatible with the type of field
'initial': "jpg",
#Human readable name, shown in website UI
'name': 'image_filetype',
#A human readable description of what this parameter does
#shown to the users in the website UI
'description': 'Input image file type'
},
]
}
]