AbstractSparseKmerSet

abstract class AbstractSparseKmerSet(val kmerSize: Int, val bothStrands: Boolean, val stepSize: Int, val keepMinOnly: Boolean) : AbstractKmerSet

Represents some AbstractKmerSet where most of the unique kmers of kmerSize are not represented. The maximum number of kmers cannot exceed MAX_VALUE of Int.

Inheritors

Constructors

Link copied to clipboard
constructor(kmerSize: Int, bothStrands: Boolean, stepSize: Int, keepMinOnly: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Generates kmers from a nucleotide sequence and adds those kmers to this set.

Link copied to clipboard

Returns the number of ambiguous kmers in the set.

Link copied to clipboard
abstract fun contains(kmer: Kmer): Boolean

Returns true if kmer is in the set.

Link copied to clipboard
abstract fun getCountOf(kmer: Kmer): Int

Returns the count of kmer in the set. If the set does not store counts, returns 1 if kmer is in the set.

Link copied to clipboard
fun getEvenOddHashMap(): Long2ObjectOpenHashMap<LongOpenHashSet>

Hashes the longs in the set based on their even nucleotides and their odd nucleotides, placing each long into two bins. Returns this map of bins.

Link copied to clipboard
abstract fun isEmpty(): Boolean

Returns true if set contains no kmers.

Link copied to clipboard
abstract fun longSet(): LongSet

Returns the set of kmers in the set as Longs

Link copied to clipboard
fun minHammingDistance(kmer: Kmer, bothStrands: Boolean = true): Int

Returns the minimum hamming distance between the query kmer and all kmers in this map

Link copied to clipboard

Returns the total length of sequence(s) used to generate this set.

Link copied to clipboard
abstract fun set(): Set<Kmer>

Returns the set of kmers in this set

Link copied to clipboard
abstract fun setSize(): Long

Returns the number of unique kmers in the set (not the count of total kmers).

Link copied to clipboard
open override fun toString(): String

Summarizes set parameters and size in string format.