parallelize_matlabbatch

This script loads selected SPM batch, tries to intelligently guess which fields are potential candidates for “parallel splits” and after interactively asking for confirmation:

splits your batch into multiple .mat, .m and .sh files (placing them in the same directory as the original batch) – the latter being ready for submission to Sun Grid Engine queue, e.g.:

for i in *.sh; do qsub $i; done

Splits are done 1:1, meaning that all the fields you select must have the same size. Tested with: NewSegment, Run DARTEL (existing Templates) and Normalize to MNI Space but has much more generic potential! Enjoy!

DOWNLOAD: parallelize_matlabbatch.zip

Leave a Reply

Your email address will not be published. Required fields are marked *