Skip to main content
W
WeBreeders
← Back to Guides

CSV Input Specification for WeBreeders Genotype Pairs

Published 2026-11-20 • Author: WeBreeders Engineering & Genetics Panel

Overview

WeBreeders uses a minimal, strictly validated CSV format (Version 1) to ingest parental genotype pairs for local browser calculation. To guarantee complete privacy and zero data leakage, files are read directly in your browser’s local memory and never transmitted over the network.

Specification Requirements

  • File Encoding: UTF-8 text with optional Byte Order Mark (BOM: 0xEF, 0xBB, 0xBF).
  • Maximum File Size: 16 KiB (16,384 bytes). Larger files are rejected prior to parsing.
  • Line Endings: Standard Unix (LF) or Windows (CRLF) line endings.
  • Quoting: Standard RFC 4180 CSV quoting using double quotes ("). Internal quotes must be escaped as "".
  • Row Count: Exactly 1 header row followed by exactly 2 data records (one for sire and one for dam).

Header Definition

The header must match the following five columns in exact order and lowercase:

species,locus,parent,allele_1,allele_2

Field Definitions

  1. species: The canonical slug matching the species calculator page (e.g., budgerigar).
  2. locus: The locus identifier published in the species catalogue (e.g., blue).
  3. parent: The parental role, either sire (father) or dam (mother). Both records must be present in either row order.
  4. allele_1: The first allele identifier (case-sensitive).
  5. allele_2: The second allele identifier (case-sensitive).

Example Valid Input

species,locus,parent,allele_1,allele_2
budgerigar,blue,sire,wild,blue
budgerigar,blue,dam,blue,blue

In this cross, a heterozygous sire (wild/blue) is paired with a homozygous mutant blue dam (blue/blue). The engine will calculate exact Mendelian 50% wild/blue and 50% blue/blue outcomes.