d2b-dcm2niix
Dcm2niix plugin for the d2b package
Installation
pip install d2b-dcm2niix
Usage
After installation the d2b run command should have additional dcm2niix-specific flags:
$ d2b run --help
usage: d2b run [-h] -c CONFIG_FILE -p PARTICIPANT -o OUT_DIR [-s SESSION] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--no-dcm2niix | --dcm2niix | --force-dcm2niix] in_dir [in_dir ...]
Organize data in the BIDS format
positional arguments:
in_dir Directory(ies) containing files to organize
required arguments:
-c CONFIG_FILE, --config CONFIG_FILE
JSON configuration file (see example/config.json)
-p PARTICIPANT, --participant PARTICIPANT
Participant ID
-o OUT_DIR, --out-dir OUT_DIR
Output BIDS directory
--no-dcm2niix Don't run dcm2niix on the input directories. (This is the default)
--dcm2niix Run dcm2niix on each of the input directories before organization code executes. dcm2niix execution will be skipped for directories for which converted results from a previous run are found.
--force-dcm2niix Run dcm2niix on each of the input directories before organization code executes. Previous dcm2niix results will be overwritten
optional arguments:
-s SESSION, --session SESSION
Session ID
-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
Set logging level
Specifically, the following new (mutually exclusive) options are available:
-
--no-dcm2niix: This is the default behaviour (i.e. the behaviour of thed2b runcommand if none of the dcm2niix flags are set) -
--dcm2niix: This will try to rundcm2niixon (copies of) each of the input directories prior to proceeding with BIDS-ification. NOTE: If any NIfTI files are found from a previousd2b run --dcm2niix ...run, then dcm2niix will not be invoked on that (copy of that) specific input directory. -
--force-dcm2niix: This will rundcm2niixon (copies of) each of the input directories always, regardless of files from previousd2b runruns.
Also, there should be a new subcommand d2b dcm2niix available:
$ d2b dcm2niix --help
usage: d2b dcm2niix [-h] in_dir [in_dir ...] out_dir
Run dcm2niix with the options used by d2b
positional arguments:
in_dir DICOM directory(ies)
out_dir Output BIDS directory
optional arguments:
-h, --help show this help message and exit
This command is the equivalent of dcm2bids's dcm2bids_helper command. In particular it's serves as a way to run dcm2niix in the exact same way that d2b run --[force-]dcm2niix would run the command (i.e. potentially useful to see what the resulting sidecars/filenames would look like).
Metadata
Release files for d2b-dcm2niix 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| d2b-dcm2niix-1.0.0.tar.gz | 4.6 kB | Without provenance | Details for d2b-dcm2niix-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| d2b_dcm2niix-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for d2b_dcm2niix-1.0.0-py3-none-any.whl |
Total release size: 9.1 kB
Release files / d2b-dcm2niix-1.0.0.tar.gz
| Download URL | d2b-dcm2niix-1.0.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9896c7ae2d753d54777d4adfe1b26d0e1c282369b1128ac141465ecf5c66bd45
|
|
BLAKE2b-256 checksum How to use checksums |
661e7a3fc9097d0b36217b737ccc23ddcd8fefa93935dd59bfc572eea7501521
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.6 Linux/5.8.0-1040-azure
|
Release files / d2b_dcm2niix-1.0.0-py3-none-any.whl
| Download URL | d2b_dcm2niix-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8657a971a266bc1d1a3f8787f46b0ceb9f54f927ab011a0925fb2e8e5534e6a
|
|
BLAKE2b-256 checksum How to use checksums |
ce2ce7b8280eaddb6121709b2beb79984b89755fe11f8b22d1db30fa8465b38f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.6 Linux/5.8.0-1040-azure
|
Security for d2b-dcm2niix 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.