common-workflow-language / common-workflow-language/cwltool

Improve experience using cwltool.factory

Open
#567 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
376
Forks
255
Avg merge
2d 7h
Merged PRs (30d)
12

Description

Issue courtesy @dtitov https://gitter.im/common-workflow-language/common-workflow-language?at=5a0c294ddf09362e670f44bd

> I'm trying to use cwltool from within Python (as a library) to programatically execute CWL tools.
> So I've followed the instructions from GitHub page:
```
import cwltool.factory
fac = cwltool.factory.Factory()

echo = f.make("echo.cwl")
result = echo(inp="foo")
```

> It needs two clarifications:
> - For the Docker-based tools one needs to manually set flag use_container or it will fail.
> - One needs to specify outputs and stderr in CWL-file in order to make it work (which is not required for running in stand-alone mode).

We can improve this in multiple ways, both should happen
- [x] Updating https://github.com/common-workflow-language/cwltool/blob/master/cwltool/main.py#L59
- [ ] Updating the relevant docstrings

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.