Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
5f683ed
feat: Can now refine from movie + def field
jdickerson95 Nov 9, 2025
e70fd18
fix pylint errors
jdickerson95 Nov 9, 2025
066f129
feat: differentiable refine added
jdickerson95 Nov 11, 2025
522b503
differentiable refine working for motion polishing
jdickerson95 Nov 21, 2025
578a0e5
refactor and changes from code review
jdickerson95 Nov 22, 2025
b22acc6
fix linting errors
jdickerson95 Nov 22, 2025
f6e4c28
fix pylint 3.10 error
jdickerson95 Nov 22, 2025
e3d225b
fix: bug when nothing provided
jdickerson95 Dec 15, 2025
8cbe944
fix: patch error in constrained from particle stack changes
jdickerson95 Dec 28, 2025
34c3795
refactor util.py
jdickerson95 Dec 28, 2025
9bcef75
fix linting errors
jdickerson95 Dec 28, 2025
87ac772
feat: add aberrations to ctf
jdickerson95 Dec 28, 2025
0d2f613
feat: aniso mag stretches projections (not jsut ctf freqs)
jdickerson95 Dec 28, 2025
3a3d0b7
Update for fourier-slice api change
jdickerson95 Dec 29, 2025
3b860b2
fix linting error
jdickerson95 Dec 29, 2025
679f4c9
fix: refine runs if no values for aberrations in df
jdickerson95 Jan 3, 2026
da2dd00
bodge fix: clamp particle stack out of bounds
jdickerson95 Jan 7, 2026
12005ad
Fix for changes in torch-fourier-slice
jdickerson95 Jan 7, 2026
2f76119
Refactor from code review
Jan 9, 2026
66b5fc4
fix: prevent zeros being put in results everywhere
jdickerson95 Jan 11, 2026
e5bcab4
Merge branch 'jd_ctf_aberrations' of https://github.com/Lucaslab-Berk…
jdickerson95 Jan 11, 2026
f2d41e0
Can use particle shifts directly to get particle stacks from movie
jdickerson95 Jan 16, 2026
34007d3
Allow movie refine and global filtering
jdickerson95 Jan 18, 2026
00a641b
feat: movie refine from particle shifts directly
jdickerson95 Jan 18, 2026
315db2f
ignore pylint errors
jdickerson95 Jan 18, 2026
1196c9f
update tests
jdickerson95 Jan 18, 2026
38f115d
Merge pull request #114 from Lucaslab-Berkeley/jd_particle_shifts
jdickerson95 Jan 29, 2026
e1ddd7c
Merge pull request #110 from Lucaslab-Berkeley/jd_ctf_aberrations
jdickerson95 Jan 29, 2026
deaa831
Merge pull request #106 from Lucaslab-Berkeley/jd_differentiable_refine
jdickerson95 Jan 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion programs/refine_template/refine_template_example_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,11 @@ preprocessing_filters:
low_freq_cutoff: null
computational_config:
gpu_ids: 0
num_cpus: 1
num_cpus: 1
apply_global_filtering: true
movie_config:
enabled: false
movie_path: path/to/aligned_movie.mrc
deformation_field_path: path/to/deformation_field.csv
pre_exposure: 0.0
fluence_per_frame: 1.0
11 changes: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ dependencies = [
"types-PyYAML",
"roma",
"tqdm",
"torch-fourier-slice>=v0.2.0",
"torch-fourier-slice>=v0.4.0",
"torch-fourier-filter>=v0.2.6",
"torch-so3>=v0.2.0",
"ttsim3d>=v0.4.0",
"lmfit",
"zenodo-get",
"torch-fourier-shift",
"torch-motion-correction>=0.0.4",
"torch-grid-utils>=v0.0.9",
"torch-ctf"
]

[tool.hatch.metadata]
Expand Down Expand Up @@ -153,7 +157,10 @@ pretty = true
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
filterwarnings = ["error"]
filterwarnings = [
"error",
"ignore::FutureWarning",
]
addopts = "-m 'not slow'" # Skip slow tests on default
markers = ["slow: marks test as slow"]

Expand Down
5 changes: 4 additions & 1 deletion src/leopard_em/analysis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
match_template_peaks_to_dict,
)
from .pvalue_metric import extract_peaks_and_statistics_p_value
from .zscore_metric import extract_peaks_and_statistics_zscore, gaussian_noise_zscore_cutoff
from .zscore_metric import (
extract_peaks_and_statistics_zscore,
gaussian_noise_zscore_cutoff,
)

__all__ = [
"MatchTemplatePeaks",
Expand Down
2 changes: 2 additions & 0 deletions src/leopard_em/backend/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
"""Submodule for computationally intensive backend functions."""

from .core_differentiable_refine import core_differentiable_refine
from .core_match_template import core_match_template
from .core_refine_template import core_refine_template, cross_correlate_particle_stack

__all__ = [
"core_match_template",
"core_refine_template",
"cross_correlate_particle_stack",
"core_differentiable_refine",
]
Loading
Loading