All Classes and Interfaces

Class
Description
What the two database-quality goals have in common: reading the genomic fasta files back, resolving each record to the leaf tax node the fill filed it at, and looking its *k*-mers up in the database.
Abstract line-based FASTA reader that reads a stream line by line and dispatches header ('>') lines and data (sequence) lines to overridable template methods.
Abstract multi-threaded FASTQ/FASTA reader.
One consumer thread of the reader: it takes read entries from the queue and hands them to AbstractFastqReader.nextEntry(ReadEntry, ConsumerRunnable) until the reader is dumped.
A reusable, pooled buffer holding one read's descriptor, sequence and (optional) quality bytes.
What the two goals walking the k-mer index have in common: both work out which tax nodes are selected for refinement, both read every reference sequence, and both turn each k-mer stored below such a node into a (k-mer, leaf index) pair.
Common base for the KMerStore implementation RadixKMerStore.
An AbstractFastqReader that reads through a stream of FASTQ/FASTA resources one after another while logging and reporting per-file and overall progress.
Abstract FASTA reader for RefSeq genome files that resolves each contig's tax id via the accession map and tracks, per tax id, the number of contigs and k-mers already included.
A StringLongDigitTrie whose entries additionally track a second long value (the accumulated k-mer count) alongside the contig count.
A StringLongDigitTrie.StringLong that additionally holds the accumulated k-mer count, where the inherited long value counts contigs.
Abstract RefSeq FASTA reader that streams each contig's bases through a CGATLongBuffer (applying the sampling rate and DUST low-complexity filter) and hands every qualifying k-mer to AbstractStoreFastaReader.handleStore(long).
Abstract fasta reader for the finer-tree (FT) update phase.
Streams and parses the (large) NCBI RefSeq accession catalog file line by line, filtering entries by sequence type (DNA/RNA/mRNA), RefSeq category and release status, and dispatching each matching entry to AccessionFileProcessor.handleEntry(byte[], int, int, int).
Maps genomic/RNA accession numbers to the tax id nodes they belong to.
Goal that builds the AccessionMap: it scans the RefSeq release catalog and maps every accession range to its taxonomy node, incrementing that node's RefSeq contig count.
Deprecated.
Superseded by AccessionMapTrieImpl, which holds the same entries in about a quarter less memory and sorts them about three times faster, by keeping only the part of a key that its bucket does not already imply.
An AccessionMap that dispatches on the first characters of an accession through a trie of jump tables and keeps the remainder of the key in a fixed-size slot of a flat arena per bucket, which AccessionMapTrieImpl.optimize() sorts so that lookups binary-search a single bucket.
A trie keyed by RefSeq accessions rather than by digits alone.
Download goal for user-specified additional fasta/genome files: it reads the project's additional-entries file (and matching entries in the shared downloads.txt), resolving each to a target file, its download URL and an optional MD5 checksum.
Produces the mapping from additional local fasta files to their taxonomic node, combining entries listed in the project's additional file with the genbank-derived assembly entries.
Concatenates the individual per-parent dendrogram .tex files produced by DengrogramLaTeXGoal into chunked, standalone LaTeX documents.
Downloads the GenBank and RefSeq assembly summary files into the project's common genbank and refseq directories.
What is known about the assembly a sequence belongs to.
Provides what NCBI's assembly summary knows about the assemblies a database is built from.
An index over NCBI's assembly summary, keyed by the taxon and the assembly's total length.
What a search found: the level of the nearest assembly and how far off its length was.
Reads an NCBI assembly summary file (from Genbank or RefSeq) and extracts the assembly entries relevant to a set of taxonomy nodes, filtering by assembly quality and reference status.
A single assembly entry from the summary file, carrying its tax ids, download location, quality and derived genomic fasta file name.
The assembly quality levels, combining the assembly level (complete, chromosome, scaffold, contig) with whether the version is the latest.
A blocked Bloom filter for k-mers, derived from FastFilter's BlockedBloom and tuned for lookup speed: every key sets/tests a few bits within a small block of adjacent long words, so a query touches only one or two cache lines.
The classical ProbFilter, backed by a LargeBitVector: it sizes the bit vector and the number of hash functions from the expected insertions and target false-positive probability, and sets one bit per hash function.
Goal that builds the index Bloom filter (ProbFilter) from the filled database: it inserts every k-mer whose stored taxid belongs to a requested tax node, sizing the filter from the configured false-positive probability.
Reads newline-delimited lines from an input stream into caller-supplied byte buffers with minimal allocation.
Static helpers for working with byte arrays that hold ASCII / UTF-8 text: searching, comparing, printing, and converting between integers and their decimal ASCII representation.
A FileInputStream that counts the number of bytes read and, optionally, advances a progress bar as reading proceeds.
An InputStream that wraps a delegate stream and counts the number of bytes read from it, keeping the count consistent across mark/reset and skip.
Goal that reads the project's categories file and produces the set of RefSeqCategory values selected for the database.
Low-level helpers for encoding DNA bases (C, G, A, T) into 2-bit codes and k-mers into longs, as well as decoding, complementing and reverse-complementing them.
A streaming ring buffer that incrementally computes the straight and reverse-complement 2-bit encodings of the last k bases fed to it via CGATLongBuffer.put(byte), optionally tracking a DUST low-complexity score so that low-complexity k-mers can be filtered out.
Goal that compares the locally downloaded RefSeq release number with the one currently published by NCBI, recording the local number as a project property and reporting whether it is current.
Result of the release-number comparison: local is current, outdated, or undeterminable.
Goal that builds a map from installed RefSeq file name to its expected MD5 checksum, parsed from the release files.installed listing (used to verify downloaded FASTA files).
Identifies a configuration parameter of a Project.
Describes a configuration parameter's value type: its default value, how to parse a value from a string and how to check that a value is within the allowed range.
A ConfigParamInfo for boolean parameters, accepting only "true" and "false" (case-insensitive).
A ConfigParamInfo for double parameters bounded by the closed interval [min, max], or the open interval (min, max) when created as exclusive.
A ConfigParamInfo for int parameters bounded by an inclusive [min, max] range.
A ConfigParamInfo for list-valued parameters whose elements are of type E; the Markdown default value is rendered as the comma-separated elements.
A ConfigParamInfo for long parameters bounded by an inclusive [min, max] range.
A ConfigParamInfo for String parameters; values are trimmed when parsed.
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.
A Genestrip database: a k-mer KMerStore keyed by taxonomic id, the SmallTaxTree it was built against, and the configuration properties describing how it was created.
Generates FASTQ files from the k-mers stored in the database, writing one output file per configured tax id (or a single total file when none are given).
Produces the set of database tax id nodes to generate FASTQ files for: all nodes that actually occur in the store, optionally intersected with the configured tax ids (a trailing + also selects descendants).
Produces the configuration-info Properties of the database, taken from the in-memory database when available or otherwise loaded directly from the stored database file.
Download goal that fetches the genestrip database file from a StreamingResource or URL into the project's DB file, optionally verifying an MD5 checksum.
Thrown to abort an in-progress database download once the goal has been dumped/interrupted.
DBGoal<P extends GSProject>
Goal (UPDATE_DB) that updates an already-filled database by re-reading the RefSeq (and additional) FASTA files and merging each k-mer's stored taxid with the k-mer's new node via their lowest common ancestor, then stamps Genestrip version, title and creation-date properties.
Writes a human-readable report about the database (via ResultReporter) to the project's DB-info file.
Computes intrinsic database-quality counts per tax id by re-reading the underlying genomic fasta files and comparing the *k*-mers they contain against those stored in the database.
Per-tax-id tally of true positives, true-positives-plus-false-positives and true-positives-plus- false-negatives, plus aggregated precision/recall sums used to compute weighted and unweighted averages.
Writes a CSV file with the per-tax-id database-quality metrics (tp, tp+fp, tp+fn, precision, recall and their weighted averages) computed by DBQualityCountsGoal, ordered by the taxonomy tree.
Estimates how many distinct (*k*-mer, leaf) pairs DBQualityCountsGoal will produce, by reading the sequences once and sketching the pairs with HyperLogLog.
Default ExecutionContext that runs tasks on a fixed-size thread pool and collects uncaught exceptions thrown in the worker threads.
Builds, for every refinement parent node, a DendrogramNode tree obtained by agglomerative clustering of the parent's child taxa (plus the optional OTHER pseudo-item) according to their pairwise k-mer Jaccard similarities.
A node of a binary dendrogram produced by hierarchical agglomerative clustering.
Callback interface for a depth-first, pre-/post-order traversal of a dendrogram driven by DendrogramNode.visit(Visitor).
Renders each per-parent dendrogram produced by DendrogramGoal as a standalone TikZ figure and writes it to one .tex file per refinement parent.
A trie keyed on sequences of digit characters (0-9 by default) that maps each key to a value.
Counts how many distinct (k-mer, node) pairs a pass over the reference sequences produces, by sketching them with HyperLogLog instead of storing them.
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).
Manages the worker threads used for parallel data processing and collects any throwables raised within them.
Streams the input FASTQ resources and extracts every read whose descriptor starts with the configured extract key, writing the matching reads to per-key output files or to standard out.
Goal that writes a CSV file listing each extracted RefSeq sequence description together with its taxid, taken from ExtractRefSeqFastasGoal's result.
Goal that extracts the selected contigs into individual FASTA files (with kraken2-style |kraken:taxid| headers) under the project's FASTA directory, and produces a map from each sequence description to its taxid.
Converts the FASTA resources for each key into a FASTQ output file, emitting a synthetic maximal-quality line for every sequence.
Reads FASTA input and writes it out as FASTQ, using '~' (maximal quality) for every base.
Produces, per tax id, the GenBank assembly entries whose fasta files should additionally be downloaded, selected by the configured quality filter and capped at the configured maximum (keeping the best quality).
Download goal that fetches the fasta files for the GenBank assembly entries selected by FastaFilesFromGenbankGoal, via FTP directory or direct URL.
Abstract base for goals that read the downloaded RefSeq .fna files (and any additional FASTA files) contig by contig, optionally in parallel via a pool of consumer threads, dispatching each contig to a subclass-provided AbstractRefSeqFastaReader.
A FASTA file paired with an optional tax node; a non-null node marks an additional FASTA whose node bypasses the accession map.
Download goal that fetches the fastq (or fasta) input resources referenced by URL in the fastq/fasta map to their corresponding local files.
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.
Produces the mapping from key to fastq (or fasta) streaming resources, assembled from the project's configured input paths/URLs, an optional map CSV file, and any extra resources.
Transforms an input fastq/fasta resource map so that remote (URL) resources are replaced by the local files they will be downloaded to; when no download is configured the input map is passed through unchanged.
Thrown to unwind the FASTQ/FASTA reader when it is interrupted or asked to stop (dump).
Writes reads to an output stream in FASTQ format, generating a descriptor line (with an id and optional tax id) and a placeholder quality line ('~') for each read.
A FileGoal that produces its output files by downloading them over HTTP or FTP from a remote base location.
FileGoal<P extends Project>
A Goal whose output is one or more files on disk.
A FileGoal whose set of output files is an explicit, mutable list.
Goal that estimates the deduplicated database size: it streams all selected k-mers through a temporary Bloom filter and counts the distinct k-mers, in total and per RadixKMerStore radix bucket, producing a FillBloomFilterGoal.DBSize used to size the final k-mer store.
Combined deduplicated DB size: the total estimated number of distinct k-mers and, when available, the per-RadixKMerStore radix-bucket counts (length 2^radixStoreBits, suitable as the bucketSizes argument of a RadixKMerStore created with the same radixStoreBits).
Signals that a pass ended with a filter too full for what it counted to be worth using.
Goal (FILL_DB) that allocates the k-mer store (a RadixKMerStore or a sorted array sized from the estimated FillBloomFilterGoal.DBSize), fills it by labelling each k-mer with its tax node's taxid, marks the requested nodes, optimizes the store and produces the indexed Database.
FASTA reader that stores each k-mer under its tax node's taxid, counting the k-mers dropped once the store is full.
Provides the filled database, either taken from the in-memory fill goal or loaded from the stored temporary database file.
Goal that counts the total number of included k-mers (duplicates included) across the selected RefSeq FASTA files, giving a rough estimate of the raw database size.
How many k-mers a fill would see, counted both ways: once as they come, duplicates and all, and once as distinct values.
FASTA reader that only counts k-mers (included, total and dust) without storing them.
Filters each input FASTQ file against the loaded bloom-filter index, writing the reads that pass to a per-key FASTQ output file (and optionally the rejected reads to a dump file).
Command line entry point for the finer-tree (FT) extension.
GSMaker for the finer-tree (FT) extension.
Enumeration of the configuration parameters added by the finer-tree (FT) extension.
Parameter descriptor for a SimpleAggloClustering.Method, i.e.
Specifies a position in the taxonomy tree at which the finer tree should be refined, given either as a taxonomic Rank together with a comparison FTConfigKey.RefinementPosition.Limit or as a specific tax id.
The comparison operator applied to a rank when matching nodes, with its textual token.
Writes a CSV file containing general information about the database, as produced by ResultReporter.printStoreInfo(org.metagene.genestrip.store.Database, java.io.PrintStream, boolean).
Enumeration of the goals added by the finer-tree (FT) extension.
A GSProject for the finer-tree (FT) extension.
FT-specific file types and their suffixes (currently the TeX output file).
The set of genomes a database is to hold, as a trie over the alphabet accessions are written in.
Goal<P extends Project>
Base class of the make-like build framework: a goal produces some output (files or an in-memory value) and declares dependencies on other goals.
Marker interface for goals whose heap usage should be logged at info level.
Identifies a goal within a Maker.
A simple GoalKey identified solely by its name, with transitive cleaning disabled.
Holds system-wide configuration rooted at a base directory and derives the standard shared directory locations (common, fastq, fasta, refseq and genbank) used across projects.
Enumeration of all Genestrip configuration parameters.
How the temporary Bloom filter of tempindex is sized, i.e.
Parameter info for GSConfigKey.BloomFilterSizing.
Parameter info for a comma/semicolon-separated list of Genbank AssemblySummaryReader.AssemblyQuality values.
How finished an assembly must be for its sequences to enter the database, for GSConfigKey.GENOMES_ONLY.
Parameter info for GSConfigKey.GenomesOnly.
Parameter info for a log level, restricting the value to the recognized level names.
 
