Package org.metagene.genestrip.refseq
package org.metagene.genestrip.refseq
-
ClassDescriptionAbstract 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
StringLongDigitTriewhose entries additionally track a second long value (the accumulated k-mer count) alongside the contig count.AStringLongDigitTrie.StringLongthat 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 aCGATLongBuffer(applying the sampling rate and DUST low-complexity filter) and hands every qualifying k-mer toAbstractStoreFastaReader.handleStore(long).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 toAccessionFileProcessor.handleEntry(byte[], int, int, int).Maps genomic/RNA accession numbers to the tax id nodes they belong to.Deprecated.AnAccessionMapthat 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, whichAccessionMapTrieImpl.optimize()sorts so that lookups binary-search a single bucket.A trie keyed by RefSeq accessions rather than by digits alone.What is known about the assembly a sequence belongs to.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.The set of genomes a database is to hold, as a trie over the alphabet accessions are written in.The assemblies NCBI marks as a species' reference genome, read off the assembly summary and put in the terms the genome selection works in.The NCBI RefSeq release categories (each corresponding to a directory) that genomes are organized into.A store FASTA reader that reworks each contig's tax node into an artificialDATA/FILE/IDchild node when the corresponding option is enabled.
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.