-
Notifications
You must be signed in to change notification settings - Fork 2
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
[bricks in progress] EstimateModel and EstimateContrast improvement #22
Comments
When the bricks will be improved, don't forget to make the documentation. |
In order to be able to run level1design, EstimateModel and EstimateContrast bricks for several subjects in a single project it seems necessary to add a sub-folder for the SPM.mat file and all others outputs (beta images, contrasts images .. ). For Level1design brick, it seems sufficient to add a For EstimateModel and EstimateContrast it is a little bit more complicated because there are no input in the Nipype process for the output folder. To bypass this issue, I set Others options could be:
|
A subdirectory of self.output_directory to differentiate results from different subjects/patients within a single project is becoming an increasingly important need. This need has already been explored for the CVR pipeline. For example, in bricks.preprocess.others.Resample_2. However, the problem becomes more complicated when bricks come from nipype/SPM bricks. There are indeed different machineries to take into account. SPM wants to put the results where SPM.mat is. Capsul wants to put the results in self.output_directory. I don't have the final solution, we'll have to study this issue quickly and have a global vision because the results of the SPM statistical bricks are used in the rest of the CVR pipeline (so the output changes for the SPM statistical bricks will have an impact on several other bricks). I don't remember exactly how self.output_directory is created and managed in capsul - populse_mia. It seems to me that we could keep the self.output_directory coming from capsul and modify it at each initialisation and run of a process in mia_processes. Beside that I'll be surprised that @denisri didn't have this need ? If yes how did you managed it @denisri ? @manuegrx, we can discuss this at our meeting tomorrow. |
Following our meeting yesterday it seems that the populse_mia machinery allows to use a subdirectory in output_directory. In some cases it would be necessary to store the results in a subdirectory in order to discern the results for several subjects/patients (e.g. if the process always uses the same output name - case of SPM.mat in SPM statistics processes - and when we want to iterate the pipeleine on several patients). I think the best would be to manage the subdirectory outside mia_processes (the process) at a higher level, I think populse_mia would be suitable. Before implementing this in populse_mia, we should think about the implications and side effects. A good solution might be to start by seeing what happens by doing it in mia_processes, so we can start testing the idea and see what happens. I also need to create output subdirectories in the CVR pipeline. We could start with a schema like output_directory/sub_name/foo1/foo2, where foo1 and foo2 would be managed at the process level and sub_name for the moment at the process (mia_processes) level then eventually by populse_mia. The question is what do we take as sub_name ? The first naive idea that comes to me is the patient/subject ref. I'm currently rewriting a lot of parts of the CVR pipeline, precisely on parts that need output_directory/sub_name. So we need to decide ASAP what to use (so we don't have to change it later if possible) in order to use the same standard. PatientName (or data_PatientName, or whatever!) is good for you @manuegrx ? |
I started using on my side: |
@servoz good for me ! |
This issue is still a WIP, but here is a quick update :
|
Update completed in a696172 For EstimateContrast, in Nipype it is necessary to define first T-contrast before to define a F-contrast. There is still few issues:
|
I added a ticket in mia for the Nipype issue #47 --> This ticket can be close, all the issue are in others tickets |
EstimateModel and EstimateContrast bricks need to be improve in order to be universal and to work with all fMRI data
The text was updated successfully, but these errors were encountered: