-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add load confounds #20
Conversation
…prev version pd df)
…essor_names -> denoising_strategy
Add load confounds
…ate_report for now
… is to use whole file
…egrated load_confounds, ready for PR, major changes: regressors are now numpy array NOT pandas dataframe, README.md examples use denoising_strategy Params6 instead of regressor_names. TODO: add denoising_strategy vs regressor_names explanation to README.md, fix labels for plot (no longer provided by dataframe, replaced w/ numerical labels), reports not working (even on master branch) need to investigate.
Thanks for the update! RE: Reports not working (even on master branch) need to investigate: |
Okay, been doing some thinking. We might be doing ourselves a disservice by juggling * this might be weird for fmriprep, given just how many confound regressors there are in the files. But people using custom preprocessing pipelines might have only the regressors they need in the regressor files. This is often the case in our lab when we aren't using fmriprep |
I can share my changes to your branch on here. Mind you, because of I think this approach minimizes the changes we have to make to the codebase |
Because everything is now in one parameter, _make_denoiser and _set_denoiser have been removed. The logic inside _make_denoiser has been moved all into the set_regressors method. It's a lot simpler because there are now fewer combinations of inputs. `_load_from_strategy` handles the possibility that a strategy is not possible, and returns a dataframe to keep it consisent with how it was before (I think this way we're not left patching up weird downstream bugs in the report, etc). There are also some minor stylistic changes I included that I didn't catch when I made the original code. Seems to work locally for me, but would be good to build up the test suite for this.
See previous commit message. This includes the cli changes for the new regressors argument. Also raises a warning when using `regressor_names`, so that there this is at least some backwards compatibility
Okay so I made changes to |
@harveyaa could you pull the current commits and then add |
Excellent! Didn't know that I could resolve conflicts directly on here. So, nevermind my previous comment. |
Updated the README.md and example config file. All LGTM, will merge. |
Hi Dan :)
Sorry for not being in touch for a minute, I implemented what we discussed in the issue this is a summary of where things are at: