Usage¶
Execution and the BIDS format¶
The general input of bids_bep16_conv
is a path to the derivative
DWI dataset
that should
be further processed and its outputs subsequently structured according to BEP16.
The input (derivative
) dataset
is required to be in valid BIDS format.
We highly recommend that you validate your dataset before you run bids_bep16_conv
with the free, online BIDS Validator.
However, the BIDS Validator is also run at the beginning of bids_bep16_conv
and will
you make you aware of possible problems and/or inconsistencies.
The exact command to run bids_bep16_conv
depends on the Installation method.
The common parts of the command follow the BIDS-Apps definition.
Here’s a very conceptual example:
bids_bep16_conv bids_root/ analysis_level optional_arguments
However, it is important to note that bids_bep16_conv
is a special case of a BIDS-App
in that it aims to fascilitate the development of BEP16 and potential adjacent software packges.
As bids_bep16_conv
focuses on BEP16
and is intended to be run after the initial DWI
preprocessing
(e.g. via QSIprep
) it entails a derivative
of derivatives
application, it generates intermediate files
, ie
files that will be further processed
.
Command-Line Arguments¶
a BIDS app for converting DWI pipeline outputs to BEP16-conform derivative datasets
usage: bids_bep16_conv [-h]
[--participant_label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]]
[--software {dipy,mrtrix,fsl}] [--analysis {DTI,CSD}]
[--metadata METADATA] [--skip_bids_validation]
[--download_dataset {HBN}]
[--download_path DOWNLOAD_PATH] [-v]
bids_dir out_dir {participant,group}
Positional Arguments¶
- bids_dir
The directory with the input dataset formatted according to the BIDS standard.
- out_dir
The directory to save the output to,formatted according to the BIDS standard.
- analysis_level
Possible choices: participant, group
Level of the analysis that will be performed. Multiple participant level analyses can be run independently (in parallel) using the same output_dir.
Named Arguments¶
- --participant_label
The label(s) of the participant(s) that should be analyzed. The label corresponds to sub-<participant_label> from the BIDS spec (so it does not include “sub-“). If this parameter is not provided all subjects should be analyzed. Multiple participants can be specified with a space separated list.
- --software
Possible choices: dipy, mrtrix, fsl
Software package to use.
- --analysis
Possible choices: DTI, CSD
Analaysis to run.
- --metadata
Analysis-corresponding JSON metadata file. If this parameter is not provided, the resulting json metadata files will contain only placeholder information and need to be further adapted.
- --skip_bids_validation
Assume the input dataset is BIDS compliant and skip the validation (default: True).
- --download_dataset
Possible choices: HBN
Download example dataset. If this argument is set, no processing orconversion will be performed but only the indicated exampledataset be download to the path indicated via –download_path
- --download_path
Path where the example dataset should be downloaded to.
- -v, --version
show program’s version number and exit
Example Call(s)¶
Below you’ll find two examples calls that hopefully help
you to familiarize yourself with bids_bep16_conv
and its options.
Example 1¶
bids_bep16_conv \
/home/user/bids/ \
participant \
--participant_label 01 \
--software dipy \
--analysis DTI \
--metadata /bids_dataset/code/dipy/DTI/analysis_metadata.json
Here’s what’s in this call:
The 1st positional argument is the BIDS directory (
/home/user/bids
)The 2nd positional argument specifies whether we are running participant- or group-level mode. In more detail, if only a certain or all participants should be de-identified. You can choose between
participant
andgroup
. Here we chooseparticipant
.The 3rd positional argument defines the
subject id
, thus which specific participant should be de-identified. In this case, we choose01
.The 4th positional argument specifies which software should be used to run the subsequently specified analysis. You can choose between
dipy
andmrtrix
. In this example we choosedipy
.The 5th positional argument specifies the analysis that should be run and generate the outputs that will be restructured to be
BEP16
-conform. You have the optionsDTI
orCSD
. Here we choseDTI
.The 6th positional argument indicates the path to the JSON file that contains metadata information concerning the analysis. It will be used to generate and fill the JSON sidecar files of the images obtained through the analysis.
Example 2¶
bids_bep16_conv \
/home/peer/bids/ \
group \
--software mrtrix \
--analysis DTI \
Here’s what’s in this call:
The 1st positional argument again is the BIDS directory (
/home/user/bids
)The 2nd positional argument once more specifies whether we are running participant- or group-level mode. In more detail, if only a certain or all participants should be de-identified. You can choose between
participant
andgroup
. Here we choosegroup
. Hence, all participants will be de-identified and we don’t need to specific a--participant_label
as in Example 1.The 4th positional argument specifies which software should be used to run the subsequently specified analysis. You can choose between
dipy
andmrtrix
. This time we choosemrtrix
.The 5th positional argument specifies the analysis that should be run and generate the outputs that will be restructured to be
BEP16
-conform. You have the optionsDTI
orCSD
. Here we choseDTI
.
In contrast to Example 1, we didn’t indicate a JSON metadata file concerning the analysis parameters. Thus, the resulting JSON sidecar files will only contain placeholders that need to be filled out manually.
Example 3¶
bids_bep16_conv \
--download_dataset HBN \
--download_path /user/home \
Here’s what’s in this call:
The 1st positional argument indicates that we would like to download one of the example datasets. You currently only have the option
HBN
.The 2nd positional argument specifies the path the example dataset should be downloaded to. Here, for example,
/user/home
.
Support and communication¶
The documentation of this project is found here: https://peerherholz.github.io/bids_bep16_conv.
All bugs, concerns and enhancement requests for this software can be submitted here: https://github.com/peerherholz/bids_bep16_conv/issues.
If you have a problem or would like to ask a question about how to use bids_bep16_conv
,
please submit a question to NeuroStars.org with an bids_bep16_conv
tag.
NeuroStars.org is a platform similar to StackOverflow but dedicated to neuroinformatics.
All previous bids_bep16_conv
questions are available here:
http://neurostars.org/tags/bids_bep16_conv/
Not running on a local machine? - Data transfer¶
If you intend to run bids_bep16_conv
on a remote system, you will need to
make your data available within that system first.
Please contact you local system administrator regarding possible and favourable transfer options (e.g., rsync or FileZilla).
A very comprehensive approach would be Datalad, which will handle data transfers with the appropriate settings and commands. Datalad also performs version control over your data.