KmerIO

class KmerIO(filename: String, isCompressed: Boolean = true) : Iterator<Pair<Kmer, Int>>

This class reads kmers from a text file (which may be LZ4 compressed) and can be used to construct KmerSet, KmerBigSet, and KmerMultiSet objects. It can also iterate through a kmer text file without constructing a set.

Constructors

Link copied to clipboard
constructor(filename: String, isCompressed: Boolean = true)

Functions

Link copied to clipboard

Closes the file reader.

Link copied to clipboard
open fun forEachRemaining(p0: Consumer<in Pair<Kmer, Int>>)
Link copied to clipboard
open operator override fun hasNext(): Boolean

Returns true if there is another kmer in the file.

Link copied to clipboard
open operator override fun next(): Pair<Kmer, Int>

Returns the next kmer in the file and its associated count as a pair.

Link copied to clipboard

Returns an AbstractKmerSet of all kmers in the file. The header must specify a valid set type, or an exception will be thrown.

Link copied to clipboard

Returns a KmerBigSet of all kmers in the file.

Link copied to clipboard

Returns a KmerMultiSet of all kmers in the file.

Link copied to clipboard

Returns a KmerSet of all kmers in the file.