Skip to content

Add recipe and tomogram processing for B24 SXT tomogram alignment#203

Merged
stephen-riggs merged 14 commits intomainfrom
b24-recipe
Apr 13, 2026
Merged

Add recipe and tomogram processing for B24 SXT tomogram alignment#203
stephen-riggs merged 14 commits intomainfrom
b24-recipe

Conversation

@stephen-riggs
Copy link
Copy Markdown
Contributor

@stephen-riggs stephen-riggs commented Oct 17, 2025

DLS B24 runs cryo-SXT which is compatible with AreTomo3, denoising and segmentation. This PR adds in SXT support to the AreTomo service. Imod batchruntomo support will be a separate PR.

This adds capacity to read in a txrm file using txrm2tiff and then align it in AreTomo3. Less information needs to be provided as pixel size and angles are in the txrm file. It also behaves a little differently as the txrm is already a stack so tilt stacking is not needed, but mrc conversion is needed.

Reconstruction is set to use WBP as SART seems to work less well.

The pixel size is artificially set to 10A after processing so that the segmentation does not attempt to upscale.

Currently external reference images are not supported.

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 17, 2025

Codecov Report

❌ Patch coverage is 75.64103% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.84%. Comparing base (8a360af) to head (ca7c879).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #203      +/-   ##
==========================================
- Coverage   83.85%   83.84%   -0.02%     
==========================================
  Files          68       68              
  Lines        8618     8664      +46     
  Branches     1160     1170      +10     
==========================================
+ Hits         7227     7264      +37     
- Misses        954      961       +7     
- Partials      437      439       +2     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stephen-riggs stephen-riggs changed the title Add recipe for B24 tomogram alignment Add recipe and tomogram processing for B24 tomogram alignment Dec 9, 2025
@stephen-riggs stephen-riggs marked this pull request as ready for review December 9, 2025 15:05
@stephen-riggs stephen-riggs changed the title Add recipe and tomogram processing for B24 tomogram alignment Add recipe and tomogram processing for B24 SXT tomogram alignment Apr 7, 2026
@stephen-riggs stephen-riggs requested a review from tieneupin April 7, 2026 13:00
Comment thread src/cryoemservices/services/tomo_align.py Outdated
Comment thread src/cryoemservices/services/tomo_align.py
Copy link
Copy Markdown
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.

The code looks fine on the whole! Just some comments on optimisations and whether there are more immediately readable ways to track if the current dataset being processed is TEM tomo or SXT.

Comment thread src/cryoemservices/services/tomo_align.py
@stephen-riggs stephen-riggs merged commit 66670f2 into main Apr 13, 2026
12 checks passed
@stephen-riggs stephen-riggs deleted the b24-recipe branch April 13, 2026 09:52
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