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

[ENH] Drop all ICA/MELODIC work. Expect individual files. #48

Merged
merged 15 commits into from
Sep 29, 2021

Conversation

tsalo
Copy link
Member

@tsalo tsalo commented Sep 15, 2021

Closes #27. I think this will bring us a lot closer to an MVP for fMRIPrep integration.

Changes proposed in this pull request:

  • Add individual required files to workflow parameters.
  • Remove option for a FEAT directory or a MELODIC directory, and do not perform ICA, BET, etc. in workflow.

aroma/aroma.py Outdated Show resolved Hide resolved
@tsalo tsalo marked this pull request as ready for review September 16, 2021 17:48
Copy link
Collaborator

@eurunuela eurunuela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you @tsalo

@tsalo
Copy link
Member Author

tsalo commented Sep 16, 2021

Thanks! The only other thing I think we need before merging is @oesteban's thoughts. Unfortunately, I can't request a review from him, so tagging will have to suffice.

@eurunuela
Copy link
Collaborator

Thanks! The only other thing I think we need before merging is @oesteban's thoughts. Unfortunately, I can't request a review from him, so tagging will have to suffice.

Since this PR is delaying #46 , why don't we merge if @oesteban has no comments by this Friday? If he has any comments, we could also address them after this PR is merged.

Copy link

@oesteban oesteban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just have a nit-pick about assertions. My review is pretty shallow, and honestly I haven't tried to follow the logic through. However, the fact that this PR is simplifying the codebase a lot (514 delete vs. 142 adds) is very much needed. I think this is the right move to escape away from the cohesiveness of the original AROMA implementation with MELODIC.

aroma/aroma.py Outdated
motion_params = utils.load_motpars(mc, source=mc_source) # T x 6
mixing = np.loadtxt(mixing) # T x C
component_maps = nib.load(component_maps) # X x Y x Z x C
assert mixing.shape[1] == component_maps.shape[3], f"{mixing.shape}, {component_maps.shape}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These assertions within the executed code (i.e., not a test) should be better raised as python errors. The reason is that an error is much more informative of what happened (e.g., a ValueError in this particular line because the mixing and component dimensions do not match, or a FileNotFoundError are way more clear than assertion errors and a description that might be more or less informative)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fair. I replaced the assertions outside of tests in 9633a32.

@tsalo
Copy link
Member Author

tsalo commented Sep 29, 2021

@eurunuela CI is passing, so do you mind if I merge?

@eurunuela
Copy link
Collaborator

@eurunuela CI is passing, so do you mind if I merge?

Go ahead!

@tsalo tsalo merged commit f6def49 into ME-ICA:main Sep 29, 2021
@tsalo tsalo deleted the drop-ica branch September 29, 2021 18:25
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.

Drop MELODIC step
3 participants