I'm trying to call "Import FreeSurfer grey/white segmentation to Morphologist" from a Python script, but I don't know how to get the links propagated.
If I use the BrainVISA interface, I can select T1_orig and T1_output only, and all the other linked parameters are filled automatically.
How do I get the same thing from a script, using runProcess?
Code: Select all
self.brainvisaContext.runInteractiveProcess(None, 'Import FreeSurfer grey/white segmentation to Morphologist', T1_orig=..., T1_output=...)
self.brainvisaContext.runProcess('Import FreeSurfer grey/white segmentation to Morphologist', T1_orig=..., T1_output=...)
Code: Select all
processImport = getProcessInstance('Import FreeSurfer grey/white segmentation to Morphologist')
processImport.setValue('T1_orig', ...)
processImport.setValue('T1_output', ...)
self.brainvisaContext._processExecution(processImport)
Code: Select all
Process Import FreeSurfer grey/white segmentation to Morphologist started on
2018/05/18 18:52
Convert .mgz to .nii with FreeSurfer
ERROR in Import FreeSurfer grey/white segmentation to Morphologist 1 FreeSurfer
not available or one freesurfer command line has failed. Please see the log file
in the main menu of BrainVISA for more information.
Thanks
François