-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
1,180 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[codespell] | ||
skip = .git,.venv,venvs,*.svg,_build | ||
skip = .git,.venv,venvs,*.svg,_build,build | ||
# te -- TE as codespell is case insensitive | ||
ignore-words-list = bu,nd,te |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
============= | ||
CLI Reference | ||
============= | ||
|
||
``heudiconv`` processes DICOM files and converts the output into user defined | ||
paths. | ||
|
||
.. argparse:: | ||
:ref: heudiconv.cli.run.get_parser | ||
:prog: heudiconv | ||
:nodefault: | ||
:nodefaultconst: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
============================== | ||
Using heudiconv in a Container | ||
============================== | ||
|
||
If heudiconv is :ref:`installed via a Docker container <install_container>`, you | ||
can run the commands in the following format:: | ||
docker run nipy/heudiconv:latest [heudiconv options] | ||
|
||
So a user running via container would check the version with this command:: | ||
|
||
docker run nipy/heudiconv:latest --version | ||
|
||
Which is equivalent to the locally installed command:: | ||
|
||
heudiconv --version | ||
|
||
Bind mount | ||
---------- | ||
|
||
Typically, users of heudiconv will be operating on data that is on their local machine. We can give heudiconv access to that data via a ``bind mount``, which is the ``-v`` syntax. | ||
|
||
Once common pattern is to share the working directory with ``-v $PWD:$PWD``, so heudiconv will behave as though it is installed on your system. However, you should be aware of how permissions work depending on your container toolset. | ||
|
||
|
||
Docker Permissions | ||
****************** | ||
|
||
When you run a container with docker without specifying a user, it will be run as root. | ||
This isn't ideal if you are operating on data owned by your local user, so for ``Docker`` it is recommended to specify that the container will run as your user.:: | ||
|
||
docker run --user=$(id -u):$(id -g) -e "UID=$(id -u)" -e "GID=$(id -g)" --rm -t -v $PWD:$PWD nipy/heudiconv:latest --version | ||
|
||
Podman Permissions | ||
****************** | ||
|
||
When running Podman without specifying a user, the container is run as root inside the container, but your user outside of the container. | ||
This default behavior usually works for heudiconv users:: | ||
|
||
docker run -v $PWD:PWD nipy/heudiconv:latest --version | ||
|
||
Other Common Options | ||
-------------------- | ||
|
||
We typically recommend users make use of the following flags to Docker and Podman | ||
|
||
* ``-it`` Interactive terminal | ||
* ``--rm`` Remove the changes to the container when it completes | ||
|
Oops, something went wrong.