-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add arg to bids
command for absolute path to BIDS root
#390
Comments
bids
command for absolute path to BIDS root
@surchs, mind taking a look at the description and proposed solutions and seeing if either makes sense to you? |
I like option 1 better. But that gives us 4 things a user needs to control regarding BIDS:
That's a lot of similar things. So I would suggest we
This still allows the CLI to run in "bare-metal" mode, but for most cases (i.e. as a docker container) I need to put a lot less stuff / repeat myself a lot less. So the new invocation would be
wdyt? |
BIDS session paths are currently resolved using the absolute path of the BIDS directory (via the
--bids-dir
arg) inside a Docker container. This means that it is not guaranteed that the session paths derived from the within-container BIDS root actually correspond to their real paths on the host FS where the CLI was run. Rather, this depends on whether the user has mounted the BIDS directory to the same absolute location in the CLI container as the host (the example commands provided in our docs do this by default).More experienced Docker users (e.g., our Nipoppy friends) may choose to mount paths differently when running the CLI, resulting in session paths in the JSONLD file that do not actually exist in the source FS where the dataset is stored.
Goal
Make it possible to derive the absolute path of the BIDS directory root on the source filesystem (not the container filesystem) based on CLI inputs, regardless of the exact volume mounting used by the user.
Possible solutions
We can then use
--bids-dir
to resolve the actual BIDS structure and extract session paths based on the mounted directory, but construct the absolute 'source' session paths for subjects' JSONLD data using--host-bids-dir
(which is independent of the volume mounting)Again, we can reconstruct the absolute source BIDS paths using
HOST_BIDS_DIR
.The text was updated successfully, but these errors were encountered: