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

FIX: orientation of visualisations when species == "rat" #1027

Merged
merged 4 commits into from Mar 10, 2023

Conversation

eilidhmacnicol
Copy link
Collaborator

@eilidhmacnicol eilidhmacnicol commented Aug 25, 2022

Usually, rodent brains are viewed in the coronal orientation, as is the convention from physical atlases.

This updates the mosaic viz functions to change the orientation when species == rat: coronal becomes the primary axis (instead of axial), while axial becomes the secondary axis (instead of sagittal)

@pep8speaks
Copy link

pep8speaks commented Aug 25, 2022

Hello @eilidhmacnicol, Thank you for updating!

Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally, pip install flake8 and then run flake8 niworkflows.

Comment last updated at 2022-08-29 16:17:15 UTC

@eilidhmacnicol
Copy link
Collaborator Author

eilidhmacnicol commented Aug 25, 2022

Tested in docker container and seems to work nicely for example data (n = 1):

image

Copy link
Member

@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.

Is this waiting on me?

mriqc/workflows/anatomical.py Outdated Show resolved Hide resolved
@oesteban
Copy link
Member

Let's keep mriqc/workflows/{anatomical,functional}.py in this PR and move the other two files over to nireports. I've just done the porting of those two.

oesteban added a commit to nipreps/nireports that referenced this pull request Mar 9, 2023
Makes ``plot_mosaic`` more configurable to decide what view(s) are to be
plotted, and which one will be the main view.

Related: nipreps/mriqc#1027.
Resolves: #1.

Co-authored-by: Eilidh MacNicol <54267723+eilidhmacnicol@users.noreply.github.com>
oesteban added a commit to nipreps/nireports that referenced this pull request Mar 9, 2023
Makes ``plot_mosaic`` more configurable to decide what view(s) are to be
plotted, and which one will be the main view.

Related: nipreps/mriqc#1027.
Resolves: #1.

Co-authored-by: Eilidh MacNicol <54267723+eilidhmacnicol@users.noreply.github.com>
oesteban added a commit to nipreps/nireports that referenced this pull request Mar 9, 2023
Makes ``plot_mosaic`` more configurable to decide what view(s) are to be
plotted, and which one will be the main view.

Related: nipreps/mriqc#1027.
Resolves: #1.

Co-authored-by: Eilidh MacNicol <54267723+eilidhmacnicol@users.noreply.github.com>
@oesteban oesteban merged commit 4e52c69 into nipreps:master Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done (To be released)
Development

Successfully merging this pull request may close these issues.

None yet

3 participants