Package org.metagene.genestrip.match


package org.metagene.genestrip.match
  • Class
    Description
    Holds all match statistics accumulated for a single tax id during read matching, such as the number of classified reads and base pairs, matched and unique k-mer counts, contig statistics and error measures.
    A raw value together with its version normalized by the number of database k-mers, accumulated over a subtree of the taxonomy.
    The kinds of countable values that are tracked and can be normalized and accumulated.
    Estimates an evolutionary "distance" for each taxonomy node from the distribution of stored k-mers across the tree.
    The distance estimate for a single taxonomy node, its per-node portion and the child branch carrying the most k-mers below it (the "longest path" branch).
    Streams FASTQ reads and classifies each read by how many of its (canonical) k-mers are found in a ProbFilter: reads with enough matching k-mers are written to one output and the rest to another.
    A read entry that additionally tracks the position of the last invalid base encountered.
    Matches the k-mers of FASTQ (or FASTA) reads against the k-mer database and classifies each read to a tax id in the style of Kraken/KrakenUniq.
    Callback invoked after each read has been matched, receiving the read entry and whether it matched.
    One matching consumer thread and everything that belongs to it alone: the per-read vote counters, the batch buffers and the prefetched lookup results.
    Per-read working state used during matching: the candidate taxonomic paths and their counts, the resolved classification node, and a growable byte buffer holding the read's Kraken-style output.
    A matcher that keeps a two-bit counter per stored k-mer instead of a single bit, so that the k-mers hit exactly once and exactly twice can be counted per tax id (kmersHitOnce, kmersHitTwice).
    The result of matching FASTQ reads against the k-mer database: the per-tax-id statistics (CountsPerTaxid) together with the global totals and the k-mer length used.
    Marks a CountsPerTaxid getter as a match-detail column of the CSV result.
    Writes textual reports as semicolon-separated CSV: database/tax-tree information and the per-tax-id match result.
    Estimates the share of a tax id's stored k-mers that a sample contains, with a confidence interval, and the evolutionary distance derived from it.
    Renders a database's taxonomy tree as an indented, connected line drawing onto a Graphics2D, labelling each node with its name, tax id and stored k-mer count.