I am running MRIQC version 23.1.0rc0. The problem that I am running into is that the group level analysis requires and queries the bids_dir. In my case, the bids_dir will have some validation issues that are known. In the output_dir I have all of my individual subjects MRIQC outputs (those without errors are not included). So I am only trying to run the summary on these that I have output. Given the MRIQC queries and requires the bids_dir, I get an error.
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:
Relevant log outputs (up to 20 lines):
Does anyone have a workaround that they have used? I tried adding --participants-labels ${sub}, whereby sub is a list of IDs without prefix βsub-β (sub=$(cat ${dir}/mriqc_completed.csv | awk -F'\t' '{ print $1 }')) but that gave me an error
mriqc: error: Querying BIDS dataset at </bids_dir> got an empty result.
Even though the $sub value is a space separated variable of the IDs
One workaround to try is making a fake BIDS directory containing just symlinks/shortcuts with subject data you want to analyze, and then running MRIQC on that. That way it will not be taking up much extra space on your system (presumably a HPC if you have 10k subjects). Just make sure to bind the original and symlinked drives in Singularity.
Thanks for the recommendation, Steven! When you say βjust make sure to bind the original and symlinked drives in singularityβ, what do you mean by that? Sorry, semi-singularity newb.
singularity run -e -B ${original_bids_dir},${fake_bids_dir}
Basically, you will input your fake directory to be analyzed, but Singularity needs to be able to find the original data (i.e. the target of the shortcuts), so both drives need to be available.
Created the symbolic links using: for folder in $(find ${input}/${sub}/ses-${ses} -mindepth 1 -maxdepth 1 -type d -not -name "dwi" ) ; do ln -s "$folder" "${sub}/ses-${ses}/"; done; done
Got an error similar to when using the --participant-labels, e.g., mriqc: error: Querying BIDS dataset at </bids_dir> got an empty result. Please, check out your currently set filters. Retrying atm by removing the --session_id
Perhaps something wrong with my singularity command?
Can you try running singularity shell into your container (using the same -e and -B arguments) and do ls /bids_dir and see if your BIDS folder shows up as expected?
Ah so hereβs the thing. Your symlinks may be pointing to something with full path of your original bids directory, BUT in the container, the path is renamed! Try not renaming your directories when you bind in your singularity command.