Skip to content
@skiffyard/genotf

@skiffyard/genotf

genotf stands for genotyping file format. It reads the files of the Applied Biosystems™ fragment-analysis software family, without the software and without a classic Mac:

This deck is part of Skiffyard, small community decks for Jennifer.

  • Genotyper™ documents (.gta, Genotyper 3.x for Mac OS and Windows): categories, dye lanes with peak tables and labels, allele calls, and the results table as Genotyper displayed it.
  • GeneScan™ and ABI PRISM™ 310 Data Collection documents: sample sheets, injection lists, and the sample files of GeneScan projects.
  • GeneMapper™ projects (.ser): samples, markers, the allele calls with sizes and peak heights, the edit history and the dropped peaks.
  • GeneMapper and Peak Scanner™ tables: the Genotypes and Sizing tables exported as tab-delimited text, read by column name.
  • OSIRIS reports (.oar, .oer): the analysis reports of NCBI's public-domain OSIRIS, with allele calls, artifacts and notices.

The sample files these programs analyse are ABIF, read by @deckyard/abif. The Genotyper format is documented in the Genotyper format.

Genotyper and GeneScan are discontinued: GeneMapper replaced them in the early 2000s, and no new documents of theirs are expected. The genotyper and genescan modules read existing archives - for review, migration or comparison with a re-analysis of the original sample files. GeneMapper ID-X is current; its project format may still change with new versions.

Conventions

Snippets assume these imports:

jennifer
import "@skiffyard/genotf/" as genotf;
import "@skiffyard/genotf/genotyper.j" as genotyper;

def data as bytes init fs.readBytes("LOH Template & Samples.gta");
if (genotf.formatOf($data) == "genotyper") {
    def doc as genotyper.Document init genotyper.read($data);
    for (def lane in $doc.lanes) {
        for (def c in $lane.calls) {
            io.printf("%s\t%v\t%f|prec=2\t%d\n", $lane.name, $c.categories, $c.sizeBp, $c.height);
        }
    }
}

read decodes the whole document into plain values; walking the result needs no further calls into the deck.

gmtable.typings and osiris.typings reduce calls to a genotf.Typing per sample: alleles per locus, the shape @deckyard/forensicgenetics builds mixtures and profiles from. The deck does not depend on it.

Errors: every failure is Error{kind: "genotf"}, except what the dependencies throw for broken input ("abif" under genescan, "javaser" or "limit" under genemapper, "limit" from xml under osiris). Damage inside one lane does not fail the document: Document.issues lists it, and the other lanes are read.

Trademarks

Applied Biosystems™, ABI PRISM™, Genotyper™, GeneScan™, GeneMapper™ and Peak Scanner™ are trademarks of Thermo Fisher Scientific Inc. or its subsidiaries; Mac OS is a trademark of Apple Inc. Other product and company names may be trademarks of their respective owners. They are used only to describe the files this deck reads. This deck is an independent project, not affiliated with, sponsored or endorsed by Thermo Fisher Scientific or Apple.