Repository navigation
Standardize benchmark to 57 filtered test samples - #45
Merged
Merged
Conversation
…oline's data - Add multidim.yaml data config (MultiDimImageDataset via BioIOImageLoaderd) - Add individual timelapse eval configs for NPM1 and TOMM20 - Add MegaSeg dynunet timelapse eval config for NPM1 (fixes failed run in issue #10) - Add extract_npm1_scene3.py: extracts NPM1 Airyscan 40x scene 3 TIFs from CZI - Add extract_timelapse_tifs.py: extracts Mito and Tubulin_MultiCh TIFs from CZIs - Add run_classic_timelapse.py: classic segmentation workflows (NPM1, TOMM20, TUBA1B) - Add run_timelapse_inference.sh: launches individual + MegaSeg GPU inference jobs TUBA1B skipped for individual/MegaSeg (no checkpoint). PCNA skipped entirely (no classic workflow, no checkpoint). Closes #10.
…ures Generate comparison grids, contour overlays, and temporal montages for NPM1, Mitochondria, and Tubulin_MultiCh timelapse datasets. Supports both colored overlay and grayscale display modes. Produces 102 PNGs + 102 PDFs across 6 curated FOV groups.
Self-contained script that scans visuals directory for PNGs and generates an interactive HTML gallery with sidebar navigation, overlay/grayscale display mode toggle, click-to-enlarge lightbox, and summary statistics. Uses relative image paths.
NPM1 was never in MegaSeg's training set (verified: megaseg_cleaned_new/train.csv contains 13 standard structures + AAVS1, not NPM1). Updated all chapters to reflect this: - Header: 14 standard → 13 training + 3 unseen (AAVS1, LMNB1, NPM1) - Chapters 3-5: NPM1 rows marked *(unseen)*, findings reframed as zero-shot generalization rather than modeling failure - Chapter 4: 'NPM1 is the only exception' → asymmetric comparison noted - Chapter 5: 'MegaSeg outperforms on 13/14' → 'all 13 training structures' - Chapter 8: 14-struct model clarified as 13 standard + AAVS1 - Chapter 9: '14 standard + AAVS1, LMNB1' → '13 training + 3 unseen' - Summary table updated accordingly
Replace all evaluation metrics in Chapters 3 (Backbone), 4 (MegaSeg vs Individual), and 5 (SOTA) with values from the filtered test set (57 samples/structure, bottom 10 by Dice excluded). Also updates the Drug Perturbation chapter's reference table and the Summary table. The top-level test set description is updated to reflect n=57 filtered.
…b infrastructure Add eval config for Tubulin_MultiCh_2 timelapse dataset, extraction scripts for additional modalities, and SLURM batch scripts for running extraction, classic segmentation, and MegaSeg inference jobs on HPC. Update gallery builder and visualization scripts to support new datasets.
Remove the dual 67/57 sample track that caused confusion across results, plots, and documentation. All evaluation results now use the filtered test set (bottom 10 low-signal samples per structure removed, identified by MegaSeg DynUNet Dice). Code changes: - sota_comparison.py: always apply low-signal filter, remove --filtered flag, use dynamic structure intersection across methods, remove NPM1 from active comparison structures - All reporting scripts and README: update sample counts from 67 to 57 - evaluate_benchmark.py: fix misleading NPM1 comment Result changes: - Delete stale unfiltered SOTA/ablation summary CSVs and figures (filtered equivalents already exist in filtered/ subdirectories) - Filter LMNB1 fine-tuning and from-scratch results to 57 samples (bottom 10 by base MegaSeg generalist Dice excluded) - Add 10 LMNB1 entries to excluded_samples.csv (140 -> 150 rows) - Delete surgery_summary.csv (needs cluster regeneration) - LAMP1 already had 57 test samples, no change needed Inference scripts intentionally keep EXPECTED_FILES=67 since predictions are generated for all samples; filtering is applied at evaluation time. Follow-up cluster runs needed: - python scripts/sota_comparison.py (regenerate SOTA figures) - python scripts/visualize_comparison.py (regenerate comparison figures) - Re-run evaluate_surgery.py with LMNB1 exclusion list Relates to #42, supersedes #43 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- SOTA figures: regenerated via sota_comparison.py (13 structures, 57 samples each, 741 total — NPM1 excluded by dynamic intersection) - Comparison heatmaps: regenerated for both LMNB1 and LAMP1 - Surgery per-sample metrics: filtered from 67 to 57 using LMNB1 excluded samples, summary and JSON updated - surgery_summary.csv restored with filtered n=57 values Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Runs all 8 SOTA methods on one input volume and generates a max-projection comparison figure. Each method runs in its own subprocess with the appropriate virtualenv. Supports --skip/--only to control which methods run, caches predictions so re-runs are fast, and includes an sbatch wrapper for GPU cluster submission. Usage: python scripts/run_sota_single_sample.py --structure ACTN1 --sample-id ACTN1_11347 sbatch scripts/sbatch_sota_single_sample.sh ACTN1 ACTN1_11347 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Use absolute MAIN_BENCHMARK path for envs, checkpoints, outputs instead of relative PROJECT_ROOT (breaks in worktrees and Slurm) - Use SLURM_SUBMIT_DIR in sbatch wrapper instead of dirname $0 (Slurm copies scripts to spool dir) - Remove set -- that cleared positional args - Fix SAM checkpoint path to envs/microsam/checkpoints/ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…lback - Use z-score normalization (subtract mean, divide by std) matching cyto-dl's NormalizeIntensityd, instead of min-max which produced near-empty MegaSeg/Individual predictions - Fix DynUNet architecture to 5 levels (strides=[1,2,2,2,2], kernel_size=[3,3,3,3,3], res_block=True) matching the actual cyto-dl checkpoint, with backbone. prefix stripping - Fix NIfTI→TIFF conversion: remove spurious axis transpose - Add benchmark cache fallback: before running live inference, check for existing predictions in outputs/eval/uint8/ and classic_cross_eval/ - Use msseg conda env for Classic (needs aicsimageio) - Handle missing envs gracefully (skip with message instead of crash) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fix SOTA comparison structure overlap
docs: comprehensive 9-chapter experimental report
feat: timelapse classic, individual, and MegaSeg evaluation for Caroline's data (#10)
Fig 1 (a-e) for the MegaSeg manuscript: structure gallery (Viana et al. organelle naming + compartment squares), concept diagram, structure- agnostic training + backbone comparison, MegaSeg vs specialist-model performance, and pipeline schematic. Includes standalone regeneration scripts (fig1a/fig1c/fig1d), the fig1a image manifest, and the combined layout (.ai/.pdf). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add Figure 1 panels and generation scripts (Results_Figure_Tracking/Fig1)
Fig 2 for the MegaSeg manuscript: cross-evaluation and model-comparison heatmaps (Viana et al. organelle naming, explicit trained-vs-evaluation axis labels), the fig2b qualitative panels (main/supp/colorbar/error legend) with metadata, the dendrogram + fig2b generation scripts, the heatmap summary-stats CSV, and the combined layout (.ai/.pdf). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add Figure 2 heatmaps and generation scripts (Results_Figure_Tracking/Fig2)
Fig 3 combines LMNB1 and LAMP1 finetuning results: per-structure Dice heatmaps (training-data% x epochs) plus qualitative error maps. Includes the PDF assembler (fig_finetune_combined.py), which stitches the four component panels (a/b heatmaps, c/d qualitatives) into the combined figure and writes a JSON manifest tracking the source component images. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add Figure 3 (finetuning) combined figure (Results_Figure_Tracking/Fig3)
Follow-up to #49 (which merged the initial version). Replaces the Fig3 combiner + manifest with one generator, fig_finetune.py, driven by one config, fig_finetune_config.json. It renders both structures' Dice heatmaps (from the metric CSVs) and qualitative error-map panels (raw/GT/ pred from //allen, with pinned samples + crop mode) and assembles the combined figure in a single pass — no intermediate component PDFs and no PyMuPDF dependency. The two metric CSVs are kept as tracked inputs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Fig3: consolidate to a single config-driven generator
Follow-up to #50. Two fixes to the consolidated generator: - LMNB1 Panel A crops on the false-negative region at 10 ep (crop_ref_cond), matching LAMP1 Panel A. - Restore the channel-count rule for the LMNB1 raw structure channel (ch3 for >=7-channel FOVs, else ch1) so 4-channel FOVs no longer show a wrong (hard-coded ch3) channel. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Fig3: fix LMNB1 raw channel + FN-centered crop for Panel A
The fine-tuning and from-scratch Dice tables in the README still had 67-sample values despite the header saying n=57. Updated all three tables (fine-tuning, from-scratch, pretraining benefit delta) with values recomputed from the filtered 57-sample summaries. Regenerated dice_heatmap figures for both finetune and scratch modes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The heatmap title showed "n=67" because n_test was read from the raw test CSV (67 rows) instead of the filtered summary. Now reads n_samples from summary.csv so it reflects the actual filtered count (57). Also allow --heatmap-only to skip GT directory check (not needed for heatmap generation). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
New fig3_finetune_final.py replaces the LMNB1-only script with a combined figure covering both structures and both training modes. Reads 57-sample summary CSVs from the worktree results directory. Also adds base_megaseg back to LAMP1 finetune summary (was dropped during earlier filtering). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Heatmap: 2×2 panel (LMNB1/LAMP1 × finetune/scratch), all n=57 - Qualitative: added MegaSeg generalist binary MIP column, both LMNB1 and LAMP1 samples with largest base→converged improvement - Fixed LAMP1 sample selection to use IDs with available predictions - Added LAMP1 base_megaseg to finetune summary Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
One script + one config, consistent with Fig1-3: - fig4_qualitative.py: config-driven single-column qualitative figure (Raw | Classic mask | Specialist prob/mask | MegaSeg prob/mask) for 5 structures x 2 conditions (control + one drug timepoint). Auto-discovers samples per structure, control detected by filename token, drug label from structure drug + parsed timepoint. Supports per-sample overrides for crop center, z-slice, and raw contrast, plus per-structure source/crop overrides. z-slice = seeded central signal-bearing slice (stable). - fig4_qualitative_config.json: all paths, sources, layout, and per-sample pins. - fig_drug_perturbation_qualitative.pdf/.png: the rendered figure. Raw + prediction TIFFs are large and not committed; data_root in the config points to the local data location (analogous to Fig1-3 //allen paths). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add Figure 4 (drug-perturbation qualitative) generator + output
Follow-up to #52 (merged before these tweaks). - Enlarge the scale-bar label (6 -> 10 pt) and thicken the bar for legibility. - Shift the FBL Actinomycin 4hr crop Y-center to 325. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Fig4: larger scale-bar font + FBL Actinomycin crop shift
Heatmaps: - Rows now ascending 10%→100% (more coherent reading order) - Y-axis labels include z-stack counts: "10% (16+4)" etc. - Epoch labels shown on ALL panels, not just bottom row Qualitative: - MegaSeg generalist column now shows error maps (TP/FP/FN/TN), matching the format of all other prediction columns - Restored Panel A (epoch effect, 100% data) + Panel B (data effect, 10 epochs) structure for both LMNB1 and LAMP1 - 8 rows total: 4 LMNB1 + 4 LAMP1 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Compute label positions from actual gridspec subplot coordinates instead of hardcoded fig.text() positions. Also increase left margin for label space. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Heatmap: added shared colorbar with global Dice scale across all 4 panels for consistent color interpretation. Qualitative: replaced LMNB1 Panel A row 1 (clearer 0.26→0.97 progression). Replaced LAMP1 samples with ones showing visible hole-filling (LAMP1_150632: 55K FN reduction, LAMP1_150886: 48K). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Renamed "Ground Truth" → "Pseudo-Labels" in column headers - Increased row labels from 13→16pt and column titles from 11→14pt (13struct) / 9→12pt (unseen) for readability - Updated data paths from /allen/aics/rep_learn/megaseg-benchmark/ to /allen/aics/lumenoid/megaseg-benchmark/ (directory was moved) - Regenerated all PDFs for both 13-struct and unseen-100x figures Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove the dual 67/57 sample track that caused confusion across results, plots, and documentation. All evaluation results now use the filtered test set (bottom 10 low-signal samples per structure removed, identified by MegaSeg DynUNet Dice). Code changes: - sota_comparison.py: always apply low-signal filter, remove --filtered flag, use dynamic structure intersection across methods, remove NPM1 from active comparison structures - All reporting scripts and README: update sample counts from 67 to 57 - evaluate_benchmark.py: fix misleading NPM1 comment Result changes: - Delete stale unfiltered SOTA/ablation summary CSVs and figures (filtered equivalents already exist in filtered/ subdirectories) - Filter LMNB1 fine-tuning and from-scratch results to 57 samples (bottom 10 by base MegaSeg generalist Dice excluded) - Add 10 LMNB1 entries to excluded_samples.csv (140 -> 150 rows) - Delete surgery_summary.csv (needs cluster regeneration) - LAMP1 already had 57 test samples, no change needed Inference scripts intentionally keep EXPECTED_FILES=67 since predictions are generated for all samples; filtering is applied at evaluation time. Follow-up cluster runs needed: - python scripts/sota_comparison.py (regenerate SOTA figures) - python scripts/visualize_comparison.py (regenerate comparison figures) - Re-run evaluate_surgery.py with LMNB1 exclusion list Relates to #42, supersedes #43 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- SOTA figures: regenerated via sota_comparison.py (13 structures, 57 samples each, 741 total — NPM1 excluded by dynamic intersection) - Comparison heatmaps: regenerated for both LMNB1 and LAMP1 - Surgery per-sample metrics: filtered from 67 to 57 using LMNB1 excluded samples, summary and JSON updated - surgery_summary.csv restored with filtered n=57 values Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Runs all 8 SOTA methods on one input volume and generates a max-projection comparison figure. Each method runs in its own subprocess with the appropriate virtualenv. Supports --skip/--only to control which methods run, caches predictions so re-runs are fast, and includes an sbatch wrapper for GPU cluster submission. Usage: python scripts/run_sota_single_sample.py --structure ACTN1 --sample-id ACTN1_11347 sbatch scripts/sbatch_sota_single_sample.sh ACTN1 ACTN1_11347 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Use absolute MAIN_BENCHMARK path for envs, checkpoints, outputs instead of relative PROJECT_ROOT (breaks in worktrees and Slurm) - Use SLURM_SUBMIT_DIR in sbatch wrapper instead of dirname $0 (Slurm copies scripts to spool dir) - Remove set -- that cleared positional args - Fix SAM checkpoint path to envs/microsam/checkpoints/ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…lback - Use z-score normalization (subtract mean, divide by std) matching cyto-dl's NormalizeIntensityd, instead of min-max which produced near-empty MegaSeg/Individual predictions - Fix DynUNet architecture to 5 levels (strides=[1,2,2,2,2], kernel_size=[3,3,3,3,3], res_block=True) matching the actual cyto-dl checkpoint, with backbone. prefix stripping - Fix NIfTI→TIFF conversion: remove spurious axis transpose - Add benchmark cache fallback: before running live inference, check for existing predictions in outputs/eval/uint8/ and classic_cross_eval/ - Use msseg conda env for Classic (needs aicsimageio) - Handle missing envs gracefully (skip with message instead of crash) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The fine-tuning and from-scratch Dice tables in the README still had 67-sample values despite the header saying n=57. Updated all three tables (fine-tuning, from-scratch, pretraining benefit delta) with values recomputed from the filtered 57-sample summaries. Regenerated dice_heatmap figures for both finetune and scratch modes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The heatmap title showed "n=67" because n_test was read from the raw test CSV (67 rows) instead of the filtered summary. Now reads n_samples from summary.csv so it reflects the actual filtered count (57). Also allow --heatmap-only to skip GT directory check (not needed for heatmap generation). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
New fig3_finetune_final.py replaces the LMNB1-only script with a combined figure covering both structures and both training modes. Reads 57-sample summary CSVs from the worktree results directory. Also adds base_megaseg back to LAMP1 finetune summary (was dropped during earlier filtering). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Heatmap: 2×2 panel (LMNB1/LAMP1 × finetune/scratch), all n=57 - Qualitative: added MegaSeg generalist binary MIP column, both LMNB1 and LAMP1 samples with largest base→converged improvement - Fixed LAMP1 sample selection to use IDs with available predictions - Added LAMP1 base_megaseg to finetune summary Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Heatmaps: - Rows now ascending 10%→100% (more coherent reading order) - Y-axis labels include z-stack counts: "10% (16+4)" etc. - Epoch labels shown on ALL panels, not just bottom row Qualitative: - MegaSeg generalist column now shows error maps (TP/FP/FN/TN), matching the format of all other prediction columns - Restored Panel A (epoch effect, 100% data) + Panel B (data effect, 10 epochs) structure for both LMNB1 and LAMP1 - 8 rows total: 4 LMNB1 + 4 LAMP1 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Compute label positions from actual gridspec subplot coordinates instead of hardcoded fig.text() positions. Also increase left margin for label space. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Heatmap: added shared colorbar with global Dice scale across all 4 panels for consistent color interpretation. Qualitative: replaced LMNB1 Panel A row 1 (clearer 0.26→0.97 progression). Replaced LAMP1 samples with ones showing visible hole-filling (LAMP1_150632: 55K FN reduction, LAMP1_150886: 48K). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Renamed "Ground Truth" → "Pseudo-Labels" in column headers - Increased row labels from 13→16pt and column titles from 11→14pt (13struct) / 9→12pt (unseen) for readability - Updated data paths from /allen/aics/rep_learn/megaseg-benchmark/ to /allen/aics/lumenoid/megaseg-benchmark/ (directory was moved) - Regenerated all PDFs for both 13-struct and unseen-100x figures Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Applied to upstream v5 script (rebased from origin/main): - "Ground Truth" → "Pseudo-Labels" in column headers and docstring - Row labels 13→16pt, column titles 11→14pt - Removed old v4 subdirectories (13struct_results/, classic-heatmaps/, dl-model-heatmaps/, unseen_100x_data/) that were from pre-rebase Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Row labels 16→20pt, column titles 14→18pt, increased left margin. Labels now remain readable when the figure is scaled down in the combined Illustrator layout. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
New fig_f2_new.py generates a methods × structures Dice heatmap with hierarchical clustering dendrograms, matching the visual style of the existing model comparison and cross-eval heatmaps. 8 methods (Classic, MegaSeg, nnU-Net, Individual, Otsu, CellPose, StarDist, SAM) × 13 structures, 57 filtered test samples each. This panel will join the existing fig_heatmap_models.pdf (panel b) and fig_heatmap_crosseval.pdf (panel c) in the combined f2_new figure, replacing the current Fig2 combined layout. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Cross-eval heatmap: annotate_std changed from False to True - SOTA heatmap: added ±std below each mean value - Model comparison heatmap: already had std, regenerated with fixed path - Fixed INPUT_CSV path in megaseg_heatmap_dendrogram.py for worktree Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Hide the dendrogram axes when using fixed order (no clustering), preventing the empty tick-mark box at the top of the radial figure. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Model comparison: 7→9pt, figure 10×9→11×10 - Cross-eval + radial: 7→8pt, figure 12×10→14×11 - SOTA: 7→9pt, figure 16×7→18×8 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Evaluate MicroSAM with the vit_b_lm model (fine-tuned on light microscopy) on all 13 structures × 67 test samples (871 total). Overall Dice = 0.032, comparable to vanilla SAM (0.025) — the LM fine-tuning does not improve zero-shot AMG performance on subcellular fluorescence structures. New files: - run_microsam_lm_zeroshot.py: inference script with --model-type, --structures, --max-samples support and per-structure CSV output for parallel Slurm jobs - sbatch_microsam_lm.sh, sbatch_microsam_per_struct.sh: Slurm wrappers - microsam_b_lm_zeroshot_metrics.csv: 871 per-sample metrics Updated: - sota_comparison.py: load MicroSAM metrics, graceful skip if CSV missing - All SOTA figures regenerated with 9 methods (741 filtered samples each) Pilot evaluation of 3 other MicroSAM variants (vit_l_lm, vit_b/l_em_organelles) showed similar or worse performance — results available for supplementary table. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Resolves conflicts in SOTA figures and README — takes our versions which include MicroSAM as the 9th method with 57-sample filtering. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Standardize the benchmark to 57 filtered test samples, add MicroSAM as 9th SOTA method, integrate figure generation scripts, and resolve multiple consistency issues across the repo.
This PR consolidates several related efforts — intended for squash merge.
1. Standardize to 57 filtered samples
sota_comparison.py: always applies filter, dynamic structure intersection, removed--filteredflag2. Add MicroSAM (vit_b_lm) — 9th SOTA method
Full evaluation on all 13 structures × 67 samples (871 total, filtered to 741).
MicroSAM's LM fine-tuning does not improve zero-shot AMG on subcellular fluorescence. Pilot of 3 other variants (vit_l_lm, vit_b/l_em_organelles) showed similar or worse — available for supplementary table.
New scripts:
run_microsam_lm_zeroshot.py,sbatch_microsam_per_struct.sh3. Figure generation scripts (Results_Figure_Tracking/)
4. Other integrated changes
run_sota_single_sample.py)Test plan
n=67orn=938in any summary CSVRelates to #42, supersedes #43
🤖 Generated with Claude Code