Serialized Form
-
Package org.metagene.genestrip.fastq
-
Exception org.metagene.genestrip.fastq.FastqReaderInterruptedException
class FastqReaderInterruptedException extends RuntimeException implements Serializable- serialVersionUID:
- 1L
-
-
Package org.metagene.genestrip.finertree.goals
-
Class org.metagene.genestrip.finertree.goals.DBQualityCountsGoal.Counts
class Counts extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
aggPrecisionSum
double aggPrecisionSum
Sum of the aggregated children's precision values. -
aggRecallSum
double aggRecallSum
Sum of the aggregated children's recall values. -
aggregations
int aggregations
Number of child nodes aggregated into this tally. -
forLeaf
boolean forLeaf
Whether this tally belongs to a leaf, i.e. to the deepest artificial node on its branch -- seeSmallTaxTree.SmallTaxIdNode.isLeaf(). Only leaf tallies are filled from the genomic files; the others are aggregated from their leaves. -
kmerSumForNode
long kmerSumForNode
Number of k-mers the database stores under exactly this tax id (not counting descendants). -
leaves
int leaves
Number of leaves aggregated into this tally, including this node itself if it is a leaf. -
subtreeKmerPrecisionSum
double subtreeKmerPrecisionSum
Sum of the per-k-mer precisions p(a) over the k-mers residing in the subtree rooted at this node for which p is defined. It is the numerator ofDBQualityCountsGoal.Counts.getSubtreePrecision(). -
subtreeKmerPrecisionSumAboveData
double subtreeKmerPrecisionSumAboveData
Sum of the per-k-mer precisions p(a) over the k-mers of this subtree that are stored above the data taxa. It is the numerator ofDBQualityCountsGoal.Counts.getRestrictedSubtreePrecision(). -
subtreeKmerSum
long subtreeKmerSum
Number of k-mers stored in the subtree rooted at this node, counting only those for which the per-k-mer precision is defined. It is the denominator ofDBQualityCountsGoal.Counts.getSubtreePrecision(). -
subtreeKmerSumAboveData
long subtreeKmerSumAboveData
Number of k-mers of this subtree stored above the data taxa, counting only those for which the per-k-mer precision is defined. It is the denominator ofDBQualityCountsGoal.Counts.getRestrictedSubtreePrecision(). -
subtreeTp
long subtreeTp
True positives summed over the subtree rooted at this node, i.e. over the paths from the data taxa under this node up to this node itself. It backs the weighted path precision, which is defined relative to this node rather than to the root. -
subtreeTpPlusFp
long subtreeTpPlusFp
True positives plus false positives summed over the subtree rooted at this node, i.e. over the paths from the data taxa under this node up to this node itself. -
tp
long tp
True positives (k-mers correctly stored under this tax id). -
tpForNodePrecision
long tpForNodePrecision
True positives attributed to this node itself, i.e. k-mers read from a genome below it that are stored in the database under exactly this tax id. -
tpPlusFn
long tpPlusFn
True positives plus false negatives (k-mers stored in the database that were also found in this tax id's genomes). -
tpPlusFp
long tpPlusFp
True positives plus false positives (all k-mers stored under this tax id).
-
-
-
Package org.metagene.genestrip.goals
-
Exception org.metagene.genestrip.goals.DBDownloadGoal.DBDownloadInterruptedException
class DBDownloadInterruptedException extends RuntimeException implements Serializable- serialVersionUID:
- 1L
-
-
Package org.metagene.genestrip.goals.refseq
-
Class org.metagene.genestrip.goals.refseq.FillBloomFilterGoal.DBSize
class DBSize extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
bucketSizes
int[] bucketSizes
The per-radix-bucket distinct k-mer counts, ornullif not computed. -
values
Set<String> values
The set of distinct store values (tax id strings) that the fill will use, collected during the counting pass so they can be registered up front, ornullif not collected. Only complete when the fill does not synthesize artificial data/file/id nodes (those are created during the fill itself and cannot be pre-collected).
-
-
Exception org.metagene.genestrip.goals.refseq.FillBloomFilterGoal.UnusableFilterException
class UnusableFilterException extends Exception implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
entries
long entries
-
reachedFpp
double reachedFpp
-
sizingCount
long sizingCount
-
-
Class org.metagene.genestrip.goals.refseq.FillSizeGoal.KMerCounts
class KMerCounts extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
distinct
long distinct
-
withDuplicates
long withDuplicates
-
-
-
Package org.metagene.genestrip.io
-
Exception org.metagene.genestrip.io.StreamingResourceStream.IteratorRuntimeIOException
class IteratorRuntimeIOException extends RuntimeException implements Serializable- serialVersionUID:
- 1L
-
-
Package org.metagene.genestrip.match
-
Class org.metagene.genestrip.match.CountsPerTaxid
class CountsPerTaxid extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
accClassErrorSquaredSum
double accClassErrorSquaredSum
The accumulated sum of squared per-read class error ratios. -
accClassErrorSum
double accClassErrorSum
The accumulated sum of per-read class error ratios. -
accErrorSquaredSum
double accErrorSquaredSum
The accumulated sum of squared per-read k-mer error ratios. -
accErrorSum
double accErrorSum
The accumulated sum of per-read k-mer error ratios. -
classErrorSquaredSum
double classErrorSquaredSum
The sum of squared per-read class error ratios. -
classErrorSum
double classErrorSum
The sum of per-read class error ratios. -
contigLenSquaredSum
long contigLenSquaredSum
The sum of squared contig lengths, used for the contig-length standard deviation. -
contigs
int contigs
The number of contiguous k-mer sequences specific to the tax id's genome. -
dbKMers
long dbKMers
The number of specific k-mers for the tax id in the database. -
errorSquaredSum
double errorSquaredSum
The sum of squared per-read k-mer error ratios. -
errorSum
double errorSum
The sum of per-read k-mer error ratios. -
evoDistance
double evoDistance
The evolutionary distance derived fromCountsPerTaxid.sharedFraction, or NaN. -
evoDistanceHigh
double evoDistanceHigh
The upper bound of the confidence interval ofCountsPerTaxid.evoDistance, or NaN. -
evoDistanceLow
double evoDistanceLow
The lower bound of the confidence interval ofCountsPerTaxid.evoDistance, or NaN. -
extendedValues
CountsPerTaxid.AccValues[] extendedValues
The accumulated values per value type. -
kmers
long kmers
The number of matched k-mers specific to the tax id's genome. -
kmersHitOnce
long kmersHitOnce
The number of the tax id's stored k-mers hit exactly once, or -1 where hits were not counted. -
kmersHitTwice
long kmersHitTwice
The number of the tax id's stored k-mers hit exactly twice, or -1 where hits were not counted. -
level
int level
The depth of the tax id in the taxonomy tree. -
maxContigDescriptor
byte[] maxContigDescriptor
The read descriptor of the longest contig. -
maxContigLen
int maxContigLen
The maximum contig length in k-mers. -
name
String name
The name associated with the tax id. -
parentTaxId
String parentTaxId
The parent tax id. -
pos
int pos
The sort position of this entry within the taxonomy tree. -
rank
Rank rank
The taxonomic rank of the tax id. -
reads
long reads
The number of reads classified to the tax id. -
reads1KMer
long reads1KMer
The number of reads with at least one k-mer of the tax id. -
readsBPs
long readsBPs
The total number of base pairs of classified reads. -
readsKmers
long readsKmers
The number of k-mers from classified reads consistent with the tax id. -
sharedFraction
double sharedFraction
The estimated share of the tax id's stored k-mers that the sample contains, or NaN if not estimated. -
sharedFractionHigh
double sharedFractionHigh
The upper bound of the confidence interval ofCountsPerTaxid.sharedFraction, or NaN. -
sharedFractionLow
double sharedFractionLow
The lower bound of the confidence interval ofCountsPerTaxid.sharedFraction, or NaN. -
taxid
String taxid
The tax id these counts belong to. -
uniqueKmers
long uniqueKmers
The number of unique matched k-mers (including those from unclassified reads).
-
-
Class org.metagene.genestrip.match.CountsPerTaxid.AccValues
class AccValues extends Object implements Serializable-
Serialized Fields
-
accumulated
long accumulated
The accumulated raw value. -
accumulatedNormalized
double accumulatedNormalized
The accumulated value normalized by the number of database k-mers.
-
-
-
Class org.metagene.genestrip.match.MatchingResult
class MatchingResult extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
globalStats
CountsPerTaxid globalStats
The global totals across all tax ids. -
k
int k
The k-mer length used for matching. -
taxid2Stats
Map<String,
CountsPerTaxid> taxid2Stats The per-tax-id statistics, keyed by tax id.
-
-
-
Package org.metagene.genestrip.probfilter
-
Class org.metagene.genestrip.probfilter.BlockedBloomFilter
class BlockedBloomFilter extends Object implements Serializable- serialVersionUID:
- 4L
-
Serialization Methods
-
readObject
Restores the filter, deriving the transientBlockedBloomFilter.bucketMaskfrom the deserializedBlockedBloomFilter.bucketShift.- Parameters:
in- the stream to read from- Throws:
IOException- if reading failsClassNotFoundException- if a serialized class cannot be resolved
-
-
Serialized Fields
-
bitsPerKey
int bitsPerKey
Number of bits allocated per key. -
buckets
long buckets
Number of buckets (words) available for bits. -
bucketShift
int bucketShift
Base-2 logarithm of the large-backing bucket width (words per bucket). -
data
long[] data
Small (int-indexed) bit storage, ornullwhen large storage is used. Doubles as the lock guarding its own words inBlockedBloomFilter.putLong(long), hencefinal: the reference must be safely published so that concurrent inserters cannot lock different objects. -
largeData
long[][] largeData
Large (bucketed) bit storage, ornullwhen small storage is used. Each bucket doubles as the lock guarding its own words inBlockedBloomFilter.putLong(long); the grid is allocated once at construction and never reshaped, so those locks are stable for the filter's lifetime. -
seed
long seed
Hash seed used to derive bit positions.
-
-
Class org.metagene.genestrip.probfilter.BloomFilter
class BloomFilter extends Object implements Serializable- serialVersionUID:
- 2L
-
Serialized Fields
-
bits
long bits
The number of bits in the backing bit vector. -
bitVector
LargeBitVector bitVector
The backing bit vector storing the filter's bits. -
expectedInsertions
long expectedInsertions
The expected number of insertions the filter is sized for. -
fpp
double fpp
The target false-positive probability. -
hashes
int hashes
The number of hash functions applied per k-mer. -
hashFactors
long[] hashFactors
The random factors used to derive the individual hashes. -
random
Random random
Source of randomness used to derive the hash factors.
-
-
Class org.metagene.genestrip.probfilter.MurmurBloomFilter
class MurmurBloomFilter extends BloomFilter implements Serializable- serialVersionUID:
- 2L
-
Class org.metagene.genestrip.probfilter.SingleWordBloomFilter
class SingleWordBloomFilter extends Object implements Serializable- serialVersionUID:
- 2L
-
Serialization Methods
-
readObject
Restores the filter, deriving the transientSingleWordBloomFilter.bucketMaskfrom the deserializedSingleWordBloomFilter.bucketShift.- Parameters:
in- the stream to read from- Throws:
IOException- if reading failsClassNotFoundException- if a serialized class cannot be resolved
-
-
Serialized Fields
-
bitsPerKey
int bitsPerKey
Number of bits allocated per key, i.e. the memory sizing. -
bucketShift
int bucketShift
Base-2 logarithm of the large-backing bucket width (words per bucket). -
data
long[] data
Small (int-indexed) bit storage, ornullwhen large storage is used. Doubles as the lock guarding its words inSingleWordBloomFilter.putLong(long), hencefinal: the reference must be safely published so that concurrent inserters cannot lock different objects. -
hashBits
int hashBits
Number of bits a key sets within its word. -
largeData
long[][] largeData
Large (bucketed) bit storage, ornullwhen small storage is used. Each bucket doubles as the lock guarding its own words inSingleWordBloomFilter.putLong(long). -
seed
long seed
Hash seed used to derive word index and bit positions. -
words
long words
Number of words available for bits.
-
-
Class org.metagene.genestrip.probfilter.XORBlockedBloomFilter
class XORBlockedBloomFilter extends BlockedBloomFilter implements Serializable- serialVersionUID:
- 1L
-
Class org.metagene.genestrip.probfilter.XORBloomFilter
class XORBloomFilter extends BloomFilter implements Serializable- serialVersionUID:
- 1L
-
Class org.metagene.genestrip.probfilter.XORSingleWordBloomFilter
class XORSingleWordBloomFilter extends SingleWordBloomFilter implements Serializable- serialVersionUID:
- 1L
-
-
Package org.metagene.genestrip.refseq
-
Class org.metagene.genestrip.refseq.AbstractRefSeqFastaReader.StringLong2DigitTrie
class StringLong2DigitTrie extends StringLongDigitTrie implements Serializable -
Class org.metagene.genestrip.refseq.AbstractRefSeqFastaReader.StringLong2DigitTrie.StringLong2
class StringLong2 extends StringLongDigitTrie.StringLong implements Serializable-
Serialized Fields
-
longValue2
long longValue2
The accumulated k-mer count; the inherited long value counts contigs.
-
-
-
Class org.metagene.genestrip.refseq.AccessionTrie
-
Class org.metagene.genestrip.refseq.GenomeKeyTrie
- serialVersionUID:
- 1L
-
Serialized Fields
-
frozen
boolean frozen
Whether the selection is complete and the set is read-only; seeGenomeKeyTrie.freeze().
-
-
-
Package org.metagene.genestrip.store
-
Class org.metagene.genestrip.store.AbstractKMerStore
class AbstractKMerStore extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialization Methods
-
writeObject
Ensures the per-value k-mer counts are baked in before the store is serialized, so a loaded store returns them without revisiting every entry. Filling the cache if absent suffices: value reassignments invalidate it (automatically viaKMerStore.setIndexAtPosition(long, int), or explicitly viaAbstractKMerStore.invalidateNKmersPerTaxid()after a bulk update), so it is never stale here.- Parameters:
out- the stream to write to- Throws:
IOException- if writing fails
-
-
Serialized Fields
-
entries
long entries
The number of entries currently stored. -
indexMap
V extends Serializable[] indexMap
Maps each store index back to its value; lengthmaxValues. -
k
int k
The k-mer length; always in[1, 31]. -
kmerPersTaxid
it.unimi.dsi.fastutil.objects.Object2LongMap<V extends Serializable> kmerPersTaxid
Per-value k-mer count statistics, ornullif not tracked. -
maxValues
int maxValues
The value-index capacity (maximum number of distinct values). -
nextValueIndex
int nextValueIndex
The next store index to assign to a newly registered value. -
optimizedFpp
double optimizedFpp
The target false-positive probability of the post-optimize filter. -
size
long size
The total capacity of the store. -
sorted
boolean sorted
Whether the store has been sorted/optimized. -
useFilter
boolean useFilter
Whether the pre-filter is currently in use. -
valueMap
it.unimi.dsi.fastutil.objects.Object2IntMap<V extends Serializable> valueMap
Maps each value to its 0-based store index.
-
-
Class org.metagene.genestrip.store.Database
class Database extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
configInfo
Properties configInfo
Configuration properties describing how this database was created. -
kmerStore
KMerStore<String> kmerStore
The k-mer store keyed by taxonomic id. -
taxTree
SmallTaxTree taxTree
The taxonomy tree this database was built against.
-
-
Exception org.metagene.genestrip.store.InvalidDatabaseClassException
class InvalidDatabaseClassException extends InvalidClassException implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
configInfo
Properties configInfo
The database's config info used to produce a version-mismatch message. -
exception
InvalidClassException exception
The wrappedInvalidClassExceptionthat was raised while deserializing.
-
-
Class org.metagene.genestrip.store.KMerSortedArray
- serialVersionUID:
- 2L
-
Serialization Methods
-
readObject
Restores the transient stripe-lock pool after deserialization.- Parameters:
ois- the stream to read from- Throws:
ClassNotFoundException- if a serialized class cannot be resolvedIOException- if reading fails
-
-
Serialized Fields
-
enforceLarge
boolean enforceLarge
Whether the big-array layout is enforced regardless of size. -
kmers
long[] kmers
The k-mers, sorted after optimization (small-array layout). -
largeKmers
long[][] largeKmers
The k-mers, sorted after optimization (big-array layout). -
largeValueIndexes
short[][] largeValueIndexes
The per-k-mer value indexes (big-array layout). -
markClaim
AtomicBoolean markClaim
Whether any user of this store is marking. The marks live in theKMerSortedArray.visitedvector, which a converted copy shares just as it shares the k-mer array, so two matchers marking at the same time would count each other's hits. -
valueIndexes
short[] valueIndexes
The per-k-mer value indexes (small-array layout).
-
-
Class org.metagene.genestrip.store.RadixKMerStore
- serialVersionUID:
- 1L
-
Serialization Methods
-
readObject
Deserializes the store and re-establishes the fields derived from its layout, which are transient and therefore absent from the stream - also for a database written before they existed.- Parameters:
in- the stream to read the store from- Throws:
IOException- if reading failsClassNotFoundException- if a serialized class cannot be resolved
-
writeObject
Serializes the store, clearing the visited marks first so that per-run scratch state can never reach a database file.- Parameters:
out- the stream to write the store to- Throws:
IOException- if writing fails
-
-
Serialized Fields
-
bucketFill
int[] bucketFill
Number of entries actually stored in each bucket. -
bucketOffset
long[] bucketOffset
Maps each radix bucket to the global storage offset of its first entry. -
radixBits
int radixBits
Number of low k-mer bits used as the radix index. -
radixIndex
long[][] radixIndex
Per-radix buckets:radixIndex[r]holds all entries whose radix isr, or null if none. -
radixMask
int radixMask
Bit mask selecting the lowradixBitsbits used as the radix index. -
remainingBits
int remainingBits
Number of low entry bits reserved for the stored remaining k-mer bits. -
remainingMask
long remainingMask
Bit mask selecting the lowremainingBitsbits of an entry.
-
-
-
Package org.metagene.genestrip.tax
-
Class org.metagene.genestrip.tax.SmallTaxTree
class SmallTaxTree extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialization Methods
-
readObject
Deserializes the tree by reading its nodes and rebuilding the lookup trie.- Parameters:
in- the stream to read the tree from- Throws:
IOException- if reading failsClassNotFoundException- if a serialized class cannot be resolved
-
writeObject
Serializes the tree by writing out its nodes starting from the root.- Parameters:
out- the stream to write the tree to- Throws:
IOException- if writing fails
-
-
Class org.metagene.genestrip.tax.SmallTaxTree.SmallTaxIdNode
class SmallTaxIdNode extends TaxIdInfo implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
requested
boolean requested
Whether this node has been explicitly requested. -
subNodes
SmallTaxTree.SmallTaxIdNode[] subNodes
The child nodes of this node, ornullif it is a leaf.
-
-
Class org.metagene.genestrip.tax.TaxIdInfo
class TaxIdInfo extends Object implements Serializable- serialVersionUID:
- 1L
-
Class org.metagene.genestrip.tax.TaxTree.TaxIdNode
class TaxIdNode extends TaxIdInfo implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
depth
int depth
The depth of this node (root = 0), assigned byTaxTree.TaxIdNode.initPositions(int, int). -
oneGenomePerTaxon
boolean oneGenomePerTaxon
Whether the catalog files this taxon's sequences under a category with one genome per taxon. -
parent
TaxTree.TaxIdNode parent
The parent node, ornullfor the root. -
refSeqContigs
int refSeqContigs
The number of RefSeq contigs associated with this node and its descendants. -
required
boolean required
Whether this node is required and must be retained in aSmallTaxTree. -
subNodes
List<TaxTree.TaxIdNode> subNodes
The direct child nodes, ornullif this node has none.
-
-
Class org.metagene.genestrip.tax.TaxTree.TaxIdNodeTrie
-
-
Package org.metagene.genestrip.util
-
Class org.metagene.genestrip.util.DigitTrie
class DigitTrie extends Object implements Serializable- serialVersionUID:
- 1L
-
Class org.metagene.genestrip.util.GSLogFactory.GSLog
class GSLog extends org.metagene.genestrip.util.GSLogFactory.MySimpleLog implements Serializable- serialVersionUID:
- 1L
-
Class org.metagene.genestrip.util.LargeBitVector
class LargeBitVector extends Object implements Serializable- serialVersionUID:
- 2L
-
Serialized Fields
-
bucketMask
int bucketMask
Mask selecting the in-bucket displacement of a word index ((1 << bucketShift) - 1). -
bucketShift
int bucketShift
Base-2 logarithm of the bucket width; a word index is split into bucket (>>> bucketShift) and in-bucket displacement (& bucketMask).-1for an empty vector; otherwise chosen at construction and fixed for the vector's lifetime. -
largeBits
long[][] largeBits
The bucketed backing, allocated once at construction. -
size
long size
The capacity in 64-bit words, fixed at construction.
-
-
Class org.metagene.genestrip.util.LargeShortVector
class LargeShortVector extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
largeShorts
short[][] largeShorts
Large (bucketed) backing array, ornullwhen small storage is used. -
shorts
short[] shorts
Small (int-indexed) backing array, ornullwhen large storage is used. -
size
long size
Current size (number of shorts) of the vector.
-
-
Class org.metagene.genestrip.util.StringLongDigitTrie
-
Class org.metagene.genestrip.util.StringLongDigitTrie.StringLong
class StringLong extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
longValue
long longValue
The long value (counter) associated with the key. -
stringValue
String stringValue
The string key of this pairing.
-
-