NSAPH Data Platform
Contents
Introduction
What is Data Platform
Data Domains
Data Processing Pipelines
Python Packages
Data Platform Internals
Adding more data
Terms and Acronyms
Indices
NSAPH Data Platform
The cwl_generator Module
View page source
The cwl_generator Module
class
CWLGenerator
(
path_to_pipeline
:
str
)
[source]
write_header
(
requirements
:
Dict
,
comment
:
str
,
hints
:
Optional
[
Dict
]
=
None
)
[source]
static
create_docker_requirement
(
image
:
str
,
workdir
:
Optional
[
str
]
=
None
)
→
Dict
[
str
,
Dict
[
str
,
str
]
]
[source]
static
create_network_requirement
(
)
→
Dict
[
str
,
Dict
[
str
,
bool
]
]
[source]
static
create_expression_requirements
(
)
→
Dict
[
str
,
Dict
[
str
,
bool
]
]
[source]
write_inputs
(
inputs
:
Dict
)
[source]
start_steps
(
)
[source]
start_outputs
(
)
[source]
empty_line
(
)
[source]
write_output
(
name
:
str
,
indent
:
str
=
'
'
,
glob
:
Optional
[
str
]
=
None
,
step
:
Optional
[
str
]
=
None
,
prefix
:
str
=
''
,
stream
=
None
)
[source]
static
find_tool
(
name
:
str
,
tool_type
=
'cwl'
)
→
Optional
[
str
]
[source]
copy_tool
(
tool
:
str
)
[source]
get_work_dir
(
)
[source]