-
Notifications
You must be signed in to change notification settings - Fork 4
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
Generic export from minimal json file #44
base: master
Are you sure you want to change the base?
Conversation
… into export_from_json
Fails with test_twosample_twocond_cov3 test in SnPM
Hi @gllmflndn, I have successfully tested this code in conjunction with SnPM (https://github.com/nicholst/SnPM-devel/pull/45) and added the following updates:
Also, I wanted to get your feedback on the following:
Thank you in advance! Hopefully once we have solved these, the code will be ready for you to integrate in SPM. |
Hi @gllmflndn! Great! Thanks! I'm working on rebasing this update on master and will let you know as soon as it's ready (I had some conflicts related to integration with #47). |
@gllmflndn: I have an issue with our spm_group_mfx test case. There are more (i.e. 4 instead of 2) regressor names extracted from the design matrix than beta maps in the results folder. Is this behaviour as you would expect for such analysis?
In the SPM exporter code, I was relying on the fact that we would always have one regressor name per beta. Do you think this is something we could also have for MFX analyses in SPM? Thanks! |
@gllmflndn: the code is now rebased ready for your to go through. Let me know how the integration goes. Thanks! |
This PR refactors the SPM NIDM exporter and divide the code in two functions:
spm_results_nidm.m
: Gather all the informations form the SPM output directory and store them as a minimal NIDM-Results json filespm_nidmresults.m
: Create a NIDM-Results pack from any minimal json file. This function is generic and can be reused by other Matlab-based tools to create a NIDM-Results export.This will facilitate the creation of new exporters (e.g. for SnPM, cf. https://github.com/nicholst/SnPM-devel/pull/45).
@gllmflndn: how do you feel about those changes? Any feedback is very welcome! You can update the PR directly if you want to or just post comments here. Thank you!