The MRSIPrep on Docker wrapper
MRSIPrep is distributed as a Docker image; there is no supported host
installation of the pipeline itself. This is a lightweight, dependency-free
Python wrapper that builds and runs
the appropriate docker run command using the normal MRSIPrep BIDS App
syntax. Docker must be installed and running (check with docker info).
Install
pip install mrsiprep-docker
mrsiprep-docker --help
pip installs the Python wrapper. If the container image is missing,
--help offers to download it; accepting runs docker pull mrsiup/mrsiprep:cpu.
Processing commands pull a missing image automatically. Docker itself must
already be installed and running.
To download the image directly:
docker pull mrsiup/mrsiprep:cpu
To update an already-installed image to the latest published version:
mrsiprep-docker --update
This is equivalent to docker pull mrsiup/mrsiprep:cpu (or whichever
--image you pass) and exits immediately afterward -- it never touches
bids_dir/output_dir and does not process anything.
Use
mrsiprep-docker /path/to/bids /path/to/derivatives participant \
--participant-label S001 --session-label V1 \
--nthreads 8 \
--fs-license-file /path/to/freesurfer/license.txt
This generates and runs the equivalent of:
docker run --rm -it -u "$(id -u):$(id -g)" \
-e TZ="$(cat /etc/timezone)" \
-v /path/to/freesurfer/license.txt:/opt/freesurfer/license.txt:ro \
-e FS_LICENSE=/opt/freesurfer/license.txt \
-v /path/to/bids:/data:ro \
-v /path/to/derivatives:/out \
mrsiup/mrsiprep:cpu \
/data /out participant \
--participant-label S001 --session-label V1 \
--nthreads 8
All ordinary mrsiprep arguments (--participant-label,
--tissue-backend, --parcellation-mode, --nucleus, --nproc,
--verbose, ...) are
passed straight through to the container unchanged. The wrapper only
special-cases the few options that need a bind mount or an environment
variable: --fs-license-file, --fs-subjects-dir, --work-dir,
--participants, and --mrsinmrs-file.
Acquisition metadata is required. By default, place mrsinmrs.json at
<bids_dir>/derivatives/mrsi-orig/. For a custom file, pass
--mrsinmrs-file /host/path/to/acquisition_metadata.json; the wrapper
mounts it read-only and forwards its container path. A missing selected
file causes the run to fail with instructions for supplying it.
-u "$(id -u):$(id -g)" (the default; override with -u/--user) plus the
container's own permission-fixing entrypoint means output files are owned by
the invoking user, not root. -e TZ=... (skip with --no-tz) keeps console
and logbook timestamps in sync with the host clock.
See the main repository's documentation for the full MRSIPrep CLI reference: https://mrsiprep.readthedocs.io/
Metadata
Release files for mrsiprep-docker 1.1.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 |
|---|---|---|---|---|
| mrsiprep_docker-1.1.0.tar.gz | 6.5 kB | Without provenance | Details for mrsiprep_docker-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mrsiprep_docker-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for mrsiprep_docker-1.1.0-py3-none-any.whl |
Total release size: 13.4 kB
Release files / mrsiprep_docker-1.1.0.tar.gz
| Download URL | mrsiprep_docker-1.1.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecc8e7cc697e0d1f0dd29c7f1df264106c112418991e703e8f4fb36fed6272a8
|
|
BLAKE2b-256 checksum How to use checksums |
4fc7f6340a8e130f2ea6175071edfb47f6f23f3014446568ead57485d0a0a7d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / mrsiprep_docker-1.1.0-py3-none-any.whl
| Download URL | mrsiprep_docker-1.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28a6a4b6a9a924420ba035519d4424b927d187ac37675624bc321f97d4d69f7e
|
|
BLAKE2b-256 checksum How to use checksums |
ee2071c550ccd97207654de2125fec954ad9b5f47c1f92b628a7b4e8dae0fb15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for mrsiprep-docker 1.1.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.