Skip to content
@skiffyard/genotf

Reading GeneMapper projects

A GeneMapperâ„¢ project file (.ser) is a 64-byte header naming the program and its format version, then a Java serialization stream of GeneMapper's classes. genemapper decodes the stream with @skiffyard/javaser and reads the samples, markers and alleles out of it.

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

def p as genemapper.Project init genemapper.open("Reference Profile Project.ser");
io.printf("%s: %s, %d samples\n", $p.header, $p.name, len($p.samples));

Calls

Each sample has its markers, and each marker three lists of alleles:

  • calls: the alleles in force, what GeneMapper shows;
  • history: for each call a user deleted, the original call and its deletion record (origin "USER", status "Deleted");
  • dropped: peaks the caller considered and left out, below threshold or filtered.
jennifer
for (def s in $p.samples) {
    for (def m in $s.markers) {
        for (def a in $m.calls) {
            io.printf("%s\t%s\t%s\t%f|prec=2\t%d\n", $s.name, $m.name, $a.name, $a.sizeBp, $a.height);
        }
    }
}

A user can also type an allele name in; GeneMapper then stores the typed text (origin "USER", status "Edited"), exactly as entered.

Sample files

A project names its sample files (Sample.file) but does not contain them. Read them with @deckyard/abif:

  • .fsa: traces, peak tables and run metadata, as the instrument wrote them.
  • .hid (3500 series HID runs): only when its traces and peak tables are plain data, element type 4 (short), as in an .fsa. In the usual .hid they are encrypted (element types 28 to 34): abif reads such a file's metadata, but not its signal, and nothing in this deck decodes it. GeneMapper ID-X itself reads both kinds.

What is not read

Panels and bins, analysis methods, quality metrics and the traces are in the stream too; @skiffyard/javaser's dump shows them for exploring.