Genetix is a sophisticated genetic inheritance prediction platform that combines classical Mendelian genetics with modern machine learning approaches. The application provides a comprehensive suite of tools for analyzing, visualizing, and predicting genetic trait inheritance patterns across generations.
When applying Pedigree Logic and a Probability Trait Engine to observational datasets, graph-based familial networks, or entity-trait lineage tracking, the mathematical framework relies on Conditional Probability, Mendelian Factorization, and Bayesian Updating.
A pedigree network is modeled as a Directed Acyclic Graph
-
$V = {1, 2, \dots, N}$ represents individuals or entities. -
$E \subset V \times V$ represents parental dependency edges directed from parent to offspring.
For any individual
-
$\text{Pa}(i)$ denotes the set of parent nodes for$i$ . - If
$\text{Pa}(i) = \emptyset$ , node$i$ is designated as a founder.
Let
The joint likelihood across the entire pedigree tree factorizes as:
Where:
-
Penetrance Function
$P(P_i \mid G_i)$ : The probability that genotype$G_i$ expresses trait$P_i$ . -
Transition Matrix
$P\left(G_j \mid G_{\text{Pa}(j)}\right)$ : The probability that parents with genotypes$G_{\text{Pa}(j)}$ transmit genotype$G_j$ to offspring$j$ .
To calculate the posterior probability that an unobserved or carrier node
Expanding
When comparing two candidate inheritance traits or hypotheses
For large multi-generational graphs, likelihood evaluations compute sum-products recursively from descendants back to founders:
This formulation guarantees exact evaluation of trait transmission probabilities across
The core limitation of global DNA testing platforms like 23andMe and AncestryDNA for South Asian users is that they rely on limited reference panels (such as the 1000 Genomes Gujarati-diaspora dataset) and broad categories like "Southern India" or "Broadly South Asian".
By building Genetix to ingest raw data files (.vcf or .txt SNP arrays) and process them against specialized local reference frameworks, you directly address this gap.
How Genetix Can Solve This Problem Local VCF / SNP Parsing (Privacy-First Data Ingestion):
Just as global tests allow users to download their raw data files, Genetix can ingest these genotype files client-side. This keeps sensitive genomic data secure in the browser without needing a physical lab retest.
Instead of outputting 2 or 3 broad geographic bins, Genetix's logic layer can be scaled to map specific SNP signatures against localized regional cohorts and endogamous community clusters (differentiating between linguistic groups, sub-castes, and state-level demographics).
Rather than stopping at shallow labels, your engine can estimate foundational deep-ancestry proportionsβsuch as Ancestral North Indian (ANI), Ancestral South Indian (ASI), and the deep Ancient Ancestral South Indian (AASI) baseline substrateβreflecting historical migrations like steppe pastoralists and Iranian farmers.
You can leverage your existing architecture (Bayesian logic layers for monogenic risk/Mendelian inheritance combined with VAE/probabilistic modeling for polygenic traits) to project complex phenotypic traits and regional ancestry likelihoods accurately.
By implementing modules for raw genetic data parsing, regional clustering, and deep ancestry breakdown, Genetix transforms standard, generic consumer DNA files into precise, localized clinical and ancestry insights tailored specifically to South Asian genetic diversity.
The application architecture bifurcates genetic processing into two distinct specialized layers to ensure scientific accuracy and computational efficiency:
For single-gene traits like ABO/Rh Blood Types, the engine utilizes a Bayesian network rather than predictive AI. This ensures 100% logical accuracy for traits that follow strict inheritance rules.
Complex traits like Height, Skin Tone, and Hair Texture are influenced by hundreds of variables. The engine uses a Variational Autoencoder (VAE) approach to predict probability distributions based on parental phenotypes.
- Frontend: React 19 + Vite + Tailwind CSS.
- Intelligence:
@google/genai(Gemini API) for phenotypic synthesis reports. - Architecture: Separation of concerns (Services, Lib/Logic, UI Components).
- Animations:
framer-motionfor fluid state transitions and entrance effects. - Visuals:
rechartsfor dynamic probability mapping.
This contains everything you need to run your app locally - Made with Google AI studio | Mohan Yadav.
Prerequisites: Node.js
- Install dependencies:
npm install - Set the
GEMINI_API_KEYin .env.local to your Gemini API key - Run the app:
npm run dev
To verify the engine's reactive logic, try the following configurations:
- Rh Incompatibility Alert: Set Parent Alpha to an Rh-negative type (e.g., O-) and Parent Beta to an Rh-positive type (e.g., AB+).
- Maternal Health Risk: Adjust maternal age to 36+ or set Blood Pressure to 145/95 to trigger the "HIGH RISK" status and corresponding AI clinical context.
- Variant Call Format v4.2 (.VCF): Client-side drag-and-drop parser for VCF files or raw SNP text files (e.g., 23andMe, AncestryDNA, or Whole Exome Sequencing data).
Currently, users select predefined genotypes. Real-world users (couples or genetic counselors) bring raw sequencing files.
FileName: mother_carrier.vcf
Contains: Pathogenic Cystic Fibrosis deltaF508 mutation (rs113993960) in heterozygous state (0/1).
##fileformat=VCFv4.2
##fileDate=20260815
##source=GenetixTestEngine
##reference=GRCh38
##INFO=<ID=RS,Number=1,Type=String,Description="dbSNP ID">
##INFO=<ID=CLNSIG,Number=.,Type=String,Description="ClinVar Clinical Significance">
##INFO=<ID=GENE,Number=1,Type=String,Description="Gene Symbol">
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT SAMPLE
chr7 117559590 rs113993960 CTTT C . PASS RS=113993960;GENE=CFTR;CLNSIG=Pathogenic GT 0/1
chr13 32316461 rs80357065 A G . PASS RS=80357065;GENE=BRCA2;CLNSIG=Benign GT 0/0If your file drop handler also accepts raw 23andMe / Ancestry text exports, here is a snippet you can save as 23andme_sample.txt:
# 23andMe Data Export (Test Mock)
# rsid chromosome position genotype
rs113993960 7 117559590 DI
rs334 11 5227002 TA
rs80357065 13 32316461 AA
| Test Scenario | Test Case Configuration | Expected Outcome |
|---|---|---|
| Rh Incompatibility | Parent Alpha: O- Parent Beta: AB+ |
Rh incompatibility alert triggered |
| High-Risk Pregnancy | Maternal Age: 36+ Blood Pressure: 145/95 |
"HIGH RISK" status with clinical recommendations |
| Autosomal Dominant | Parent: Huntington's positive | 50% inheritance probability calculated |
| X-Linked Recessive | Mother: Carrier Father: Normal |
50% male offspring affected |
| Pedigree Export | Complete family tree | Valid JSON with schema version |
This is an open-source project aimed at making complex genetics accessible. Whether it's optimizing the Bayesian logic or improving the UI, your contributions are welcome!
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β GENETIX RESEARCH PAPER β
ββββββββββββββββββββββββββ¬ββββββββββββββββββββββββ¬βββββββββββββββββββββββββ€
β CONTRIBUTION 1 β CONTRIBUTION 2 β CONTRIBUTION 3 β
β High-Performance Edge β Deterministic-Bayesianβ Verified Generative AI β
β Computing (WASM) β Polygenic Modeling β Guardrail Layers β
ββββββββββββββββββββββββββ΄ββββββββββββββββββββββββ΄βββββββββββββββββββββββββ
- Fork the Project.
- Create your Feature Branch (
git checkout -b feature/AmazingFeature). - Commit your Changes (
git commit -m 'Add some AmazingFeature'). - Push to the Branch (`git push origin featureNormally I can help with things like this, but I don't seem to have access to that content. You can try again or ask me for something else.
Non-Commercial Open Use: Unless explicitly authorized under separate commercial terms, deployment of the public code repository must not be used to charge patients for unauthorized clinical diagnostic services.
Authors: Mr. Mohan Yadav
Mumbai, Maharashtra, India
Corresponding Emails: Mohanshyadav@gmail.com

