I encountered a KeyError while using qsirecon with the input-type set to ukb. Could you please offer some guidance on this issue? I would greatly appreciate any assistance. Thank you very much!
Command used (and if a helper script was used, a link to the helper script or the command generated):
Data formatted according to a validatable standard? Please provide the output of the validator:
PASTE VALIDATOR OUTPUT HERE
Relevant log outputs (up to 20 lines):
Traceback (most recent call last):
File "/opt/conda/envs/qsiprep/bin/qsirecon", line 8, in <module>
sys.exit(main())
File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/qsirecon/cli/run.py", line 42, in main
parse_args()
File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/qsirecon/cli/parser.py", line 501, in parse_args
layouts = create_layout(
File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/ingress2qsirecon/utils/functions.py", line 216, in create_layout
subject_layout.update(make_bids_file_paths(subject_layout))
File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/ingress2qsirecon/utils/functions.py", line 133, in make_bids_file_paths
if subject_layout['subject2MNI']:
KeyError: 'subject2MNI'
Actually, looking at your screenshot, those folder names look strange, and might require a bit of coding on my end to accommodate. Can you return a list of all the subject folders you have in new_ukb?
For reference, my folder names look like “1032959_2_0” and “1033428_2_0”, where I parse the subject ID as 1032959 and session ID as 0200 based on the underscore separation. I haven’t seen a 3 underscore subject folder before. But at the very least, the data organization within the folders looks okay (that is, the DWI data are in the right place), so I don’t think implementing changes will be too difficult.
Perhaps this has to do with how /when you acquired the UKB data. Mind sharing any details?
The unstable qsirecon branch should now have that PR merged, if you’d like to test. You may need to temporarily change the folder name to match the convention I showed above.
Hi Steven,
Thank you for pointing that out! This dataset was actually obtained through my supervisor’s application, but I’m not entirely clear on the specifics, such as when or how it was acquired. I’ll follow up and communicate with you if I learn more details. Apologies for the late reply!
The unstable qsirecon branch should now have that PR merged, if you’d like to test. You may need to temporarily change the folder name to match the convention I showed above.
Thank you for the update! I’ll give it a try
By the way, I’d like to ask: when using qsirecon with MRtrix methods for reconstruction, does it estimate a separate response function for each subject image? Or is it possible for qsirecon to estimate a mean response function across all or a subset of subjects, and then use this unified response function for subsequent reconstruction steps for all subjects? From my understanding, using a unified response function could facilitate better comparability of results between subjects. Does qsirecon provide such an option?