-
Notifications
You must be signed in to change notification settings - Fork 132
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
DWI bids compliant but MRIQC cannot process #1302
Comments
@dkp |
@araikes I sent you a separate email sharing the dataset. |
The offending component (at least for the dataset shared) is the computation of EFC on the b=0 shell. It encounters an invalid value in the computation:
which results in a nan for that shell (truncating the whole line for visibility):
And then the JSON writer can't figure out how to deal with the NaN when expecting a double. I haven't figured out what the offending value in the image is. There don't appear to be any unusual or invalid values as far as I can tell and I can manually compute the EFC for each of the two b=0 images independently (in their raw, unprocessed state... just loading the data, creating the framemask, and computing as per the code in |
This is older data, if that helps at all. Thanks for looking into it. |
Hi, I'm running into the same issue as above with my dwi data. Error: Traceback: Finished subject SOARTravel01 20240524CCH15 My data is new, and BIDS compliant. Going to try using an older version of MRIQC for now without DWI processing. DWI doesn't seem to be working for now. |
You can just set the -m (modality flag): -m T1w bold |
Hi, Noted. Will do that for anat and func files. Thanks. --Subbi M. |
I am having a similar error (see here for the crash report and error), but I do not have DWI scans. The problem for me seems to be the Any idea from where this nan comes from? I am running mriqc on a dataset preprocessed with fMRIprep – could this be the cause? |
Facing the same issue with DWI images. Any update on the issues? Thanks. |
@pradhanhitesh I'm also having the same issue. On a different note does the new version of MRIQC take forever to run for some people. I set my SBATCH time limit to be 15 hours and it crashed because the time limit expired. What version is everyone else using for now? |
I'm now running 24.0.1: It pretty fully implements the dwi report (just some little issues). I've never seen the time issue you mention. |
I have the latest docker image for MRI-QC. It's true that DWI QC Reports are generated but for few DWI images, there seems to be an error (the NaN value and subsequent JSON encoding). I'm running QC for T1w, bold and DWI for 1600 subjects for my study. When I ran the QC, most of the time it crashed. Therefore, I'm forced to run the QC in a batch of 20. In these batches of 20, there are few DWI files which are producing the NaN errors and therefore I'm not able to generate reports. |
Interesting, I ran 50 subjects and lost about 25% of them because of the dwi report. |
I ran the subjects again using 24.0.1 (MRIQC v24.1.0.dev0+g5c3f8b6e.d20240820), but encountered more problems. I am attaching two SLURM logs. The first (runmriqc_dev_array_subjects-3.txt) is a subject that succeeded with 24.0.0, but failed to generate any output for 24.0.1. The second is a subject that failed both times (runmriqc_dev_array_subjects-4.txt), and which reports the "ValueError: Out of range float values are not JSON compliant: nan" error. |
Replaces the standard `json` library with `orjson`, which is way faster and more reliable in terms of encoding numpy objects (the main issue we typically hit within *MRIQC*). Incidentally, this PR fixes an import of `simplejson`, which was not listed as a dependency. Related-to: #1302. Closes: #546. Closes: #1089. Closes: #1133.
dwi reports for all subjects are now being generated! Thank you |
What happened?
I'm trying MRIQC on 50 subjects on the HPC using apptainer. Most subjects run fine for all three modalities at once:
T1w, bold, dwi
. However, some crashed.To investigate, I ran a subject with
-m T1w bold
This ran fine and produced reports for those 2 modalities.Then I ran with
-m dwi
and this one crashed. See log below.What command did you use?
What version of the software are you running?
Running MRIQC version 24.1.0.dev0+g3fe90466.d20240417
How are you running this software?
Singularity
Is your data BIDS valid?
Yes
Are you reusing any previously computed results?
No
Please copy and paste any relevant log output.
Additional information / screenshots
No response
The text was updated successfully, but these errors were encountered: