Skip to content

Wing disc atlasapi script #595

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Conversation

Skxsmy
Copy link
Contributor

@Skxsmy Skxsmy commented Jun 25, 2025

Before submitting a pull request (PR), please read the contributing guide.

Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?
Add a new script for packaging wing disc atlas
What does this PR do?
Packaging the newly made wing disc atlas

How has this PR been tested?

locally

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

@alessandrofelder alessandrofelder self-requested a review July 9, 2025 09:52
@alessandrofelder alessandrofelder marked this pull request as ready for review July 9, 2025 09:52
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.

Once we decide what to name the atlas, the script should be renamed accordingly, but otherwise looks great - thanks @Skxsmy

Mostly updating of the docstrings is needed.

Could you share the wingdisc_annotations.txt file with me, please, so I can run it locally too and check that it works on a different machine too?

Comment on lines +14 to +22
# Copy-paste this script into a new file and fill in the functions to package
# your own atlas.

### Metadata ###

# The minor version of the atlas in the brainglobe_atlasapi, this is internal,
# if this is the first time this atlas has been added the value should be 0
# (minor version is the first number after the decimal point, ie the minor
# version of 1.2 is 2)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# Copy-paste this script into a new file and fill in the functions to package
# your own atlas.
### Metadata ###
# The minor version of the atlas in the brainglobe_atlasapi, this is internal,
# if this is the first time this atlas has been added the value should be 0
# (minor version is the first number after the decimal point, ie the minor
# version of 1.2 is 2)

And either remove or correct any comments that are not accurate (copy-pasted from the template script).

Copy link
Contributor Author

Choose a reason for hiding this comment

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


# The orientation of the **original** atlas data, in BrainGlobe convention:
# https://brainglobe.info/documentation/setting-up/image-definition.html#orientation
ORIENTATION = "asr"
Copy link
Member

Choose a reason for hiding this comment

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

We need to think about orientation! Is this correct?

"asr" stand for Anterior-Superior-Right, and specifies the location of pixel 0,0,0 of the template image. We have a left wing, I think? Where is pixel 0,0,0 in the image, with respect to the body of the drosophila larva?

Copy link
Member

Choose a reason for hiding this comment

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

Following our internal discussions, I think our best approximation of the orientation is "ras" here. Assumptions around this

  • the line from the centre of the pouch to the centre of the notum points towards anterior
  • the tip of this left wing points slightly medially, ie to its right.
  • the wingdisc plane is approximately flat and parallel to the "back" of the larva
  • the peripodium is dorsal to the rest of the wingdisc

@alessandrofelder
Copy link
Member

Documenting our internal discussions that we have settled on drosophila_wingdisc_instar3 for the atlas name, so this script should be named drosophila_wingdisc_instar3.py.

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