Code supplement for "Simple models of non-random mating and environmental transmission bias standard human genetics statistical methods."
ascertainment_sims.py: family GWAS simulations with ascertainmentey_sim.py: education years case study simulationgeneral_simulations.py: primary simulations incorporating xAM, VT, and/or GxEgwas_pwr_t1e.r: computations of on- / off-target assocation power / type i error ratespheno_defn_supplement.r: additional phenotype definitionspsych_cors.csv: inputs for psychiatric disorder simulationsnhird_cca.r: canonical correlation analysis of NHIRD phenotypesnhird_cors.csv: inputs for NHIRD ccapsychiatric_sims.py: simulations involving psychiatric disorderssibdiff.nb: Mathematica notebook for computation of expected sibling-difference GWAS estimates
final_submission_2026/: verified numerical source data, final artwork and figure-style sources for the final submission. Seefinal_submission_2026/README.txt;SHA256SUMS.txtandMANIFEST.jsonthere identify the exact files. The three*_source_data.ziparchives each carry their own README, reproduction code and verification record.
Release v4.3 corrects source-data documentation, phenotype field mappings and portable paths. Extended Data Figure 10 now uses the original four-scenario processed export matching the submitted figure; see the source correction note.