nipreps / mriqc

Automated Quality Control and visual reports for Quality Assessment of structural (T1w, T2w) and functional MRI of the brain
http://mriqc.readthedocs.io
Apache License 2.0
300 stars 132 forks source link

Running group produces "KeyError: 'dwi'" #1128

Closed jbwexler closed 10 months ago

jbwexler commented 1 year ago

What happened?

The group reports are still created but it produces the error below. This occurred on two separate datasets.

What command did you use?

mriqc /corral-repl/utexas/poldracklab/data/OpenNeuro/raw/ds001555 . group -w /corral-repl/utexas/poldracklab/data/OpenNeuro/mriqc/work/ds001555

What version of the software are you running?

23.1.0

How are you running this software?

Other

Is your data BIDS valid?

No

Are you reusing any previously computed results?

No

Please copy and paste any relevant log output.

> Traceback (most recent call last):
>   File "/work2/03201/jbwexler/frontera/anaconda3/envs/mriqc/bin/mriqc", line 8, in <module>
>     sys.exit(main())
>   File "/work2/03201/jbwexler/frontera/anaconda3/envs/mriqc/lib/python3.10/site-packages/mriqc/cli/run.py", line 206, in main
>     dataframe, out_tsv = generate_tsv(output_dir, mod)
>   File "/work2/03201/jbwexler/frontera/anaconda3/envs/mriqc/lib/python3.10/site-packages/mriqc/utils/misc.py", line 181, in generate_tsv
>     jsonfiles = list(output_dir.glob("sub-*/**/%s/sub-*_%s.json" % (IMTYPES[mod], mod)))
> KeyError: 'dwi'

Additional information / screenshots

No response

araikes commented 1 year ago

Probably related to #1125

askieslinger commented 1 year ago

I am also running into this error and I don't even have any dwi data.

oesteban commented 1 year ago

Was this not fixed by #1148?

celprov commented 10 months ago

@oesteban yes it should be resolved.

abfeld007 commented 10 months ago

Hi I am running MRI v23.1.0, but I still got the 'dwi' error when I am not using any DWI files (and my dataset passed the bids validator).

Traceback (most recent call last): File "/opt/homebrew/bin/mriqc", line 8, in sys.exit(main()) ^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/mriqc/cli/run.py", line 206, in main dataframe, out_tsv = generate_tsv(output_dir, mod) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/mriqc/utils/misc.py", line 181, in generate_tsv jsonfiles = list(outputdir.glob("sub-*/*/%s/sub-%s.json" % (IMTYPES[mod], mod)))


KeyError: 'dwi'