jennifer registry

@skiffyard/mitoleaf

Reader for the mitoLEAF human mitochondrial phylogeny: haplogroup tree, motif accumulation with back mutations, and nearest-haplogroup lookup.

Formerly @deckyard/mitoleaf.

mtdnamitochondrialhaplogroupphylogenymitoleaf

Depend on it

[decks]
"@skiffyard/mitoleaf" = "^0.5.0"

Versions

VersionStatusKindPinRequiresEnginesCapabilities
0.5.0livegit1d1f6271ce1a@deckyard/forensicgenetics >=0.1.0jennifer >=0.27.0-

License

LGPL-3.0-only

Source

Released from
0.5.0
Published under
@skiffyard skiffyard organisation
Repository owner
skiffyard

Resolutions

Times a client asked this registry where to find this deck. Not downloads: the registry only stores metadata, and the code is fetched from its repository directly, so we never see an install and cannot count one. Repeated builds inflate these numbers; installs from an existing lockfile do not appear at all. Counted in UTC.

Readme

@skiffyard/mitoleaf

test docs release

Reads the mitoLEAF™ human mitochondrial phylogeny (the maintained successor to PhyloTree™), turns a haplogroup into its defining haplotype with back mutations applied, and finds the haplogroup nearest an observed haplotype. Haplotypes are lineage.MtHaplotype values from @deckyard/forensicgenetics. Pure Jennifer.

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

Manual: https://skiffyard.github.io/deck-mitoleaf/

Install

Requires Jennifer 0.27.0 or newer.

jvc add "@skiffyard/mitoleaf" "^0.5.0"
jvc install

jvc vendors the deck to vendor/skiffyard/mitoleaf/ and pulls in @deckyard/forensicgenetics with it. Without jvc, copy the src/ of both decks (from a checkout or a skiffyard-mitoleaf-<version>.tar.gz release archive) by hand:

mkdir -p vendor/skiffyard/mitoleaf vendor/deckyard/forensicgenetics
cp path/to/deck-mitoleaf/src/*.j         vendor/skiffyard/mitoleaf/
cp path/to/deck-forensicgenetics/src/*.j vendor/deckyard/forensicgenetics/
rm -f vendor/deckyard/*/*_test.j

Example

No tree is bundled; download the phm XML from mitoLEAF.

import "@skiffyard/mitoleaf/" as mitoleaf;
import "@deckyard/forensicgenetics/lineage.j" as lineage;

def t as mitoleaf.Tree init mitoleaf.parse(fs.readString("mitoLEAF_phm.xml"));

mitoleaf.path($t, "L0a1");                               # root first
mitoleaf.motif($t, "L0a1");                              # this node's own tokens
lineage.mtDesignations(mitoleaf.haplotype($t, "L0a1"));  # accumulated haplotype

def m as mitoleaf.Match init mitoleaf.assign($t, $observed);

assign is a nearest-neighbour report, not a haplogroup classifier; see Limitations.

Tests

From the deck root (the example reads testdata/tree.xml):

jennifer test src/mitoleaf_test.j
jennifer run examples/haplogroups.j

Citing mitoLEAF

Huber N, Hurmer N, Dür A, Parson W. mitoLEAF: mitochondrial DNA Lineage, Evolution, Annotation Framework. NAR Genomics and Bioinformatics 7(2), 2025. https://doi.org/10.1093/nargab/lqaf079

mitoLEAF data is MPL-2.0; none is redistributed here.

Licence

LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <[email protected]>.

Trademarks

mitoLEAF™, EMPOP™, HaploGrep™ and PhyloTree™ may be trademarks of their respective owners. They are used only to identify the data and tools this deck works with. This deck is an independent project, not affiliated with, sponsored or endorsed by the authors of mitoLEAF, EMPOP, HaploGrep or PhyloTree.

This deck as JSON