RefSeq status values used to restrict which genomic accessions are considered.
Parameter info for a comma/semicolon-separated list of GSConfigKey.RefSeqStatus values.
The kind of RefSeq sequence files to include (genomic, RNA variants or all).
Parameter info for a GSConfigKey.SeqType value.
 
Parameter info for GSConfigKey.UpdateScope.
Base class for genestrip FileDownloadGoals that sources the HTTP/FTP base URLs and download options from the project's GSConfigKey configuration.
Enumeration of all Genestrip goals.
A logging facility built on Apache Commons Logging's SimpleLog that shares a single, dynamically adjustable log level across all loggers, supports redirecting output per thread, and prefixes each message with '>' characters to reflect the current make nesting depth.
Builds the Genestrip goal graph for a project and wires up their dependencies.
Factory for tongfei ProgressBar instances configured for Genestrip: ASCII style, a custom renderer that pulls live current/max values from a GSProgressUpdate, a configurable update interval and unit name, and optional rendering of the bar to a Log at debug level.
Supplies live current and maximum progress values to a progress bar renderer.
Represents a single Genestrip project: its configuration (loaded from command line properties and config.properties files), its directory layout under the base directory, and its fastq/fasta inputs.
A category of project file that carries a file name suffix.
The built-in Genestrip file types and their file name suffixes.
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).
Wraps an InvalidClassException raised while deserializing a Database, additionally carrying the database's config info so a version-mismatch message can be produced.
Writes a single CSV file summarizing the per-node branching-degree histograms computed by KMerBranchHistoGoal.
Concrete KMerStoreWorkGoal that builds, per taxonomy parent node at a refinement rank, a histogram over the branching degree of the node's k-mers as recorded by KMerIndexBloomGoal.
Writes a single CSV file that aggregates the per-node branching-degree histograms from KMerBranchHistoGoal by taxonomic rank, with one row per rank.
Generates a FASTQ file from a k-mer store database by decoding each stored k-mer back into bases and writing it as a read, optionally restricted to a given tax id (and its descendants).
Builds the ProbFilter that records, for every relevant k-mer of the database, which leaf tax node (genome) it originates from.
Static helper for the k-mer index Bloom filter of the finer-tree (FT) extension, which records (k-mer, child index) pairs rather than plain k-mers.
Estimates how many (k-mer, leaf index) pairs the k-mer index filter will have to hold, by reading the reference sequences once and sketching the pairs with HyperLogLog instead of storing them.
Concrete KMerStoreWorkGoal that, per taxonomy parent node at a refinement rank, accumulates pairwise intersection counts of *k*-mer presence across the parent's child subtrees together with *k*-mer spread statistics.
Read-only view of the intersection and spread statistics accumulated per parent node.
File goal that writes, for each relevant parent node, a CSV file summarising the pairwise *k*-mer intersection counts and Jaccard indices among the parent's child subtrees as computed by KMerIntersectCountGoal.
Writes a CSV file summarizing the per-species k-mer rank statistics computed by KMerRankStatsGoal.
Goal that builds a per-species statistic of the taxonomic rank at which each of a species' k-mers ended up in a Genestrip database.
Selects one k-mer in n, as a function of the k-mer and of nothing else.
A KMerStore that keeps its k-mers in a single long array sorted by KMerSortedArray.optimize(), with a parallel short array holding each k-mer's value index (offset by Short.MIN_VALUE); lookups binary-search the sorted array.
A store mapping k-mers (each encoded as a long) to a value of type V, keyed additionally by a compact per-store value index.
Visitor that exposes the store index of the value and the storage position of the entry, see KMerStore.visit(IndexedKMerStoreVisitor).
Provides the new value for an KMerStore.update(long, UpdateValueProvider).
Converts a value of type V into a value of type W, see KMerStore.convertValues(ValueConverter).
Abstract base goal that visits every *k*-mer of a loaded database's *k*-mer store and, for each taxonomy "parent" node that sits at a configured refinement rank, determines how the *k*-mer's presence is spread across the parent's direct child subtrees.
A bit vector backed by a self-managed array of long[] buckets whose size is fixed at construction.
A vector of short counters that transparently switches between a single short[] for small capacities and a self-managed array of short[] buckets for capacities beyond the range of a normal array, and never shrinks.
Loads the matching database into memory from the stored database file (or reuses an already-made one), optionally showing a progress bar and enabling the bloom pre-filter for matching.
Loads the k-mer bloom-filter index (ProbFilter) from the stored database file, or reuses the already-made in-memory index.
Provides the ProbFilter k-mer index, either by reusing the in-memory filter already produced by the bloom goal or, if that goal was not made, by deserializing the filter from the file written by StoreKMerIndexGoal.
Main<P extends GSProject>
Command line entry point for Genestrip.
Maker<P extends Project>
Holds the goal graph of a Project: goals are created in Maker.createGoals() and registered by their GoalKey.
Writes the k-mer matching result for each fastq map key as a CSV file (via ResultReporter).
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.
Runs the k-mer matcher over each input fastq stream against the database and produces the per-key MatchingResults, optionally also writing filtered and kraken-style output files.
Callback invoked during matching: once per finished key and once per matched read.
Marks a CountsPerTaxid getter as a match-detail column of the CSV result.
Attaches a human-readable Markdown description to a field (typically a config-key field), used when generating documentation.
Base class for goals that produce one output file per fastq/fasta map key, keeping the association from each output file back to its input resources.
A BloomFilter that hashes k-mers with MurmurHash3 rather than with the bit-mixing finalizer of BloomFilter.hash(long, int).
A drop-in reimplementation of the 64-bit MurmurHash3 hash (as in Apache Commons Codec) that, unlike the deprecated original, supports a custom seed.
A drop-in reimplementation of the 64-bit MurmurHash3 hash (as in Apache Commons Codec) that, unlike the deprecated original, supports a custom seed.
The NCBI taxonomy dump: the nodes.dmp and names.dmp files, read straight from the archive taxdmp.zip as NCBI publishes it, or else from the two files themselves.
An entry of the archive as a stream that counts what was read from it, for the progress bar.
A Goal that produces an in-memory value of type T rather than files.
A probabilistic set of k-mers (each encoded as a long), i.e.
Base class for a project: a named holder of typed configuration parameters (each a ConfigKey whose value is validated against its ConfigParamInfo) plus free-form additional properties.
A KMerStore that indexes the lowest radixBits bits of every k-mer through a fixed radix table and stores the remaining bits of the k-mer together with its value index inside a long.
Receives the result of one k-mer of a batched lookup, including its storage position.
Taxonomic ranks used in the taxonomy tree, ordered from higher to lower ranks.
The assemblies NCBI marks as a species' reference genome, read off the assembly summary and put in the terms the genome selection works in.
Download goal for the RefSeq release catalog (.catalog.gz) and the matching files.installed listing, whose file names are derived from the current release number.
The NCBI RefSeq release categories (each corresponding to a directory) that genomes are organized into.
Abstract base for goals that download files from the NCBI RefSeq server, supplying the RefSeq HTTP and FTP base URLs from configuration.
Download goal for the RefSeq genomic/RNA .fna files of the selected categories, verified against their catalog MD5 checksums; the list of files to fetch is derived from the release files.installed listing and the configured sequence type.
Download goal for the RefSeq RELEASE_NUMBER file, which identifies the current RefSeq release.
Goal that writes a release.properties file recording the RefSeq release number the database was built from.
Writes textual reports as semicolon-separated CSV: database/tax-tree information and the per-tax-id match result.
A store FASTA reader that reworks each contig's tax node into an artificial DATA/ FILE/ID child node when the corresponding option is enabled.
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.
Provides pairwise similarity values over a fixed set of items, indexed from 0 to Similarity.values() - 1.
Performs hierarchical agglomerative clustering (HAC) over a set of items described by a Similarity matrix.
The linkage strategy used to recompute the similarity between a merged cluster and the remaining clusters: nearest-neighbour (SINGLE_LINKAGE), farthest-neighbour (COMPLETE_LINKAGE), size-weighted group average (UPGMA) or simple unweighted group average (WPGMA).
A super simple implementation of BlockingQueue - just good enough in the context of genestrip and no more.
Bloom filter whose every key sets all of its bits within one single long of the backing array, so that a lookup as well as an insert touches exactly one word, where BlockedBloomFilter touches two.
A compact, serializable version of the taxonomy tree that only retains the nodes required by a database and is used during read matching.
A node of a SmallTaxTree.
Goal that saves the built Database (k-mer store together with its index) to the given database file.
Goal that saves the index Bloom filter (ProbFilter) to the project's index file.
Serializes the ProbFilter k-mer index produced by the bloom goal to a filter file, so that it can later be reloaded by LoadKMerIndexGoal.
A StreamingResource backed by a file on disk.
A named source of data that can be opened for streaming reads.
A handle on an opened StreamingResource: it provides the input stream to read from, the number of bytes read so far and, when known, the total size, and it drives progress updates and closes the underlying stream.
A StreamingResourceStream backed by an explicit list of resources.
An iterable sequence of StreamingResources, e.g.
Unchecked wrapper for an IOException raised while iterating a StreamingResourceStream, allowing it to propagate through the Iterable API.
A StreamingResource backed by a URL.
Utility for obtaining buffered input and output streams for files, transparently applying GZIP (de)compression based on the file name, plus helpers for estimating uncompressed sizes of GZIP files.
A DigitTrie that maps digit keys to StringLongDigitTrie.StringLong counters, providing increment and add operations that create the counter on first use.
A mutable pairing of a string key and an associated long value (counter).
Goal that renders the database's taxonomy tree to an SVG file using TaxTreePainter, configured from the project's SVG_* settings.
Collects sets of taxonomy nodes from a TaxTree, e.g.
Downloads the NCBI taxonomy dump (taxdmp.zip) into the common directory.
Base class for a node in the taxonomy tree.
What a taxids.txt amounts to: the tax ids a database is to hold, and the ones it was told to leave out.
Produces the set of tax ids whose sequence data should additionally be fetched from GenBank: either all requested nodes (non-RefSeq database) or those with too few RefSeq contigs under the configured limit.
Produces the set of requested taxonomic nodes read from the project's tax-ids file, expanded with descendants down to the configured rank and with the excluded nodes removed.
The taxonomy tree, read from files in a TaxTreeFormat, by default the NCBI taxonomy dump (NCBITaxTreeFormat).
Generates the tax id string for an artificial node from a running counter value.
A node of the TaxTree, holding its parent, child nodes and bookkeeping flags used while building filter lists and databases.
A DigitTrie mapping tax id strings to their TaxTree.TaxIdNodes, creating missing nodes on demand.
The file format a TaxTree is read from.
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.
Rewrites the database's k-mer store and its SmallTaxTree so that they reflect the refined structure computed by the clustering phase.
The XOR variant of BlockedBloomFilter: it replaces the MurmurHash3 finalizer of BlockedBloomFilter.hash(long) by a bare exclusive or with the seed, and pays for that by reducing with a modulo instead of the base class' multiply-shift.
The XOR variant of BloomFilter: it hashes a k-mer by a bare exclusive or with the hash function's factor, which is fast and apparently "good enough" for hashing k-mers, and pays for it by reducing with a modulo instead of the multiply-shift of BloomFilter.reduce(long).
The XOR variant of SingleWordBloomFilter: it replaces the MurmurHash3 finalizer of SingleWordBloomFilter.hash(long) by a bare exclusive or with the seed, and pays for that by reducing with a modulo instead of the base class' multiply-shift.