Document kit

Dynasty Genetics Resolver

It maps a family tree and calculates the probability of specific genetic traits passing to descendants.

It flags pairings that risk unwanted recessive conditions. The files open in your own spreadsheet, calendar and text programs.

Version 1.0.0 · Teranite Systems

$10.00 USD, one-time

Buying this pack gets you a licence to use it, not ownership of the files.

Read the full licence

Buy for $10.00

  • Download right after payment, and by email.
  • Opens in your own spreadsheet, calendar and text programs.
  • Refund within 14 days, for any reason.
  • Payment is handled by Stripe.

What it does

It maps a family tree and calculates the probability of specific genetic traits passing to descendants. It flags pairings that risk unwanted recessive conditions. The files open in your own spreadsheet, calendar and text programs.

What's inside

  • Dynasty Genetics Resolver: index.html, readme.md, resolver.js, sample_tree.json.

With a README and the Teranite Facet Buyer Licence.

Sample

Dynasty Genetics Resolver

It maps a family tree and calculates the probability of specific genetic traits passing to descendants. It flags pairings that risk unwanted recessive conditions.

Files: index.html, readme.md, resolver.js, sample_tree.json. resolver.js, start of the file:

"use strict";

const TraitType = {
    DOMINANT: 'dominant',
    RECESSIVE: 'recessive'
};

class GeneticsResolver {
    constructor(familyData) {
        this.members = familyData.members;
        this.traits = familyData.traits;
    }

    getGenotype(memberId, traitId) {
        const member = this.members.find(m => m.id === memberId);
        return member ? member.genotypes[traitId] : null;
    }

    calculateProbability(parent1Id, parent2Id, traitId) {
        const g1 = this.getGenotype(parent1Id, traitId);
        const g2 = this.getGenotype(parent2Id, traitId);
        const trait = this.traits.find(t => t.id === traitId);

        if (!g1 || !g2) return null;

        const alleles1 = g1.split('');
        const alleles2 = g2.split('');
        const outcomes = [];

        for (let a1 of alleles1) {
            for (let a2 of alleles2) {
                outcomes.push([a1, a2].sort().join(''));
            }
        }

        const counts = {};
        outcomes.forEach(o => counts[o] = (counts[o] || 0) + 1);

        let expressProbability = 0;
        for (let genotype in counts) {
            const prob = counts[genotype] / 4;
            const isExpress = this.checkE

Requirements

  • A program that opens the file types listed.
  • Checked: every file opens and parses, and any spreadsheet formulas compute in Microsoft Excel for Windows.
  • Not opened in other programs.

Install

Unzip the download, then the zip inside it. Each folder inside holds one set of files; open or import them in your own programs and work on a copy.

Licence

One licence covers one person. Your finished work is yours. Do not share or resell the files.

How it is made

Facet Packs are made with Teranite's own software tools, some of them written with help from AI, and rendered or built by standard software. They contain no AI-generated images.

Support

Questions, or a fault: support@teranitesystems.com. We reply within 2 business days.

More from Spreadsheet templates

See all