help > Running multiple batches
Showing 1-1 of 1 posts
Display:
Results per page:
Jul 25, 2024  12:07 PM | Calvin Hew
Running multiple batches

Hello,


To take the load off my PC's resources, I want to process data in batches. So I am assuming we can do this by calling conn_batch(batch); iteratively in a for loop for example.


However, we have to define the filename using batch.filename = fullfile(adniDir, filename);


So if I want to use the same filename, it'll likely override the first batch. Is there a way to get the results of the first batch and combine it/append to the subsequent batches?


The reason I want to organise this is because I'm already processing my data under different groups - AD, MCI and CN so I don't necessarily want AD_batch1, AD_batch2, AD_batch3 etc.


If there isn't a way to save each batch intermediately during the processing, is there a simple way to combine the outputs? I'm noticed there is a lot of output after processing just one batch so having to manually sort them out into a combined folder is not ideal so if there is a logical way to automate this, please let me know.


Thank you!