Sketch interface module
An interface module for Sketches, e.g., Mash
use strict; use warnings; use Bio::Sketch::Mash; # Produce a sketch file file.fastq.gz.msh system("mash sketch file.fastq.gz"); # Read the sketch my $sketch = Bio::Sketch::Mash->new("file.fastq.gz.msh"); $sketch->writeJson("file.fastq.gz.json");
Create a new Sketch instance. One object per file.
Arguments: Sketch filename Hash of options Returns: Sketch object
Sketch a raw reads or assembly file
Arguments: Filename Returns: 1 for success or 0 for failure
Find the distance between two sketches
Arguments: Bio::Sketch object Returns: Distance in a float
Merge two sketches
Arguments: List of Bio::Sketch objects Returns: Bio::Sketch object of merged sketches
To install Bio::Sketch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Sketch
CPAN shell
perl -MCPAN -e shell install Bio::Sketch
For more information on module installation, please visit the detailed CPAN module installation guide.