Sketch#

Sketch#

class pysylph.Sketch#

A base sketch object.

c#

The subsampling rate this sketch was built with.

Type:

int

k#

The k-mer size this sketch was built with.

Type:

int

GenomeSketch#

class pysylph.GenomeSketch#

A (reference) genome sketch.

c#

The subsampling rate this sketch was built with.

Type:

int

description#

The description of the genome this sketch originates from.

Type:

str

genome_size#

The total number of nucleotides in the genome.

Type:

int

k#

The k-mer size this sketch was built with.

Type:

int

kmers#

The list of k-mers extracted from the genome.

Type:

list of int

min_spacing#

The minimum spacing between k-mers used when sketching.

Type:

int

name#

The name of the genome this sketch originates from.

Type:

str

SampleSketch#

class pysylph.SampleSketch#

A (query) sample sketch.

dump(path)#

Dump a sequence sketch to a path.

load()#

Load a sequence sketch from a path.

c#

The subsampling rate this sketch was built with.

Type:

int

k#

The k-mer size this sketch was built with.

Type:

int

kmer_counts#

A counter of k-mers in this sketch.

Type:

dict