Sketcher#
Sketcher#
- class pysylph.Sketcher(*, c=200, k=31, deduplicate=True, fpr=Ellipsis)#
A
sylphsketcher.- sketch_genome(name, contigs, profiling=True)#
Sketch a genome.
- Parameters:
name (
str) – The name of the genome to sketch. In thesylphbinary, this is set as the filename of the genome file.contigs (iterable of
stror byte buffer) – The genome contigs to be sketched.profiling (
bool) – Set toFalseto disable the tracking of unsued k-mers, which is required for profiling. This will prevent the sketch from being used withProfiler.profile.
- Returns:
GenomeSketch– The sketched genome.
- sketch_paired(name, r1, r2)#
Sketch a sample composed of paired reads.
- Parameters:
name (
str) – The name of the sample to sketch. In thesylphbinary, this is set as the filename of the genome file.r1 (iterable of
stror byte buffer) – The first sequences for paired end reads to be sketched.r2 (iterable of
stror byte buffer) – The second sequences for paired end reads to be sketched.
- Returns:
SampleSketch– The sketched sample.
Added in version 0.1.2.
- sketch_single(name, reads)#
Sketch a sample composed of single-read sequences.
- Parameters:
- Returns:
SampleSketch– The sketched sample.