Skip to content

Commit

Permalink
[DOC] command line tools
Browse files Browse the repository at this point in the history
  • Loading branch information
bclenet committed Jan 10, 2024
1 parent 0f71b31 commit 7adb57f
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
26 changes: 22 additions & 4 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,30 @@ cd /home/neuro/code/
pip install .
```

Finally, you are able to run pipelines :
Finally, you are able to use the scripts of the project :

* `narps_open_runner`: run pipelines
* `narps_description`: get the textual description made by a team
* `narps_results`: download the original results from teams
* `narps_open_status`: get status information about the development process of the pipelines

```bash
python narps_open/runner.py
usage: runner.py [-h] -t TEAM (-r RSUBJECTS | -s SUBJECTS [SUBJECTS ...] | -n NSUBJECTS) [-g | -f] [-c]
# Run the pipeline for team 2T6S, with 40 subjects
narps_open_runner -t 2T6S -n 40

# Get the description of team C88N in markdown formatting
narps_description -t C88N --md

# Download the results from all teams
narps_results -a

# Get the pipeline work status information in json formatting
narps_open_status --json
```

> [!NOTE]
> For further information, read this documentation page [docs/running.md](docs/running.md).
> For further information about these command line tools, read the corresponding documentation pages.
> * `narps_open_runner` : [docs/running.md](docs/running.md)
> * `narps_description` : [docs/description.md](docs/description.md)
> * `narps_results` : [docs/data.md](docs/data.md)
> * `narps_open_status` : [docs/status.md](docs/status.md)
2 changes: 1 addition & 1 deletion docs/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ for team in teams:
collection.rectify() # Rectified versions are created
```

> [! TIP]
> [!TIP]
> In the following examples, use `narps_results` or `python narps_open/data/results` indifferently to launch the command line tool.
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The class `TeamDescription` of module `narps_open.data.description` acts as a pa

You can use the command-line tool as so. Option `-t` is for the team id, option `-d` allows to print only one of the sub parts of the description among : `general`, `exclusions`, `preprocessing`, `analysis`, `categorized_for_analysis`, `derived`, and `comments`. Options `--json` and `--md` allow to choose the export format you prefer between JSON and Markdown.

> [! TIP]
> [!TIP]
> In the following examples, use `narps_description` or `python narps_open/data/description` indifferently to launch the command line tool.
```bash
Expand Down
4 changes: 2 additions & 2 deletions docs/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

The `narps_open.runner` module allows to run pipelines from the command line.

> [! TIP]
> [!TIP]
> In the following examples, use `narps_open_runner` or `python narps_open/runner.py` indifferently to launch the command line tool.
```bash
Expand All @@ -28,7 +28,7 @@ narps_open_runner -t 2T6S -r 4 -f
narps_open_runner -t 2T6S -r 4 -f -c # Check the output files without launching the runner
```

> [! NOTE]
> [!NOTE]
> In this usecase, the paths where to store the outputs and to the dataset are picked by the runner from the [configuration](docs/configuration.md).
## Using the `PipelineRunner` object
Expand Down
2 changes: 1 addition & 1 deletion docs/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ report.markdown() # Returns a string containing the markdown

You can also use the command-line tool as so.

> [! TIP]
> [!TIP]
> In the following examples, use `narps_open_status` or `python narps_open/utils/status.py` indifferently to launch the command line tool.
```bash
Expand Down

0 comments on commit 7adb57f

Please sign in to comment.