Skip to content

Commit 6c6c383

Browse files
committed
Doc for derivative and group option of merge entry point
1 parent 97b5508 commit 6c6c383

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

bids_prov/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,18 @@ The `bids_prov.merge` module allows to merge provenance records contained in a B
6464

6565
```bash
6666
>> python -m bids_prov.merge --help
67-
usage: merge.py [-h] [--dataset DATASET] --output_file OUTPUT_FILE [--group GROUP]
67+
usage: merge.py [-h] [--dataset DATASET] [--derivative] --output_file
68+
OUTPUT_FILE [--group GROUP]
6869

6970
options:
7071
-h, --help show this help message and exit
7172
--dataset DATASET, -d DATASET
7273
The path to the input BIDS dataset.
74+
--derivative Set this option to specify the dataset is a BIDS
75+
derivative dataset.
7376
--output_file OUTPUT_FILE, -o OUTPUT_FILE
74-
Output JSON-LD file containing the provenance graph for the input dataset.
77+
Output JSON-LD file containing the provenance graph
78+
for the input dataset.
7579
--group GROUP, -g GROUP
7680
Provenance group for which to extract the metadata.
7781
```
@@ -125,4 +129,6 @@ Launching this command from the root dir of the dataset:
125129
python -m bids_prov.merge -d . -o prov/prov-fmriprep_all.jsonld
126130
```
127131

128-
Will look through all the sidecar JSON files, the `dataset_description.json`, and the `prov/*` files to extract provenance metadata, and merge it into the `prov/prov-fmriprep_all.jsonld` file as a JSON-LD RDF graph.
132+
will look through all the sidecar JSON files, the `dataset_description.json`, and the `prov/*` files to extract provenance metadata, and merge it into the `prov/prov-fmriprep_all.jsonld` file as a JSON-LD RDF graph.
133+
134+
Note that it is possible to extract provenance metadata for all provenance groups or for one provenance group only. Also note that it is important to set the `--derivative` option to parse BIDS derivative datasets.

0 commit comments

Comments
 (0)