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

Fixing admba #322

Merged
merged 6 commits into from
Aug 8, 2024
Merged

Fixing admba #322

merged 6 commits into from
Aug 8, 2024

Conversation

viktorpm
Copy link
Contributor

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

What does this PR do?

Fixes admba meshes and annotations mismatch, implements pooch to handle atlas downloading

How has this PR been tested?

Tested locally, and atlases were regenerated on the HPC

Is this a breaking change?

No

Does this PR require an update to the documentation?

No

Checklist:

  • The code has been tested locally
  • Tests have been added to cover all new functionality (unit & integration)
  • The documentation has been updated to reflect any changes
  • The code has been formatted with pre-commit

Result of mob-programming!

Co-authored-by: Viktor Plattner <[email protected]>
Co-authored-by: sfmig <[email protected]>
@alessandrofelder
Copy link
Member

Hey @viktorpm
I'll let you continue on this after the various debugging sessions last week (thanks also to @sfmig for maths help, and to @niksirbi for helpful anatomical eyeballing 😁 )

I haven't changed all the resolutions in the config yet, but we have concluded that

  • for anisotropic atlases that don't come in ASR, we need to keep track of resolution in source space (to scale mesh points correctly) and in target space (to write output metadata correctly)
  • the ADMBA are in RSA according to our convention
  • as part of Refactor scripts to simplify code base as much as possible #219 we should generate the mesh points from the transformed annotation stack (ie in target space)
  • for now, we've implemented a hacky way of dealing with this that won't affect other atlases.

@@ -314,8 +319,13 @@ def create_atlas(
species="Mus musculus",
atlas_link="https://search.kg.ebrains.eu/instances/8ab25629-bdac-47d0-bc86-6f3aa3885f29",
atlas_file_url="https://data.kg.ebrains.eu/zip?container=https://object.cscs.ch/v1/AUTH_4791e0a3b3de43e2840fe46d9dc2b334/ext-d000023_3Drecon-ADMBA-E11pt5_pub",
orientation="lsa",
resolution=(16, 16, 20),
orientation="rsa",
Copy link
Member

Choose a reason for hiding this comment

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

This is the correct way around, others need to be adapted!

Copy link
Member

@alessandrofelder alessandrofelder left a comment

Choose a reason for hiding this comment

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

Amazing - thank you @viktorpm

@alessandrofelder alessandrofelder merged commit c1e80ee into main Aug 8, 2024
11 of 13 checks passed
@alessandrofelder alessandrofelder deleted the fixing_admba branch August 8, 2024 13:54
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.

None yet

2 participants