Skip to content

Conversation

@stephen-riggs
Copy link
Contributor

@stephen-riggs stephen-riggs commented Jun 26, 2025

Registers the locations of SearchMaps and BatchPositions for tomography data collection.
This requires reading the SearchMap.dm and .xml files, and the BatchPositionsList.xml, plus finding the atlas in the Session.dm

The logic for converting from stage coordinates to pixel positions is non-trivial and does not work perfectly.
For the Krios microscopes with FALCON and K3_FLIPX cameras it appears to give reasonably accurate values (with some ambiguity over whether "zero" is top-left or bottom-left which may need fixing), but for the Talos with K3_FLIPY it does not currently work.

The Murfey database has a new table for SearchMaps and the TiltSeries table now has positions. For ispyb the SearchMaps are inserted as GridSquares. TiltSeries location inserts will be done as part of the em-tomo-align recipe.

@codecov
Copy link

codecov bot commented Jun 27, 2025

Codecov Report

Attention: Patch coverage is 49.55224% with 169 lines in your changes missing coverage. Please review.

Project coverage is 32.38%. Comparing base (4d783a7) to head (538ef47).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #616      +/-   ##
==========================================
+ Coverage   31.86%   32.38%   +0.52%     
==========================================
  Files          90       92       +2     
  Lines       10762    11095     +333     
  Branches     1422     1460      +38     
==========================================
+ Hits         3429     3593     +164     
- Misses       7215     7377     +162     
- Partials      118      125       +7     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stephen-riggs stephen-riggs self-assigned this Jul 3, 2025
@stephen-riggs stephen-riggs added the tomography Part of CryoET workflows label Jul 3, 2025
@stephen-riggs stephen-riggs marked this pull request as ready for review July 3, 2025 11:19
Copy link
Contributor

@tieneupin tieneupin left a comment

Choose a reason for hiding this comment

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

Looks good overall!

@tieneupin
Copy link
Contributor

With the latest changes, the test workflow now runs on the incompatible tomo dataset, with the missing values replaced with inaccurate arbitrary ones. This should be safe to merge.

@stephen-riggs stephen-riggs merged commit 59d2aa4 into main Jul 10, 2025
17 checks passed
@stephen-riggs stephen-riggs deleted the tomo-metadata branch July 10, 2025 13:46
stephen-riggs added a commit to DiamondLightSource/cryoem-services that referenced this pull request Jul 17, 2025
Connects to DiamondLightSource/python-murfey#616

The location and ID of the search map for a tomogram will be send in the alignment message, and this inserts those into ispyb with the tomogram.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tomography Part of CryoET workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants