Hi – I suspect I’m just using datalad run
incorrectly, but I’m having trouble using it on files that I’ve already saved because they’re locked. I was hoping the --input
flag in datalad run
would solve this, but it looks like that command only gets files that aren’t in the dataset. Here’s my basic workflow, which might need revision!
- generate bids data with heudiconv
- save results:
datalad save . -m "add bids data for sub-${sub}"
- preprocess:
datalad run -m "preprocess sub-${sub}" --input "bids/sub-${sub}/*" --output "derivatives/fmriprep/*" "bash code/run_fmriprep.sh ${sub}"
When I run things like that, it can’t find the input files because they remain locked. If I label my input as my output (i.e., --output "bids/sub-${sub}/*"
), it works fine since it unlocks the files in the bids directory. But, clearly this is not what I’m supposed to be doing, so any guidance or clarification would be much appreciated.
Thanks!
David