-
Notifications
You must be signed in to change notification settings - Fork 90
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
Use PhysIO Toolbox to just denoise movement regressors #160
Comments
Dear Michael, indeed, you can run PhysIO for the motion models only. For your reference, I have attached a version SPM batch file of the Philips ECG3T example where the physiological logfiles and models are removed and just the realignment parameters and motion outliers included. It's an All the best, |
Dear Michael, somehow I cannot see the screenshot. Could you try to upload it to github again, please? I just reopened your issue. In general, did you include the Secondly, would you have the PhysIO batch editor file (preferably in Looking forward to your feedback, |
Hello Lars, I apologize for the inconvenience. I have attached both the screenshot I mentioned in the email as well as the MATLAB script I use to run the Toolbox. As I stated in the email, I expected to see the 6 motion regressors (as 6 additional columns) for each of the 7 sessions; however, the review only shows the conditions and modulators I specified in the model. I did use the multiple_regressors.txt file produced by the Toolbox script in my model specification, but that is what lead to the image you see below. The MATLAB script contains all the code I use to navigate to the appropriate directories and push the required files/parameters through the Toolbox. The settings I specify for the Toolbox can be found in lines 35-84. Let me know if you have any additional questions, and I will do what I can to help. Again, thank you for assisting me in this. Screenshot of 1st-level model after SPM estimation: ZIP file containing MATLAB script: Best, |
Dear Michael, the
Thank you! All the best, |
Hi Lars, Thank you for your response. Yes, the regressor files look as expected. I've attached two images from the imagesc output: one from a session where the subject moved very little and the other from a session where the subject moved a lot. (It goes without saying that I won't be including the session where they moved way too much.) Also, I apologize for not including the 1st-level GLM. I interpreted your previous message incorrectly and thought you only wanted the PhysIO file. Please see the .m file for the GLM below. The lines that are of interest to you are lines 430-439 and 614-618. That is where I specify the motion regressors for each of my sessions. Please let me know if I can help you in any other way. And thank you for your help. Best, Example imagesc output, little movement: (https://user-images.githubusercontent.com/68439785/139472934-a5400c39-72c2-4754-a870-b04a1c96d227.png) Example imagesc output, much movement: (https://user-images.githubusercontent.com/68439785/139473351-050cad09-7e95-4f83-bce1-a61a34b9d2d6.png) 1st-level GLM code: (https://github.com/translationalneuromodeling/tapas/files/7443720/run_1st_level_job_v1.zip) |
Dear Michael, you didn't misunderstand at all, my question about the GLM batch was a follow-up, because there was nothing conspicuous I could see in the PhysIO batch. Looking at the But I don't have the image files, so I cannot run your script myself, and some of the logic is a bit nested to understand without having the data. Would you be able to provide the Since you use
All the best, |
Hi Lars, Please see the matlabbatch file you requested attached below. I looked at this file myself and found that all of the multiple regressors were blank, which would explain the absence of these regressors in the 1st-level GLM. I opened the script with the SPM batch editor and manually added the regressor files and got the GLM below (it has the right number of regressors for each session), so it would appear that there is an issue in my code concerning how the script selects the regressor files (as you suspected). I'm looking now to see why the script isn't selecting the regressors and how to solve the issue. Thank you for all of your help thus far. matlabbatch.zip: (https://github.com/translationalneuromodeling/tapas/files/7462067/matlabbatch.zip) GLM with regressors: (https://user-images.githubusercontent.com/68439785/139881956-a7cacfb3-955b-4109-aa4f-029ac7b52407.png) Sincerely, |
[REDACTED]
The text was updated successfully, but these errors were encountered: