morph2expr — CLIP-style alignment of morphology & transcriptomics
morph2expr is a CLIP-style contrastive PyTorch model that learns a shared embedding space between JUMP-CP Cell Painting morphological features and CMAP L1000 transcriptomic signatures, so a query in one modality retrieves perturbations similar in the other.
- Two-tower contrastive trainer (PyTorch Lightning) with symmetric InfoNCE loss.
- Perturbation-disjoint splits at every fold — the hardest defensible evaluation protocol.
- Cross-modal recall@K, MRR, and a random-baseline floor reported in every run.
- Hydra-driven configuration; RDKit chemistry-aware perturbation handling.
Tech. Python 3.11 · PyTorch · PyTorch Lightning · RDKit · scikit-learn · Hydra · matplotlib.