Analysis code for "Integration of public single-cell transcriptomic data reveals ectopic activation of an epididymal-defensin gene module in Sertoli cells of non-obstructive azoospermia" (submitted to Reproductive Biology and Endocrinology).

Environment: Python 3.12, scanpy 1.12, scvi-tools 1.5, xgboost, scikit-learn, statsmodels.
Input: the four public scRNA-seq datasets listed in the Data Availability statement, integrated into an h5ad object (available from the corresponding author).

Scripts (in analysis order):
1. freeze_truth.py        - germ-cell counts and dataset composition checks
2. dedup_de.py            - gene deduplication ('.' -> '-') before differential expression
3. reannotate_recompute.py - GSE149512 sample re-annotation (SCOS/KS/AZFa/adult/developing)
4. redo_tables1_de.py     - full differential expression (NOA vs developing testis), Table S1
5. step7_noa_dev.py       - six-gene log2FC/positivity and machine-learning classifiers
6. leave_donor_cv.py      - leave-one-donor-out cross-validation
7. donor_level.py         - donor-level pseudobulk differential expression (Table 1 donor-level P)
8. gprofiler_dedup.py     - g:Profiler enrichment on deduplicated gene space

Random seed 42 used throughout. GPU: single NVIDIA RTX 2080 Ti (11 GB).
