Skip to content
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

Cannot be executed from subfolder #85

Open
yarikoptic opened this issue Jun 13, 2024 · 0 comments
Open

Cannot be executed from subfolder #85

yarikoptic opened this issue Jun 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yarikoptic
Copy link
Contributor

Relates to

I did not see options to specify where to output the *_wf folders with reports which were dumped into the root of the dataset (not the right place IMHO), so thought to run from subdirectory and point to the top as the root of the BIDS dataset, but bidsonym does not work that way

(dev3) yoh@typhon:/data/yoh/1076_spacetop/derivatives/bidsonym-1$ ls -l $PWD/../..
total 76
-rw-r--r-- 1 yoh yoh  364 May 21 10:35 CHANGES
drwxr-xr-x 1 yoh yoh  626 Jun 12 16:49 code
-rw-r--r-- 1 yoh yoh  755 Jun 12 16:49 dataset_description.json
drwxr-xr-x 1 yoh yoh   60 Jun 13 12:25 derivatives
-rw-r--r-- 1 yoh yoh  405 May 21 10:35 participants.json
-rw-r--r-- 1 yoh yoh   73 Jun 12 16:49 participants.tsv
-rw-r--r-- 1 yoh yoh  138 May 21 10:35 README
drwxr-xr-x 1 yoh yoh   54 Jun 13 12:25 sourcedata
drwxr-xr-x 1 yoh yoh   48 May 21 10:35 sub-0001
drwxr-xr-x 1 yoh yoh   48 May 21 10:35 sub-0133
-rw-r--r-- 1 yoh yoh 1807 May 21 10:35 task-alignvideo_acq-mb8_bold.json
-rw-r--r-- 1 yoh yoh 1949 May 21 10:35 task-faces_acq-mb8_bold.json
-rw-r--r-- 1 yoh yoh 1954 May 21 10:35 task-fractional_acq-mb8_bold.json
-rw-r--r-- 1 yoh yoh 2638 Jun 12 16:49 task-learnining_acq-mb8_bold.json
-rw-r--r-- 1 yoh yoh 5463 May 29 13:47 task-memory_events.json
-rw-r--r-- 1 yoh yoh 1954 May 21 10:35 task-narratives_acq-mb8_bold.json
-rw-r--r-- 1 yoh yoh 4833 May 29 13:47 task-posner_events.json
-rw-r--r-- 1 yoh yoh 2079 May 21 10:35 task-shortvideo_acq-mb8_bold.json
-rw-r--r-- 1 yoh yoh 1803 May 21 10:35 task-social_acq-mb8_bold.json
-rw-r--r-- 1 yoh yoh 3532 May 29 13:47 task-tomsaxe_events.json
-rw-r--r-- 1 yoh yoh 4184 May 29 13:47 task-tomspunt_events.json
(dev3) yoh@typhon:/data/yoh/1076_spacetop/derivatives/bidsonym-1$ git clean -dfx; git reset --hard ; docker run -it --user $(id -u):$(id -g) -v $PWD:$PWD -w $PWD    bidsonym:local $PWD/../..  participant --deid mridefacer  --brainextraction bet --bet_frac 0.5 --skip_bids_validation --participant_label 0001 0133
Refusing to remove current working directory
HEAD is now at 1271716430 [DATALAD RUNCMD] Doing trial run with bleeding edge 0.0.5
Input data will not be checked for BIDS compliance.
Traceback (most recent call last):
  File "/opt/miniconda-latest/bin/bidsonym", line 33, in <module>
    sys.exit(load_entry_point('bidsonym', 'console_scripts', 'bidsonym')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/bidsonym-src/bidsonym/run_deeid.py", line 99, in run_deeid
    layout = BIDSLayout(args.bids_dir)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda-latest/lib/python3.11/site-packages/bids/layout/layout.py", line 135, in __init__
    root, description = validate_root(root, validate)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda-latest/lib/python3.11/site-packages/bids/layout/validation.py", line 75, in validate_root
    raise BIDSValidationError(
bids.exceptions.BIDSValidationError: 'dataset_description.json' is missing from project root. Every valid BIDS dataset must have this file.
Example contents of 'dataset_description.json':
{"Name": "Example dataset", "BIDSVersion": "1.0.2"}
@yarikoptic yarikoptic added the bug Something isn't working label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants