help > CONN batch scripting: issue in preprocessing of added subjects
Showing 1-3 of 3 posts
Display:
Results per page:
Nov 15, 2023  02:11 PM | Riccardo Bonafini
CONN batch scripting: issue in preprocessing of added subjects

Hi everyone, 


I'm working on a project involving pre- and post-training comparison of functional connectivity using CONN toolbox. I decided to script my analysis and I'm having some issues with it. Precisely, I had already preprocessed 3 subjects and decided to add 4 more, during the preprocessing of these new subjects the program got stuck and crashed. My question is: How can I finish preprocessing the 4 new subjects without risking to modify the already-existing subjects' files? 


My first guess would be to delete the new subjects' preprocessing steps that took place and simply re-run all the steps altogether; but, unfortunately in batch scripting I have no clue how to do it.


As now, my only guess is to create a new project for each subject and then merge the projects together using conn_merge() function. 


Any help would be sincerely appreciated :)

Nov 26, 2023  05:11 PM | Alfonso Nieto-Castanon - Boston University
RE: CONN batch scripting: issue in preprocessing of added subjects

Hi Riccardo,


If your batch script is only running preprocessing (e.g. importing those 4 subjects' data was done either using a different script or from the GUI) then simply select in batch.subjects the subjects that you want to continue running preprocessing (e.g. the 4 new subjects), and select in batch.Setup.preprocessing.steps the remaining preprocessing steps (the step where it crashed last time and any steps after that). 


Best


Alfonso


Originally posted by Riccardo Bonafini:



Hi everyone, 


I'm working on a project involving pre- and post-training comparison of functional connectivity using CONN toolbox. I decided to script my analysis and I'm having some issues with it. Precisely, I had already preprocessed 3 subjects and decided to add 4 more, during the preprocessing of these new subjects the program got stuck and crashed. My question is: How can I finish preprocessing the 4 new subjects without risking to modify the already-existing subjects' files? 


My first guess would be to delete the new subjects' preprocessing steps that took place and simply re-run all the steps altogether; but, unfortunately in batch scripting I have no clue how to do it.


As now, my only guess is to create a new project for each subject and then merge the projects together using conn_merge() function. 


Any help would be sincerely appreciated :)



 

Nov 27, 2023  05:11 PM | Riccardo Bonafini
RE: CONN batch scripting: issue in preprocessing of added subjects

Hi Alfonso,


Thank you so much for your reply, it has been of invaluable help! 


I have another question regarding how to make the analysis using conn_batch. Particularly, I do not know how I should create the batch if my subjects have already been preprocessed. Do I need to add particular files to it?


Thanks in advance 


Riccardo