Co-occurrence of rare variants implicates gene pairs in cytoskeletal pathways and is associated with increased severity in autism spectrum disorder.
The 32 matches
- [1] § Methods › Variant annotation and prioritization ↔ Variants_filtering.py, lines 315 to 367 · score 1.00 · LOF flags, frameshift_variant, incomplete_terminal_codon_variant, inframe_deletion, inframe_insertion, missense_variant · Report a mismatch
- [2] § Methods › Quality control ↔ Variants_filtering.py, lines 11 to 77 · score 0.96 · allelic balance, multi allelic, variant filtering, Korean ASD, LAA, LPL · Report a mismatch
- [3] § Results › Association of co-occurring rare variants within disrupted gene pairs with ASD-related phenotypes in both affected and unaffected individuals ↔ gen_phe_association.R, lines 119 to 160 · score 0.91 · SCQ lifetime, polygenic score, Clinical phenotypes, DNV carrier, constrained genes, Co occurring rare · Report a mismatch
- [4] § Methods › Curation of disease-association genes ↔ Figure2.R, lines 124 to 187 · score 0.90 · associated genes, ABM, ADHD, ALS, ANX, EP · Report a mismatch
- [5] § Results › Association of co-occurring rare variants within disrupted gene pairs with ASD-related phenotypes in both affected and unaffected individuals ↔ pTDT_calculation.R, lines 1 to 52 · score 0.88 · polygenic transmission disequilibrium, parental PS, uni parental, pTDT, genetic factors, co occurring rare · Report a mismatch
- [6] § Methods › Statistical analyses ↔ Figure2.R, lines 1 to 77 · score 0.86 · compareCluster, enrichGO, pairwise_termsim, GO enrichment, MF, db · Report a mismatch
- [7] § Methods › Polygenic score (PS) calculation ↔ Variants_filtering.py, lines 244 to 310 · score 0.85 · chi square, GWAS summary statistics, common variants, Ambiguous, harmonize, GRCh37 · Report a mismatch
- [8] § Methods › Statistical analyses ↔ Figure3.R, lines 217 to 290 · score 0.84 · compareCluster, enrichGO, pairwise_termsim, GO enrichment, db, hs · Report a mismatch
- [9] § Methods › Variant annotation and prioritization ↔ ident_gene_pair.R, lines 59 to 85 · score 0.83 · CADD phred, BayesDel, FATHMM, MetaRNN, PROVEAN, PrimateAI · Report a mismatch
- [10] § Methods › Rare inherited variants ↔ Variants_filtering.py, lines 119 to 239 · score 0.83 · external AF, ultra rare inherited, internal AC, gnomAD, rare inherited variants, cohort · Report a mismatch
- [11] § Results › Association of co-occurring rare variants within disrupted gene pairs with ASD-related phenotypes in both affected and unaffected individuals ↔ Figure4.R, lines 56 to 121 · score 0.80 · SCQ lifetime, DNV carrier, Co occurring rare, genetic factors, DCDQ, FSIQ · Report a mismatch
- [12] § Results › Association of co-occurring rare variants within disrupted gene pairs with ASD-related phenotypes in both affected and unaffected individuals ↔ gen_phe_association.R, lines 119 to 160 · score 0.75 · BAPQ pragmatic, BAPQ rigidity, clinical phenotypes, co occurring rare, SRS, PS · Report a mismatch
- [13] § Results › Identification of disrupted gene pairs in ASD from East-Asian and European ancestries ↔ Post_hoc_analysis.R, lines 1 to 57 · score 0.75 · post hoc, logistic regression, co occurrence, interaction, adjustment, covariates · Report a mismatch
- [14] § Methods › Polygenic score (PS) calculation ↔ run_PRScs.sh, lines 1 to 38 · score 0.72 · global shrinkage parameter, PRScs, phi, Polygenic, score · Report a mismatch
- [15] § Methods › De novo variants ↔ Variants_filtering.py, lines 82 to 114 · score 0.71 · de_novo, Korean ASD, DNV call, threshold, DP, GQ · Report a mismatch
- [16] § Methods › Identifying cell type-specific DEGs and calculating co-expression correlation of gene pairs ↔ Figure3.R, lines 217 to 290 · score 0.70 · ward.D2, hierarchical clustering, Manhattan, distance, correlation, disrupted · Report a mismatch
- [17] § Methods › Statistical analyses ↔ pTDT_calculation.R, lines 54 to 74 · score 0.69 · ANCOVA model, pTDT, residuals, fitting, covariance, child · Report a mismatch
- [18] § Methods › De novo variants ↔ Variants_filtering.py, lines 82 to 114 · score 0.69 · de_novo, gnomAD, allele frequency, Hail, AF, DNVs · Report a mismatch
- [19] § Results › Identification of disrupted gene pairs in ASD from East-Asian and European ancestries ↔ Figure1.R, lines 258 to 333 · score 0.68 · CDS length, gene length, EAS pairs, EUR pairs, attributed, longer · Report a mismatch
- [20] § Methods › Identifying disrupted gene pair ↔ ident_gene_pair.R, lines 141 to 194 · score 0.67 · adj pval, RareComb, Python, itemsets, BH, gene pairs · Report a mismatch
- [21] § Results › Identification of disrupted gene pairs in ASD from East-Asian and European ancestries ↔ Post_hoc_analysis.R, lines 1 to 57 · score 0.66 · Logistic regression, identify disrupted gene, EUR samples, co occurrence, disrupted gene pair, adjustments · Report a mismatch
- [22] § Results › Association of co-occurring rare variants within disrupted gene pairs with ASD-related phenotypes in both affected and unaffected individuals ↔ pTDT_calculation.R, lines 1 to 52 · score 0.65 · uni parental, co occurring rare, phenotypic association, adjustment, children, male · Report a mismatch
- [23] § Results › Identification of disrupted gene pairs in ASD from East-Asian and European ancestries ↔ Figure1.R, lines 258 to 333 · score 0.65 · median LOEUF, gene constraint, EAS pairs, EUR pairs, SFARI, Figure 1 · Report a mismatch
- [24] § Results › Association of co-occurring rare variants within disrupted gene pairs with ASD-related phenotypes in both affected and unaffected individuals ↔ Figure4.R, lines 1 to 54 · score 0.63 · uni parental, co occurring rare, phenotypic association, stratifying, ADOS, male · Report a mismatch
- [25] § Results › Identification of disrupted gene pairs in ASD from East-Asian and European ancestries ↔ Figure1.R, lines 337 to 408 · score 0.59 · LOEUF scores, EAS pairs, EUR pairs, median, SFARI, DNV · Report a mismatch
- [26] § Results › Association of co-occurring rare variants within disrupted gene pairs with ASD-related phenotypes in both affected and unaffected individuals ↔ Figure4.R, lines 56 to 121 · score 0.57 · BAPQ rigidity, co occurring rare, SRS, CI, child, PS · Report a mismatch
- [27] § Methods › Rare inherited variants ↔ Variants_filtering.py, lines 119 to 239 · score 0.57 · rare inherited variants, mendelian, trio, AB, family, cohort · Report a mismatch
- [28] § Results › Identification of disrupted gene pairs in ASD from East-Asian and European ancestries ↔ cross_evaluation.R, lines 489 to 550 · score 0.56 · Cross ancestry, EAS pairs, EUR pairs, Asian, East, European · Report a mismatch
- [29] § Methods › Identifying disrupted gene pair ↔ Figure1.R, lines 114 to 185 · score 0.53 · RareComb, co occurrence, itemsets, max, combo, gene pairs · Report a mismatch
- [30] § Methods › Cross-ancestry evaluation of disrupted gene pairs ↔ Post_hoc_analysis.R, lines 61 to 147 · score 0.52 · carrier frequencies, variance, error, model, binomial, regression · Report a mismatch
- [31] § Methods › Quality control ↔ Variants_filtering.py, lines 11 to 77 · score 0.52 · LCR, split, SNPs, quality, DP, GQ · Report a mismatch
- [32] § Results › Candidate genes in disrupted gene pairs implicated in cytoskeleton activity and neuronal cell types ↔ Figure2.R, lines 124 to 187 · score 0.51 · DDD, EA, SCZ, neuropsychiatric, CHD, neurodevelopmental · Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 438 lines · 19 KB · MIT · 8 matches
- #########################################################
- # Whole-genome variant processing pipeline
- #########################################################
- import hail as hl
- import time
- import os
- from functools import reduce
- def quality_control_wgs(vcf_path, output_dir, chr_name, lcr_bed_path):
- start = time.time()
- # 1) Import raw VCF as MatrixTable
- mt = hl.import_vcf(vcf_path, force_bgz=True, reference_genome='GRCh38', skip_invalid_loci=True)
- # 2) Filter out low-complexity regions (LCR) and very long alleles (length ≥ 50bp)
- lcr_bed = hl.import_bed(lcr_bed_path, reference_genome='GRCh38', min_partitions=100)
- mt = mt.filter_rows(~hl.is_defined(lcr_bed[mt.locus]))
- mt = mt.filter_rows((mt.alleles[0].length() < 50) & (mt.alleles[1].length() < 50))
- # 3) Recompute total depth (DP) from AD - For only Korean ASD WGS
- mt = mt.annotate_entries(DP = hl.sum(mt.AD))
- # 4) Normalize local likelihood fields (AD, LPL, LA) for multi-allelic handling - For only Korean ASD WGS
- mt = mt.annotate_entries(
- AD = hl.case()
- .when(mt.GT.is_hom_ref(), hl.vds.local_to_global(hl.array([mt.DP]), hl.array([0]), n_alleles=hl.len(mt.alleles), fill_value=0, number='R'))
- .default(mt.AD),
- LPL = hl.case()
- .when(mt.GT.is_hom_ref(), hl.missing('array<int32>'))
- .default(mt.LPL),
- LA = hl.case()
- .when(mt.GT.is_hom_ref(), hl.array([0]))
- .when(mt.GT.is_het_ref(), hl.array([hl.int32(0), hl.int32(mt.LAA[0])]))
- .when(mt.GT.is_hom_var(), hl.array([hl.int32(0), hl.int32(mt.LAA[0])]))
- .when(mt.GT.is_het_non_ref(), hl.array([hl.int32(0), hl.int32(mt.LAA[0]), hl.int32(mt.LAA[1])]))
- .or_missing()
- )
- # 5) Convert local PL (LPL/LA) to global diploid PLs for all alleles - For only Korean ASD WGS
- mt = mt.annotate_entries(PL = hl.vds.local_to_global(mt.LPL, mt.LA, n_alleles=hl.len(mt.alleles), fill_value=hl.max(mt.LPL), number='G'))
- # 6) Split multi-allelic sites and left-normalize to minimal representation
- mt = hl.split_multi_hts(mt, left_aligned=True)
- mt = mt.annotate_rows(min_rep = hl.min_rep(mt.locus, mt.alleles)).key_rows_by().drop('locus', 'alleles')
- mt = mt.annotate_rows(locus = mt.min_rep.locus, alleles = mt.min_rep.alleles).key_rows_by('locus', 'alleles')
- # 7) Re-define PL for hom-ref genotypes - For only Korean ASD WGS
- mt = mt.annotate_entries(
- PL = hl.case()
- .when(mt.GT.is_hom_ref(), [0, mt.GQ, hl.max(mt.GQ, 3*(mt.AD[0] - mt.AD[1]))])
- .default(mt.PL)
- )
- # 8) Annotate variant class (SNP / indel) and compute variant-level QC metrics
- mt = mt.annotate_rows(variant_class = hl.case().when(hl.is_snp(mt.alleles[0], mt.alleles[1]), 'snp').when(hl.is_indel(mt.alleles[0], mt.alleles[1]), 'indel').or_missing())
- mt = hl.variant_qc(mt)
- # 9) Compute allelic balance (AB) from AD
- mt = mt.annotate_entries(AB = mt.AD[1] / hl.sum(mt.AD))
- # 10) Genotype-level QC filters (DP/GQ thresholds and AB-based filters for het/hom-var)
- mt = mt.filter_entries(
- (mt.GT.is_het() & (0.2 <= mt.AB) & (mt.AB <= 0.8) & (mt.DP >= 10) & (mt.GQ >= 20)) |
- (mt.GT.is_hom_ref() & (mt.DP >= 10) & (mt.GQ >= 20)) |
- (mt.GT.is_hom_var() & (mt.AB >= 0.95) & (mt.DP >= 10) & (mt.GQ >= 20))
- )
- # 11) Run variant_qc after genotype filtering and apply variant-level QC filters
- mt = hl.variant_qc(mt)
- mt = mt.filter_rows((mt.variant_qc.call_rate >= 0.1) & (mt.variant_qc.p_value_hwe > 1e-12))
- # 12) Write QCed MatrixTable to disk
- mt.write(os.path.join(output_dir, f'WGS_chr{chr_name}_QC.mt'), overwrite=True)
- print(f'Done QC for chr{chr_name} : Execution time = {time.time() - start} sec')
- return mt
- def call_denovo_wgs(mt, ped_path, gnomad_ht_path, output_dir, chr_name):
- start = time.time()
- # 1) Read external allele frequency resource (gnomAD) and annotate AF to rows
- gnomad_ht = hl.read_table(gnomad_ht_path)
- mt = mt.annotate_rows(gnomAD_AF = gnomad_ht[mt.locus, mt.alleles].AF)
- # 2) Restrict to very rare (or absent) variants based on gnomAD AF (< 0.01%)
- mt_dnv = mt.filter_rows((mt.gnomAD_AF < 0.0001) | hl.is_missing(mt.gnomAD_AF))
- # 3) Load pedigree information and construct trio relationships
- trio_fam = hl.Pedigree.read(ped_path)
- # 4) Run Hail's trio-based de novo caller with depth/AB/GQ-based thresholds
- # dnv_ht = modified_de_novo( # - For only Korean ASD WGS
- dnv_ht = hl.de_novo(
- mt = mt_dnv,
- pedigree = trio_fam,
- pop_frequency_prior= mt.gnomAD_AF,
- max_parent_ab = 0.1,
- min_child_ab = 0.3,
- min_dp_ratio = 0.3,
- min_gq = 20
- #min_p = 0.05 # - For only Korean ASD WGS
- )
- # 5) Keep only HIGH and MEDIUM confidence de novo candidates
- dnv_ht = dnv_ht.filter((dnv_ht.confidence == "HIGH") | (dnv_ht.confidence == "MEDIUM"))
- # 6) Write de novo results as Hail Table
- dnv_ht.write(os.path.join(output_dir, f'WGS_chr{chr_name}_DNV.ht'), overwrite=True)
- print(f'Done DNV calling for chr{chr_name} : Execution time = {time.time() - start} sec')
- return dnv_ht
- def process_rare_inherited_wgs(mt, gnomad_ht_path, ped_path, sample_info_path, internal_ac_ht_path, output_dir, chr_name):
- start = time.time()
- # 1) Read external AF resource (gnomAD) and annotate allele frequency to rows
- gnomad_ht = hl.read_table(gnomad_ht_path)
- mt = mt.annotate_rows(gnomAD_AF = gnomad_ht[mt.locus, mt.alleles].AF)
- # 2) Genotype-level QC for inherited variants (AB, PL, DP, GQ filters by genotype class)
- mt = mt.filter_entries(
- hl.case()
- .when(mt.GT.is_het(), (0.22 <= mt.AB) & (mt.AB <= 0.78) & (mt.PL[0] >= 25) & (mt.DP >= 10) & (mt.GQ >= 20))
- .when(mt.GT.is_hom_var(), (mt.AB >= 0.95) & (mt.PL[0] >= 25) & (mt.DP >= 10) & (mt.GQ >= 20))
- .default( (mt.DP >= 10) & (mt.GQ >= 20))
- )
- # 3) Variant-level QC (call rate and HWE)
- mt = mt.filter_rows((mt.variant_qc.call_rate >= 0.1) & (mt.variant_qc.p_value_hwe > 1e-12))
- # 4) Define rare and ultra-rare variant subsets based on external AF
- mt_rare = mt.filter_rows((mt.gnomAD_AF < 0.001) | hl.is_missing(mt.gnomAD_AF))
- mt_ultra_rare = mt.filter_rows((mt.gnomAD_AF < 0.00001) | hl.is_missing(mt.gnomAD_AF))
- # 5) Annotate sample-level metadata (role, family ID)
- info = hl.import_table(sample_info_path, delimiter='\t', key='s')
- mt_rare = mt_rare.annotate_cols(role = info[mt_rare.s].role,
- fam_id = info[mt_rare.s].fam_id)
- # 6) Annotate internal allele count (AC) from external cohort resource - For only EAS samples
- internal_ac_ht = hl.read_table(internal_ac_ht_path)
- mt_rare = mt_rare.annotate_rows(
- internal_AC = hl.or_else(internal_ac_ht[mt_rare.locus, mt_rare.alleles].internal_AC, 0))
- mt_ultra_rare = mt_ultra_rare.annotate_rows(
- internal_AC = hl.or_else(internal_ac_ht[mt_ultra_rare.locus, mt_ultra_rare.alleles].internal_AC, 0))
- # 7) Apply cohort-specific frequency filters using internal AC from external resource - For only EAS samples
- mt_rare = mt_rare.filter_rows(mt_rare.internal_AC < 18)
- mt_ultra_rare = mt_ultra_rare.filter_rows(mt_ultra_rare.internal_AC < 2)
- # 8) Checkpoint rare / ultra-rare sets BEFORE Mendelian error filtering
- mt_rare.write(
- os.path.join(output_dir, f'WGS_chr{chr_name}_rare_pre_mendelian.mt'),
- overwrite=True
- )
- mt_ultra_rare.write(
- os.path.join(output_dir, f'WGS_chr{chr_name}_ultra_rare_pre_mendelian.mt'),
- overwrite=True
- )
- # 9) Restrict to trio samples for inheritance pattern analysis - For only trio-based dataset (excluding non-trio cohorts)
- pedigree = hl.Pedigree.read(ped_path)
- trios = hl.array(sum([[x.s, x.mat_id, x.pat_id] for x in pedigree.complete_trios()], []))
- # --------------------------
- # 9-1) Mendelian filtering for rare variants
- # --------------------------
- mt_trio_rare = mt_rare.filter_cols(trios.contains(mt_rare.s))
- tm_rare = hl.trio_matrix(mt_trio_rare, pedigree, complete_trios=True)
- p_tm_rare = hl.experimental.phase_trio_matrix_by_transmission(tm_rare)
- p_tm_rare = p_tm_rare.annotate_entries(
- transmission_pattern = (
- hl.case()
- # transmission-based patterns from phased proband genotype
- .when(hl.is_defined(p_tm_rare.proband_entry.PBT_GT) & (p_tm_rare.proband_entry.PBT_GT == hl.call(1, 0, phased=True)), 'father')
- .when(hl.is_defined(p_tm_rare.proband_entry.PBT_GT) & (p_tm_rare.proband_entry.PBT_GT == hl.call(0, 1, phased=True)), 'mother')
- .when(hl.is_defined(p_tm_rare.proband_entry.PBT_GT) & (p_tm_rare.proband_entry.PBT_GT == hl.call(1, 1, phased=True)), 'both')
- # parental-only carrier pattern (no phased transmission available for proband)
- .when(
- hl.is_missing(p_tm_rare.proband_entry.PBT_GT) &
- (
- (hl.is_defined(p_tm_rare.father_entry.GT) & p_tm_rare.father_entry.GT.is_non_ref()) |
- (hl.is_defined(p_tm_rare.mother_entry.GT) & p_tm_rare.mother_entry.GT.is_non_ref())
- ),
- 'Parental'
- )
- .or_missing()
- )
- )
- valid = ['father', 'mother', 'both', 'Parental']
- mt_rare_filtered = p_tm_rare.filter_entries(hl.array(valid).contains(p_tm_rare.transmission_pattern))
- # 9-2) Mendelian filtering for ultra-rare variants (same logic)
- mt_trio_ultra = mt_ultra_rare.filter_cols(trios.contains(mt_ultra_rare.s))
- tm_ultra = hl.trio_matrix(mt_trio_ultra, pedigree, complete_trios=True)
- p_tm_ultra = hl.experimental.phase_trio_matrix_by_transmission(tm_ultra)
- p_tm_ultra = p_tm_ultra.annotate_entries(
- transmission_pattern = (
- hl.case()
- .when(hl.is_defined(p_tm_ultra.proband_entry.PBT_GT) & (p_tm_ultra.proband_entry.PBT_GT == hl.call(1, 0, phased=True)), 'father')
- .when(hl.is_defined(p_tm_ultra.proband_entry.PBT_GT) & (p_tm_ultra.proband_entry.PBT_GT == hl.call(0, 1, phased=True)), 'mother')
- .when(hl.is_defined(p_tm_ultra.proband_entry.PBT_GT) & (p_tm_ultra.proband_entry.PBT_GT == hl.call(1, 1, phased=True)), 'both')
- .when(
- hl.is_missing(p_tm_ultra.proband_entry.PBT_GT) &
- (
- (hl.is_defined(p_tm_ultra.father_entry.GT) & p_tm_ultra.father_entry.GT.is_non_ref()) |
- (hl.is_defined(p_tm_ultra.mother_entry.GT) & p_tm_ultra.mother_entry.GT.is_non_ref())
- ),
- 'Parental'
- )
- .or_missing()
- )
- )
- mt_ultra_rare_filtered = p_tm_ultra.filter_entries(hl.array(valid).contains(p_tm_ultra.transmission_pattern))
- # 10) Write rare / ultra-rare inherited variant MatrixTables to disk
- mt_rare_filtered.write(
- os.path.join(output_dir, f'WGS_chr{chr_name}_rare_inherited.mt'),
- overwrite=True
- )
- mt_ultra_rare_filtered.write(
- os.path.join(output_dir, f'WGS_chr{chr_name}_ultra_rare_inherited.mt'),
- overwrite=True
- )
- print(f'Done rare & ultra-rare inherited processing for chr{chr_name} : Execution time = {time.time() - start} sec')
- return mt_rare_filtered
- def prepare_for_prs_wgs(mt, gwas_sum_path, liftover_chain_path, output_dir, chr_name):
- start = time.time()
- # 1) Variant-level QC for common variants
- mt = mt.filter_rows(
- (mt.variant_qc.call_rate >= 0.95) &
- (mt.variant_qc.p_value_hwe >= 1e-6) &
- (mt.variant_qc.AF[1] > 0.05))
- # 2) Register liftover chain and perform GRCh38 → GRCh37 coordinate liftOver
- rg37 = hl.get_reference('GRCh37')
- rg38 = hl.get_reference('GRCh38')
- rg38.add_liftover(liftover_chain_path, rg37)
- mt = mt.annotate_rows(new_locus = hl.liftover(mt.locus, 'GRCh37', include_strand=True))
- mt = mt.filter_rows(hl.is_defined(mt.new_locus) & ~mt.new_locus.is_negative_strand)
- mt = mt.key_rows_by(locus = mt.new_locus.result, alleles = mt.alleles)
- # 3) Reformat long alleles (>13bp) for compatible representation
- mt = mt.annotate_rows(
- new_alleles = hl.array([
- (mt.alleles[0][:13] + '+' + hl.str(mt.alleles[0].length() - 13)) if (mt.alleles[0].length() > 13) else mt.alleles[0],
- (mt.alleles[1][:13] + '+' + hl.str(mt.alleles[1].length() - 13)) if (mt.alleles[1].length() > 13) else mt.alleles[1],
- ]))
- # 4) Remove strand-ambiguous variants (A/T, C/G) to avoid strand issues
- mt = mt.filter_rows(~hl.is_strand_ambiguous(mt.new_alleles[0], mt.new_alleles[1]))
- # 5) Read GWAS summary statistics (on GRCh37) with locus + allele keys
- gwas = hl.import_table(
- gwas_sum_path,
- types={'locus': hl.tlocus(reference_genome='GRCh37')},
- impute=True,
- delimiter='\t',
- force_bgz=True,
- key=['locus', 'A1', 'A2'])
- # 6) Compute cohort AC/AN and align with GWAS AF for frequency harmonization
- rows = mt.rows().key_by('locus', 'alleles')
- rows = rows.annotate(
- AC1 = rows.variant_qc.AC[0],
- AC2 = rows.variant_qc.AC[1],
- N = rows.variant_qc.AN,
- gwas_AF = gwas[rows.locus, rows.alleles[0], rows.alleles[1]].F)
- # 7) Calculate chi-square statistic to flag AF-discordant variants
- rows = rows.annotate(
- chi_stat = (
- (rows.AC1 - rows.N * rows.gwas_AF) ** 2 / (rows.N * rows.gwas_AF)
- ) + (
- (rows.AC2 - rows.N * (1 - rows.gwas_AF)) ** 2 / (rows.N * (1 - rows.gwas_AF))
- ))
- # 8) Remove variants with outlier AF discrepancy (chi-square > mean + 1 SD)
- stats = rows.aggregate(hl.agg.stats(rows.chi_stat))
- threshold = stats['mean'] + stats['stdev']
- mt = mt.filter_rows(rows[mt.row_key].chi_stat < threshold)
- # 9) Export PRS-ready genotype data in PLINK format (for PRScs / PRS pipeline)
- hl.export_plink(
- mt,
- os.path.join(output_dir, f"WGS_chr{chr_name}_PRS_ready"),
- varid = mt.SNP,
- ind_id = mt.s)
- print(f'Done PRS preparation for chr{chr_name} : Execution time = {time.time() - start} sec')
- return mt
- def annotate_and_prioritize_variants(variant_table, vep_config_path, mpc_ht_path, constraint_ht_path, output_dir):
- # 1) Run VEP to obtain functional annotations for all variants
- vt = hl.vep(variant_table, vep_config_path)
- # 2) Extract key transcript-level metadata (gene symbol, transcript ID, gene ID)
- vt = vt.annotate(
- gene_symbol = vt.vep.transcript_consequences.gene_symbol[0],
- transcript_id = vt.vep.transcript_consequences.transcript_id[0],
- gene_id = vt.vep.transcript_consequences.gene_id[0])
- # 3) Annotate variant-level MPC scores by locus / alleles / transcript
- mpc = hl.read_table(mpc_ht_path).key_by('locus', 'alleles', 'ENST')
- vt = vt.key_by(vt.locus, vt.alleles, vt.transcript_id)
- vt = vt.annotate(MPC = mpc[vt.locus, vt.alleles, vt.transcript_id].MPC)
- # 4) Annotate gene-level constraint metrics (e.g. pLI, LOEUF) from external constraint resource
- cons = hl.read_table(constraint_ht_path).key_by('gene', 'transcript')
- vt = vt.key_by(vt.gene_symbol, vt.transcript_id)
- vt = vt.annotate(constraint = cons[vt.gene_symbol, vt.transcript_id])
- vt = vt.key_by(vt.locus, vt.alleles)
- # 5) Define protein-truncating variants (PTV) using consequence + LOF annotation from VEP
- ptv = (
- hl.array(['frameshift_variant', 'splice_acceptor_variant', 'splice_donor_variant', 'stop_gained'])
- .contains(vt.vep.most_severe_consequence) &
- (vt.vep.transcript_consequences.lof[0] == 'HC') &
- (
- (vt.vep.transcript_consequences.lof_flags[0] == 'SINGLE_EXON') |
- hl.is_missing(vt.vep.transcript_consequences.lof_flags[0])
- ))
- # 6) Group remaining functional classes: missense, inframe indel, synonymous
- missense = hl.array(['missense_variant', 'stop_lost', 'start_lost', 'protein_altering_variant']).contains(vt.vep.most_severe_consequence)
- inframe_indel = hl.array(['inframe_deletion', 'inframe_insertion']).contains(vt.vep.most_severe_consequence)
- synonymous = hl.array(['synonymous_variant', 'stop_retained_variant', 'incomplete_terminal_codon_variant']).contains(vt.vep.most_severe_consequence)
- # 7) Assign a coarse variant category label (VariantType) for downstream prioritization
- vt = vt.annotate(
- VariantType = hl.case()
- .when(ptv, 'protein_truncating')
- .when(missense, 'missense')
- .when(inframe_indel, 'inframe_indel')
- .when(synonymous, 'synonymous')
- .or_missing())
- # 8) Restrict to protein-coding transcripts with a defined variant category
- vt = vt.filter(
- (vt.vep.transcript_consequences.biotype[0] == 'protein_coding') &
- hl.is_defined(vt.VariantType))
- # 9) Write annotated and categorized variant table to disk
- vt.write(os.path.join(output_dir, 'WGS_annotated.ht'), overwrite=True)
- return vt
- #########################################################
- # Driver script
- #########################################################
- if __name__ == "__main__":
- hl.init(log="/tmp/hail_pipeline.log")
- vcf_path = "/path/to/joint_called.vcf.bgz"
- gnomad_ht_path = "/path/to/gnomad.af.ht"
- lcr_bed_path = "/path/to/LCR-hs38.bed"
- ped_path = "/path/to/family.ped"
- sample_info_path = "/path/to/sample_info.txt"
- internal_ac_ht_path = "/path/to/EAS_internal_AC.ht"
- liftover_chain_path = "/path/to/grch38_to_grch37.over.chain.gz"
- gwas_sum_path = "/path/to/gwas_sumstats.txt.bgz"
- vep_config_path = "/path/to/vep_config.json"
- mpc_ht_path = "/path/to/MPC38.ht"
- constraint_ht_path = "/path/to/constraint_metrics.ht"
- output_dir = "/path/to/output_dir/"
- chr_name = "1"
- # QC
- mt_qc = quality_control_wgs(
- vcf_path = vcf_path,
- output_dir = output_dir,
- chr_name = chr_name,
- lcr_bed_path = lcr_bed_path
- )
- # De novo variants
- dnv_ht = call_denovo_wgs(
- mt = mt_qc,
- ped_path = ped_path,
- gnomad_ht_path= gnomad_ht_path,
- output_dir = output_dir,
- chr_name = chr_name
- )
- # Rare / ultra-rare inherited variants
- mt_inherited_rare = process_rare_inherited_wgs(
- mt = mt_qc,
- gnomad_ht_path = gnomad_ht_path,
- ped_path = ped_path,
- sample_info_path = sample_info_path,
- internal_ac_ht_path= internal_ac_ht_path,
- output_dir = output_dir,
- chr_name = chr_name
- )
- # PRS preparation
- mt_prs = prepare_for_prs_wgs(
- mt = mt_qc,
- gwas_sum_path = gwas_sum_path,
- liftover_chain_path= liftover_chain_path,
- output_dir = output_dir,
- chr_name = chr_name
- )
- # Functional annotation and prioritization (example: de novo variants)
- annotated_ht = annotate_and_prioritize_variants(
- variant_table = dnv_ht,
- vep_config_path = vep_config_path,
- mpc_ht_path = mpc_ht_path,
- constraint_ht_path=constraint_ht_path,
- output_dir = output_dir
- )
- print("Pipeline completed.")
Variants_filtering.py at commit e0e7f6a, under MIT · at the source
Overview
15 affiliations
- Department of Integrated Biomedical and Life Science, Korea University,Seoul, 02841 Republic of Korea
- L-HOPE Program for Community-Based Total Learning Health Systems, Korea University,Seoul, 02841 Republic of Korea
- National Research Laboratory for Convergence Degradation Biology, Korea University,Seoul, 02841 Republic of Korea
- Department of Anatomy, Korea University College of Medicine,Seoul, 02841 Republic of Korea
- School of Biosystems and Biomedical Science, College of Health Science, Korea University,Seoul, 02841 Republic of Korea
- Department of Psychiatry, Seoul National University Bundang Hospital,Seongnam, 13620 Republic of Korea
- Department of Psychiatry, Seoul National University College of Medicine,Seoul, 03080 Republic of Korea
- Department of Psychiatry, Soonchunhyang University Bucheon Hospital,Bucheon-si, Gyeonggi-do Republic of Korea
- Department of Biological Sciences, Korea Advanced Institute of Science and Technology,Daejeon, Republic of Korea
- Center for Synaptic Brain Dysfunctions, Institute for Basic Science,Daejeon, Republic of Korea
- The Lundbeck Foundation Initiative for Integrative Psychiatric Research, iPSYCH,Aarhus, Denmark
- Center for Genomics and Personalized Medicine, Aarhus, Denmark
- Department of Biomedicine, Aarhus University,Aarhus, Denmark
- Bioinformatics Research Centre, BiRC, Aarhus University,Aarhus, Denmark
- School of Psychology, Korea University,Seoul, Republic of Korea
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repositories
Its files are read in the Code ↔ Paper reader above, with 32 matches between paragraphs and lines of code.
Leehyeji789/Co-occurrence-analysis-in-ASD
e0e7f6aaf44990220c3a15ca7166f37ab4550eb5, 24 November 2025Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
20 files
- CoExp_correlation.R, R, 130 lines
- FET_geneset.R, R, 103 lines
- Figure1.R, R, 408 lines, 4 matches
- Figure2.R, R, 187 lines, 3 matches
- Figure3.R, R, 396 lines, 2 matches
- Figure4.R, R, 121 lines, 3 matches
- Post_hoc_analysis.R, R, 209 lines, 3 matches
- Simulation_test.R, R, 155 lines
- Single_gene_burden.R, R, 91 lines
- Variants_filtering.py, Python, 438 lines, 8 matches
- burden_test.R, R, 394 lines
- cross_evaluation.R, R, 608 lines, 1 match
- function_definition.R, R, 475 lines
- gen_phe_association.R, R, 255 lines, 2 matches
- ident_gene_pair.R, R, 290 lines, 2 matches
- modified_denovo.py, Python, 270 lines
- pTDT_calculation.R, R, 109 lines, 3 matches
- run_PRScs.sh, Shell, 109 lines, 1 match
- LICENSE, License, 21 lines
- README.md, Text, 119 lines
Zenodo 17695517
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
- 30 September 2026: the link answers (HTTP 200)
20 files
- CoExp_correlation.R, R, 130 lines
- FET_geneset.R, R, 103 lines
- Figure1.R, R, 408 lines
- Figure2.R, R, 187 lines
- Figure3.R, R, 396 lines
- Figure4.R, R, 121 lines
- Post_hoc_analysis.R, R, 209 lines
- Simulation_test.R, R, 155 lines
- Single_gene_burden.R, R, 91 lines
- Variants_filtering.py, Python, 438 lines
- burden_test.R, R, 394 lines
- cross_evaluation.R, R, 608 lines
- function_definition.R, R, 475 lines
- gen_phe_association.R, R, 255 lines
- ident_gene_pair.R, R, 290 lines
- modified_denovo.py, Python, 270 lines
- pTDT_calculation.R, R, 109 lines
- run_PRScs.sh, Shell, 109 lines
- LICENSE, License, 21 lines
- README.md, Text, 114 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 36 scripts, each with its path and the digest of its content;
- 32 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
- zenodo:17696088, at Zenodo; found in “Data availability”
- zenodo:18860575, at Zenodo; found in “Data availability”
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to 2 datasets: Zenodo 17696088, Zenodo 18860575
- it points to the authors' code: Leehyeji789/
Co-occurrence-analysis-i , Zenodo 17695517n-ASD - it says that the data are available on request
Read it in the paper: doi.org/10.1186/s13059-026-04041-x.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 19 authors, 8 keywords, 8 MeSH terms, 5 funders, 92 references.
Cite
This paper
Lee, H., Ko, K., Kim, S., Lee, G., Kim, S., Lee, J., Song, D.-Y., Bong, G., Han, J. H., Lee, J., Kim, Y. R., Lee, Y., Kim, E., Børglum, A. D., Grove, J., Kim, S. H., Sun, W., Yoo, H. J., & An, J.-Y. (2026). Co-occurrence of rare variants implicates gene pairs in cytoskeletal pathways and is associated with increased severity in autism spectrum disorder. Genome biology, 27(1), 147. https://
BibTeX
@article{lee2026co,
author = {Lee, Hyeji and Ko, Kahee and Kim, Seoyeon and Lee, Ganghee and Kim, Soowhee and Lee, Jihae and Song, Da-Yea and Bong, Guiyoung and Han, Jae Hyun and Lee, Jeewon and Kim, Ye Rim and Lee, Yoojeong and Kim, Eunjoon and Børglum, Anders D. and Grove, Jakob and Kim, So Hyun and Sun, Woong and Yoo, Hee Jeong and An, Joon-Yong},
title = {{Co-occurrence of rare variants implicates gene pairs in cytoskeletal pathways and is associated with increased severity in autism spectrum disorder}},
journal = {Genome biology},
year = {2026},
month = mar,
volume = {27},
number = {1},
pages = {147},
publisher = {BMC},
issn = {1474-7596},
doi = {10.1186/
url = {https://
pmid = {41872878},
pmcid = {PMC13134247}
}
RIS
TY - JOUR
AU - Lee, Hyeji
AU - Ko, Kahee
AU - Kim, Seoyeon
AU - Lee, Ganghee
AU - Kim, Soowhee
AU - Lee, Jihae
AU - Song, Da-Yea
AU - Bong, Guiyoung
AU - Han, Jae Hyun
AU - Lee, Jeewon
AU - Kim, Ye Rim
AU - Lee, Yoojeong
AU - Kim, Eunjoon
AU - Børglum, Anders D.
AU - Grove, Jakob
AU - Kim, So Hyun
AU - Sun, Woong
AU - Yoo, Hee Jeong
AU - An, Joon-Yong
TI - Co-occurrence of rare variants implicates gene pairs in cytoskeletal pathways and is associated with increased severity in autism spectrum disorder
T2 - Genome biology
J2 - Genome Biol
PY - 2026
DA - 2026/
VL - 27
IS - 1
SP - 147
SN - 1474-7596
PB - BMC
DO - 10.1186/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1186/
"type": "article-journal",
"title": "Co-occurrence of rare variants implicates gene pairs in cytoskeletal pathways and is associated with increased severity in autism spectrum disorder",
"container-title": "Genome biology",
"author": [
{
"family": "Lee",
"given": "Hyeji"
},
{
"family": "Ko",
"given": "Kahee"
},
{
"family": "Kim",
"given": "Seoyeon"
},
{
"family": "Lee",
"given": "Ganghee"
},
{
"family": "Kim",
"given": "Soowhee"
},
{
"family": "Lee",
"given": "Jihae"
},
{
"family": "Song",
"given": "Da-Yea"
},
{
"family": "Bong",
"given": "Guiyoung"
},
{
"family": "Han",
"given": "Jae Hyun"
},
{
"family": "Lee",
"given": "Jeewon"
},
{
"family": "Kim",
"given": "Ye Rim"
},
{
"family": "Lee",
"given": "Yoojeong"
},
{
"family": "Kim",
"given": "Eunjoon"
},
{
"family": "Børglum",
"given": "Anders D."
},
{
"family": "Grove",
"given": "Jakob"
},
{
"family": "Kim",
"given": "So Hyun"
},
{
"family": "Sun",
"given": "Woong"
},
{
"family": "Yoo",
"given": "Hee Jeong"
},
{
"family": "An",
"given": "Joon-Yong"
}
],
"container-title-short":
"volume": "27",
"issue": "1",
"page": "147",
"DOI": "10.1186/
"PMID": "41872878",
"PMCID": "PMC13134247",
"ISSN": "1474-7596",
"publisher": "BMC",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
23
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41586-025-10047-5 [code]
- Developmental convergence and divergence in human stem cell models of autism.Journal: NatureIn common: reticulate, broom, clusterProfiler, 6 other tools, autism, genetics / omics, 10 references
- [2] doi:10.1038/s41467-025-59949-y [code]
- Whole-genome sequencing analyses suggest novel genetic factors associated with Alzheimer's disease and a cumulative effects model for risk liability.Journal: Nature communicationsIn common: broom, clusterProfiler, ggpubr, 3 other tools, genetics / omics, 9 references, author Joon-Yong An
- [3] doi:10.1038/s41467-026-72598-z [code]
- Functional impact of genetic background on variable expressivity in neurodevelopmental disorders.Journal: Nature communicationsIn common: clusterProfiler, patchwork, ggpubr, 3 other tools, 11 references
- [4] doi:10.1038/s41591-023-02408-2 [code]
- Phenotypic effects of genetic variants associated with autism.Journal: Nature medicineIn common: data.table, autism, genetics / omics, 12 references, author Jakob Grove
- [5] doi:10.1016/j.xgen.2022.100250 [code]
- Protein interaction studies in human induced neurons indicate convergent biology underlying autism spectrum disorders.Journal: Cell genomicsIn common: reticulate, broom, patchwork, 5 other tools, autism, genetics / omics, cellular / molecular, 8 references
- [6] doi:10.1073/pnas.2203491119 [code]
- Integrated gene analyses of de novo variants from 46,612 trios with autism and developmental disorders.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: cowplot, data.table, ggplot2, 1 other tool, autism, genetics / omics, 11 references
- [7] doi:10.1038/s42003-023-05483-w [code]
- A Cre-dependent massively parallel reporter assay allows for cell-type specific assessment of the functional effects of non-coding elements in vivo.Journal: Communications biologyIn common: broom, patchwork, ggpubr, 3 other tools, cellular / molecular, 6 references, author Joon-Yong An
- [8] doi:10.1111/pcn.13676
- Short tandem repeat expansions in cortical layer-specific genes implicate in phenotypic severity and adaptability of autism spectrum disorder.Journal: Psychiatry and clinical neurosciencesIn common: autism, genetics / omics, cellular / molecular, 10 references, author Joon-Yong An
- [9] doi:10.1038/s42003-026-10380-z [code]
- Identification of moderate effect size genes in autism spectrum disorder through a novel gene pairing approach.Journal: Communications biologyIn common: data.table, ggplot2, tidyverse, autism, genetics / omics, cellular / molecular, 11 references
- [10] doi:10.1093/bib/bbae323 [code]
- CWAS-Plus: estimating category-wide association of rare noncoding variation from whole-genome sequencing data with cell-type-specific functional data.Journal: Briefings in bioinformaticsIn common: data.table, ggplot2, tidyverse, autism, genetics / omics, 7 references, author Joon-Yong An
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 36 scripts, and 32 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:3a23e229cfd45542…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1186/s13059-026-04041-x)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1186/s13059-026-04041-x.svg
:target: https://openscicode.org/badge/doi/10.1186/s13059-026-04041-x
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1186/s13059-026-04041-x"><img src="https://openscicode.org/badge/doi/10.1186/s13059-026-04041-x.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
