Skip to content
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

Prototype workflow #4

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

Leengit
Copy link
Collaborator

@Leengit Leengit commented Dec 11, 2024

This is a collection of Jupyter lab notebooks and corresponding plain Python files. The most recent / most interesting of them is nilearn_prototype.ipynb. It has code with comments that give details for multiple steps of a workflow to predict voxel values in "md" and "fa" images from "tested variables" (these are KSADS variables in our case) and "confounding variables" (these are "interview_age" and similar in our case). Slices of the output are displayed to show the location of voxels that are good at being predicted by the tested and confounding variables.

We use nilearn.mass_univariate.permuted_ols() to compute the needed linear regressions.

Yet to be included in this pull request:

  1. Make the threshold-free cluster enhancement (TFCE) option work in permuted_ols().
  2. Convert confounding variables that should be one-hot to that representation.

The nilearn_prototype.ipynb Jupyter lab also includes TODO: comments that should be considered for subsequent pull requests, or high-priority ones can be included in this pull request -- please add comments to this discussion.

@Leengit
Copy link
Collaborator Author

Leengit commented Dec 11, 2024

It looks like I need permissions for this repository, to add assignees, reviewers, etc.

@ebrahimebrahim
Copy link
Member

It looks like I need permissions for this repository, to add assignees, reviewers, etc.

permissions added!

@ebrahimebrahim
Copy link
Member

Better not to commit the ipynb files, just commit the py files. THe ipynb you can always export to html output or similar and upload to google drive, if you just want to share output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants