Code and QC archive
===================

Project: Fetal sex confounds placental transcriptomic signatures of gestational diabetes:
a six-cohort audit of public data.

Contents
--------
scripts/                 analysis scripts 01-10 and v2 corrections 03b/05b/06b/09b
results/qc_en/              quality-control records C1-C17 (txt, English)
results/                 key result tables (CSV): decoupling v1/v2, GSE173193 v2, spatial v2,
                         MR results, sample sex inference, enrichment tables, artifact audit
data/processed/          GSE249311 metadata used for the subtype analysis

Not included
------------
Raw GEO/GTEx/FinnGen data (public; accessions in the manuscript)
Intermediate h5ad files, raw matrices and figure PNGs (available on request)

Environment
-----------
Python 3.13.12; numpy, pandas, scipy, matplotlib, scanpy, harmonypy, pydeseq2 0.5.4, gseapy.

Run order
---------
01_bulk_qc.py -> 02_bulk_deg.py -> 03_decoupling.py (v1, retained for audit) ->
03b_decoupling_v2.py -> 04_sc_qc.py -> 04b_sc_cluster_annot.py -> 04c_curated_annot.py ->
05_gse173193_validation.py (v1) -> 05b_gse173193_v2.py -> 06_spatial_projection.py (v1) ->
06b_spatial_v2.py -> 07_validation.py -> 08_mr_analysis.py -> 08b_mr_gtex.py ->
09_publication_figures.py (v1) -> 09b_publication_figures_v2.py -> 10_gse70493_validation.py

Notes
-----
- The v1 scripts and tables are retained because the manuscript reports the corrections.
- GSE173193 'GL' is the advanced-age group, not GDM/LGA.
- The archive is deposited in Zenodo (DOI: 10.5281/zenodo.23857573; https://doi.org/10.5281/zenodo.23857573).
