Skip to content

Commit 14304f6

Browse files
authored
Merge pull request #81 from mgxd/doc/wrapper-usage
DOC: Add functional processing overview, usage for nibabies-wrapper
2 parents 66577f7 + 236544b commit 14304f6

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

README.md

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
![nibabies](https://github.com/nipreps/nibabies/actions/workflows/pytest.yml/badge.svg)
44
[![DOI](https://zenodo.org/badge/264223087.svg)](https://zenodo.org/badge/latestdoi/264223087)
55

6-
7-
<p align="center">
8-
<img src="./docs/_static/nibabies_anat.png" width="600" height="600" alt="nibabies-anat">
9-
</p>
6+
Anatomical | Functional
7+
---------- | ----------
8+
![nibabies-anat](./docs/_static/nibabies_anat.png) | ![nibabies-func](./docs/_static/nibabies_func.png)
109

1110
*NiBabies* is an extension of [fMRIPrep](https://fmriprep.org/en/stable/) designed and tested for infants 0-2 years old. *NiBabies* offers structural and functional MRI preprocessing.
1211

13-
----
12+
---
13+
1414
### Requirements
1515

1616
Given its extensive dependencies, the easiest way to get up and running with *NiBabies* is by using the available [Docker](https://hub.docker.com/r/mgxd/nibabies/tags?page=1&ordering=last_updated) or [Singularity](https://cloud.sylabs.io/library/mathiasg/default/nibabies) containers.
@@ -25,6 +25,7 @@ singularity pull library://mathiasg/default/nibabies:0.1.0
2525

2626
If you insist on installing this tool locally, you can use the [Dockerfile](./Dockerfile) as a guide.
2727

28+
---
2829

2930
### Usage
3031

@@ -45,8 +46,10 @@ However, as infant brains can vastly differ depending on age, providing the foll
4546
> - A segmented and labelled NIfTI that includes `Segmentation` in the filename.
4647
> - A brainmasked T1w NIfTI that includes `T1w` in the filename.
4748
49+
50+
##### Extensive Usage
4851
<details>
49-
<summary>Extensive argument list</summary>
52+
<summary>Click to view all options</summary>
5053

5154
```
5255
usage: nibabies [-h] [--version] [--skip_bids_validation]
@@ -316,6 +319,32 @@ NiBabies specific options:
316319

317320
</details>
318321

322+
---
323+
324+
### Running with ``nibabies-wrapper``
325+
326+
The ``nibabies-wrapper`` is a lightweight Python 2/3 wrapper for running *NiBabies* via Docker and Singularity.
327+
It will generate a Docker/Singularity command line for you, print it out for reporting purposes, and then execute it without further action needed, e.g.:
328+
329+
330+
##### Docker
331+
```
332+
$ nibabies-wrapper docker /path/to/data /path/to/output participant --age-months 12
333+
RUNNING: docker run --rm -e DOCKER_VERSION_8395080871=20.10.6 -it -v /path/to/data:/data:ro \
334+
-v /path/to/output:/out nipreps/nibabies:0.1.1 /data /out participant --age-months 12
335+
```
336+
337+
##### Singularity
338+
```
339+
$ nibabies-wrapper singularity /path/to/data /path/to/output participant --age-months 12 -i nibabies-0.1.1.sif
340+
RUNNING: singularity run --cleanenv -B /path/to/data:/data:ro \
341+
-B /path/to/output:/out nibabies-0.1.1.sif /data /out participant --age-months 12
342+
```
343+
344+
The ``nibabies-wrapper`` accepts all of the [available options for NiBabies](#extensive-usage), automatically translating local files and directories into mount points.
345+
346+
---
347+
319348
### Outputs
320349

321350
TODO - Refer to [fMRIPrep's outputs](https://fmriprep.org/en/20.2.1/outputs.html) for now.

0 commit comments

Comments
 (0)