Skip to content
@deckyard/strider

strider

jennifer
import "@deckyard/strider/" as strider;

Signatures and struct fields are in the cheatsheet, the document shape in Reading a table. Every accessor copies the whole Table; see the cost table before looping one.

Errors

ConditionkindThrown by
no <marker> element in the documentstriderparse, load
markers present but none carries population datastriderparse, load
a marker with no <name> childstriderparse, load
an <origin> with no name attributestriderparse, load
a <frequency> with no allele attribute, or no valuestriderparse, load
an allele listed twice in one population's locusstriderparse, load
a locus listed twice for one populationstriderparse, load
malformed XML, or a frequency or n that is not a numberruntimeparse, load
unknown populationstriderevery function taking population
unknown locusstridersampleSize, frequencySum
a frequency outside (0, 1], a locus summing above 1.05, or a negative nforensicgeneticstoFrequencyDb, load

parse accepts any number as a frequency, zero and negative values included. They are rejected only on conversion, by forensics.withLocus; that is also where a percentage-scaled table is caught instead of producing probabilities above 1.