Skip to content

Align FIB and tomography images - #280

Merged
tieneupin merged 16 commits into
mainfrom
align-fib-tomo-images
Jul 13, 2026
Merged

Align FIB and tomography images#280
tieneupin merged 16 commits into
mainfrom
align-fib-tomo-images

Conversation

@tieneupin

@tieneupin tieneupin commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Further updates to the image correlation service's functionality.

  • Adds more optional keys to the Pydantic model so that the image paths, pixel sizes, visit names, experiment types, and save directory can be directly injected as part of a manually constructed message. For ISPyB usage, these same values will be generated and constructed from the ISPyB queries performed
  • Modified the ISPyB database query so that the Proposal and BLSession are also returned, from which the visit names can then be constructed
  • Adds a utility function to the shared image processing module that crops the image around the center
  • Applies the image alignment algorithm for the FIB + tomo case using values empirically determined for a target pixel size of 4e-6. Currently, it will save the image processing output to a folder named after the moving image's visit name and atlas file name. e.g. ".../cm12345-1/processed/correlation/cm12345-2/atlas/..."

tieneupin added 4 commits July 6, 2026 13:24
- Updated ISPyB query to also return the Proposal and BLSession tables
- Added 'save_dir' as an optional key to the AlignImagesParameters Pydantic model; this allows us to use the service with images that haven't been registered into ISPyB, which would facilitate testing"
- Implemented image registratino for the FIB-TEM case, and saves output images and tables to a new folder under the reference image's 'processed' directory
@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.69072% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.18%. Comparing base (8e738b3) to head (c8d91eb).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #280      +/-   ##
==========================================
+ Coverage   83.14%   83.18%   +0.03%     
==========================================
  Files          75       75              
  Lines        9334     9415      +81     
  Branches     1268     1272       +4     
==========================================
+ Hits         7761     7832      +71     
- Misses       1080     1088       +8     
- Partials      493      495       +2     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

tieneupin added 6 commits July 7, 2026 11:49
- Make all keys in the AlignImagesParameters model optional
- Add pixel size and experiment type keys to the model
- Adjust the service logic so that the if the two atlas IDs are provided, it will get the image paths, pixel sizes, and save directory using ISPyB values; if not, it will the values provided in the Pydantic model (all relevant values must be provided)
@tieneupin
tieneupin marked this pull request as ready for review July 7, 2026 15:42
@tieneupin tieneupin self-assigned this Jul 7, 2026
@tieneupin tieneupin added the enhancement New feature or request label Jul 7, 2026
Comment thread src/cryoemservices/services/correlative_align_images.py Outdated
Comment thread src/cryoemservices/services/correlative_align_images.py Outdated
Comment thread src/cryoemservices/services/correlative_align_images.py Outdated
@tieneupin
tieneupin merged commit 5a7beb3 into main Jul 13, 2026
12 checks passed
@tieneupin
tieneupin deleted the align-fib-tomo-images branch July 13, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants