Skip to content
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

FIX: Better fix to the multi-argument --participant-label issue #1026

Merged
merged 1 commit into from Aug 24, 2022

Conversation

oesteban
Copy link
Member

Indeed, when I was feeding the output of a python script within a bash loop, the --participant-label argument was picking several identifiers as a single input:

IFS=$'\n'; for i in $( python groups.py ); do mriqc /data/datasets/ds002790/ /data/derivatives/ds002790/mriqc-22.0.5 participant -m T1w --participant-label $i --nprocs 32 --omp-nthreads 16 --verbose-reports -w work --dsname AOMIC2 -vv --bids-database-dir /data/derivatives/ds002790/.bids/; done

The output of python groups.py is of this sort:

0117 0118 0119 0120
0121 0122 0123 0124
0125 0126 0127 0128
0129 0130 0131 0132
0133 0134 0135 0136
0137 0138 0139 0140
0141 0142 0143 0144

The idea is to run four subjects within each loop.

This bugfix is a more robust solution.

Revises: #1025.

/cc @mgxd @effigies

Indeed, when I was feeding the output of a python script within a bash
loop, the ``--participant-label`` argument was picking several
identifiers as a single input.

This bugfix is a more robust solution.

Revises: #1025.
@oesteban oesteban merged commit 091b22f into master Aug 24, 2022
@oesteban oesteban deleted the fix/participant-label-parsing-2 branch August 24, 2022 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant