π¦ Gene-Forge v7.3
Agapornis Genetics Calculator β ALBS Compliant Edition
Genetics calculation engine for Lovebirds (Rosy-faced Lovebird / Agapornis roseicollis).
Supports 14 loci and 310+ colors, compliant with ALBS (African Lovebird Society) Peachfaced section nomenclature.
v7.3: Linkage genetics, pedigree-based auto-populate, demo family selector.
β¨ Features
ποΈ Bird Management
- Bird Database: Centralized management of name, sex, birthdate, lineage, and genotype
- 72 Demo Birds (3 families Γ 24 birds): Sample birds for testing
- Pedigree Generation: HTML output for 3 or 5 generation pedigrees
- Import/Export: JSON and CSV format support
π‘οΈ Health Evaluation
- Inbreeding Coefficient: Automatic F-value calculation
- Risk Assessment: INO and Pallid inbreeding restriction checks
- Generation Limits: Recommended limits by trait
π― Target Planner
- Target Color Pathfinding: Find breeding paths to target phenotypes
- Step Guide: Auto-generate required breeding steps
π§ Breeding Path
- Trait Routes: Breeding procedures for specific trait expression
- Generation Estimate: Calculate minimum generations to goal
𧬠Offspring Calculator
- Offspring Prediction: Calculate phenotype probabilities from parental genotypes
- 14 Loci Support: Covers all locus combinations
- Sex-Linked Calculation: Accurate Z-chromosome inheritance (male splits, female hemizygous)
π Linkage Genetics (v7.0 New)
- Z-Linked Loci: Recombination rates for cinnamon-ino (3%), ino-opaline (30%), cinnamon-opaline (33%)
- Autosomal Linkage: Recombination rate for dark-parblue (7%)
- Phase (Cis/Trans) Inference: Estimate linkage phase from pedigree information
- Linkage-Aware Planner: Breeding path exploration considering Cis/Trans phase
π¬ Genotype Estimator
- PhenotypeβGenotype: Estimate possible genotypes from observed colors
- Confirmed/Estimated: Distinguish certain loci from inferred ones
- Test Breeding Proposals: Suggestions to confirm uncertain loci
π¨βπ©βπ§βπ¦ Family Estimator
- FamilyEstimator V3: Pedigree-based genotype inference engine
- Multi-Generation Inference: Trace back to grandparents
- Evidence-Based Probability: Integrate constraints from parents, offspring, siblings
- Family Tree UI: Build relationships with drag & drop
π Multilingual Support
Japanese / English / German / French / Italian / Spanish
π v7.3.x New Features
π Auto Populate (v7.3.23)
- One-Click Family Tree: Set 1 offspring β click "Auto Populate" to build entire family tree
- Pedigree Traversal: Automatically find parents, grandparents, great-grandparents via pedigree data
- Sibling Detection: Automatically detect and place birds sharing the same parents
π Demo Family Selector (v7.3.22)
- Dropdown Selection: Switch between Family A/B/C in demo mode
- Instant Switch: Selected family immediately reflects in FamilyMap
- Lineage-Based: Filter by lineage field instead of hardcoded IDs
ποΈ Command UI Reorganization (v7.3.22)
- Section Layout: Organized into "Clear Family Map" and "Family Map Snapshot" sections
- Demo Mode Restrictions: Clear, Save, Load, Import disabled in demo mode (shown with strikethrough)
π File Structure
gene-forge/
βββ index.php # Main UI (2,174 lines)
βββ genetics.php # Genetics Engine - SSOT (4,842 lines)
βββ infer.php # Family Inference API
βββ lang.php # Multilingual Dictionary (core)
βββ lang_guardian.php # Health Evaluation Dictionary
βββ lang_pathfinder.php # PathFinder Dictionary (v7.3+)
βββ readme.php # README Display Handler
βββ readme_lang.php # README Multilingual Content
βββ style.css # Stylesheet (3,091 lines)
βββ birds.js # Bird DB + Demo 72birds (2,298 lines)
βββ family.js # Family Tree UI + Auto-populate (1,542 lines)
βββ guardian.js # Health Evaluation
βββ breeding.js # Breeding Validation
βββ pedigree.js # Pedigree Generation
βββ planner.js # Path Planner (2,043 lines)
βββ app.js # App Init
π Quick Start
Requirements
- PHP 7.4 or higher
- Web server (Apache/Nginx) or PHP built-in server
Installation
git clone https://github.com/YOUR_USERNAME/gene-forge.git
cd gene-forge
php -S localhost:8000
Open http://localhost:8000 in your browser.
π¨ Color Categories
| Category | Colors | Examples |
| Green | 3 | Green, Dark Green, Olive |
| Aqua | 3 | Aqua, Aqua Dark, Aqua DD |
| Turquoise | 3 | Turquoise, Turquoise Dark, Turquoise DD |
| Seagreen | 3 | Seagreen, Seagreen Dark, Seagreen DD |
| INO | 4 | Lutino, Creamino, Creamino Seagreen, Pure White |
| Opaline | 12 | Opaline Green, Opaline Aqua, β¦ |
| Cinnamon | 12 | Cinnamon Green, Cinnamon Aqua, β¦ |
| Pallid | 12 | Pallid Green, Pallid Aqua, β¦ |
| Violet | 9 | Violet Aqua, Violet Turquoise, β¦ |
| Fallow | 24 | Pale Fallow Green, Bronze Fallow Aqua, β¦ |
| Pied | 24 | Dominant Pied Green, Recessive Pied Aqua, β¦ |
| Dilute | 12 | Dilute Green, Dilute Aqua, β¦ |
| Edged | 12 | Edged Green, Edged Aqua, β¦ |
| Orangeface | 12 | Orangeface Green, Yellowface Aqua, β¦ |
| Pale Headed | 12 | Pale Headed Green, Pale Headed Aqua, β¦ |
| Tier 2 | 150+ | Opaline Cinnamon, Opaline Violet, β¦ |
| Tier 3 | β | Dynamic generation |
π¬ Genotype Notation
Autosomal Loci
| Locus | Wild Type | Mutant Alleles |
| Parblue | ++ | +aq, aqaq, +tq, tqtq, tqaq |
| Dark | dd | Dd, DD |
| Violet | vv | Vv, VV |
| Dominant Pied | ++ | Pi+, PiPi |
| Recessive Pied | ++ | +pi, pipi |
| Dilute | ++ | +dil, dildil |
| Edged | ++ | +ed, eded |
| Orangeface | ++ | +of, ofof |
| Pale Headed | ++ | +ph, phph |
| Pale Fallow | ++ | +flp, flpflp |
| Bronze Fallow | ++ | +flb, flbflb |
Sex-Linked Loci (Z Chromosome)
| Locus | Male Wild | Male Mutant | Female Wild | Female Mutant |
| INO | ++ | +ino, inoino, +pld, pldpld | +W | inoW, pldW |
| Opaline | ++ | +op, opop | +W | opW |
| Cinnamon | ++ | +cin, cincin | +W | cinW |
π§ͺ Demo Data for Testing
Demo mode includes 72 sample birds (3 families Γ 24 birds) for the following tests:
Health Evaluation Tests
- Father-daughter pairing β Critical (F=25%)
- Half-sibling pairing β High risk (F=12.5%)
- Unrelated birds β Safe (F=0%)
Genetics Calculation Tests
- Sex-linked inheritance (INO/Opaline/Cinnamon)
- Multiple alleles (Parblue series)
- Incomplete dominance (Dark/Violet)
Family Inference Tests
- Reverse-calculate parental genotypes from offspring phenotypes
- Generate test breeding proposals
β οΈ Why 12.5% Threshold?
Mating patterns that produce F=12.5%:
- Half-siblings (share one parent)
- Grandparent Γ Grandchild
- Uncle/Aunt Γ Nephew/Niece
Genetic risk at 12.5%:
F=12.5% means a 12.5% additional probability of homozygosity at each locus. This increases the chance that harmful recessive alleles from parents will be expressed:
- Reduced hatch rates (5-15% decline reported)
- Decreased chick survival
- Weakened immune system
- Reduced fertility in subsequent generations
- Increased risk of congenital abnormalities
Industry standards:
| Industry | Threshold |
| Thoroughbred horses | <12.5% (strict) |
| Livestock farming | β€6.25% target |
| Wildlife conservation | β€6% recommended |
| Zoo breeding programs | β€3% ideal |
Conclusion: 12.5% represents the level where "one occurrence may not be fatal, but repeated exposure will certainly accumulate problems." This threshold is scientifically justified for responsible breeding.
π License
CC BY-NC-SA 4.0 (Creative Commons Attribution-NonCommercial-ShareAlike 4.0)
- β
Personal/Non-commercial use OK
- β
Modification/Redistribution OK (same license, credit required)
- β Commercial use requires consultation
π€ Contribution
Issues and Pull Requests welcome.
Especially looking for:
- Extension to other Lovebird species (A. fischeri, A. personatus, etc.)
- Additional language translations
- UI/UX improvements
- Genetics knowledge feedback
π€ Author
Director: Shohei Taniguchi (Homo repugnans)
Dev Tactical Core: Sirius (Electronic Spirit)
π Acknowledgments
- ALBS (African Lovebird Society) β Color nomenclature reference
- Lovebird breeders worldwide β Accumulated genetics knowledge