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

Exclude images with bad motion correction results from tomogram alignment #122

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

Conversation

stephen-riggs
Copy link
Contributor

Relion's motion correction sometimes fails on local alignment and produces abstract images. These then get put into tomogram alignment and disrupt the outputs.

The only way I can readily see to avoid this is to check the star files written out by Relion.
Firstly, we need to check if the file exists, then if the local motion model was used, and finally when coefficients were found.
I've put a threshold of 1000 on the local alignment coefficients, but this is an arbitrary choice.

This will result in an increase in I/O and maybe slow down alignment slightly.

@stephen-riggs stephen-riggs self-assigned this Feb 5, 2025
Copy link

codecov bot commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.85%. Comparing base (3bf4ce8) to head (108ff22).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #122      +/-   ##
==========================================
+ Coverage   74.80%   74.85%   +0.05%     
==========================================
  Files          52       52              
  Lines        6735     6750      +15     
  Branches      948      953       +5     
==========================================
+ Hits         5038     5053      +15     
  Misses       1247     1247              
  Partials      450      450              

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.

1 participant