Skip to content

Commit deb1ce6

Browse files
wleepangLee Pang
andauthored
ci 821 update documentation (#172)
* add pipeline configuration documentation * allow running create-pipeline-config with no options --------- Co-authored-by: Lee Pang <[email protected]>
1 parent 5e42fff commit deb1ce6

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ or you can install the main branch of the repo by running:
1717

1818
`pip install git+https://github.com/CirroBio/Cirro-client.git`
1919

20+
To enable [pipeline configuration](#configuring-a-pipeline) you need to install extras using:
21+
22+
```bash
23+
pip install cirro[nextflow] # just nextflow pipeline configuration support
24+
pip install cirro[wdl] # just wdl pipeline configuraiton support
25+
pip install cirro[nextflow,wdl] # both nextflow and wdl pipeline configuration support
26+
```
27+
28+
**NOTE**: Configuring Nextflow pipelines also requires a local installation of [`nextflow`](https://www.nextflow.io/).
29+
2030
## Authentication
2131

2232
Upon first use, the Cirro client will ask you what Cirro instance to use and if you would like to save your login information.
@@ -99,6 +109,28 @@ Options:
99109
--help Show this message and exit.
100110
```
101111

112+
#### Configuring a pipeline
113+
```bash
114+
Usage: cirro create-pipeline-config [OPTIONS]
115+
116+
Create pipeline configuration files
117+
118+
Options:
119+
-p, --pipeline-dir DIRECTORY Directory containing the pipeline definition
120+
files (e.g., WDL or Nextflow) [default: .]
121+
-e, --entrypoint TEXT Entrypoint WDL file (optional, if not
122+
specified, the first WDL file found will be
123+
used). Ignored for Nextflow pipelines.
124+
-o, --output-dir TEXT Directory to store the generated configuration
125+
files [default: .cirro]
126+
-i, --interactive Gather arguments interactively
127+
--help Show this message and exit.
128+
```
129+
130+
It is highly recommended that:
131+
- Nextflow pipelines utilize a [`nextflow_schema.json`](https://nextflow-io.github.io/nf-schema/latest/nextflow_schema/nextflow_schema_specification/) file. (If your pipeline originates from [NF-Core](https://nf-co.re/), this should already be the case.)
132+
- WDL pipelines are defined in WDL v1.0 or higher and explicitly define an `input` section in the root-level workflow.
133+
102134
### Interactive Commands
103135
104136
When running a command, you can specify the `--interactive` flag to gather the command arguments interactively.

cirro/cli/cli.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ def configure():
104104
run_configure()
105105

106106

107-
@run.command(help='Create pipeline configuration files', no_args_is_help=True)
107+
@run.command(help='Create pipeline configuration files')
108108
@click.option('-p', '--pipeline-dir',
109-
required=True,
110109
metavar='DIRECTORY',
111110
help='Directory containing the pipeline definition files (e.g., WDL or Nextflow)',
112111
default='.',
@@ -117,7 +116,7 @@ def configure():
117116
' Ignored for Nextflow pipelines.'),
118117
default='main.wdl')
119118
@click.option('-o', '--output-dir',
120-
help='Directory to store the generated configuration files (default: current directory)',
119+
help='Directory to store the generated configuration files',
121120
default='.cirro',
122121
show_default=True)
123122
@click.option('-i', '--interactive',

0 commit comments

Comments
 (0)