You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@alkinkaz found that a recent change to analyze_landscape introduced a bug in how mean volumes were being calculated for the classes recovered through agglomerative clustering of sketched volumes (saved under e.g. landscape.39/clustering_L2_average_10/state_<i>_mean.mrc and state_<i>_std.mrc):
Thus vol_i_all became an iteration over the same volume vol_fl indexed by the current i, instead of iterating over all the volumes in the cluster as indexed by vol_i. This manifests itself most clearly in producing an empty volume under state_<i>_std.mrc.
This has been fixed at 6a1e93e, where we also improved the clarity of the code to make it more robust against future bugs:
michal-g
changed the title
Bug when calculating landscape analysis k-means mean volumes
Bug when calculating landscape analysis agglomerative clustering mean volumes
Nov 18, 2024
@alkinkaz found that a recent change to
analyze_landscape
introduced a bug in how mean volumes were being calculated for the classes recovered through agglomerative clustering of sketched volumes (saved under e.g.landscape.39/clustering_L2_average_10/state_<i>_mean.mrc
andstate_<i>_std.mrc
):cryodrgn/cryodrgn/commands/analyze_landscape.py
Lines 340 to 363 in 1a1a7da
became
cryodrgn/cryodrgn/commands/analyze_landscape.py
Lines 348 to 366 in 9956ded
Thus
vol_i_all
became an iteration over the same volumevol_fl
indexed by the currenti
, instead of iterating over all the volumes in the cluster as indexed byvol_i
. This manifests itself most clearly in producing an empty volume understate_<i>_std.mrc
.This has been fixed at 6a1e93e, where we also improved the clarity of the code to make it more robust against future bugs:
cryodrgn/cryodrgn/commands/analyze_landscape.py
Lines 351 to 369 in 6a1e93e
These changes will be part of the upcoming v3.4.3 release and are presently available through our beta release channel:
The text was updated successfully, but these errors were encountered: