qw/part/;
use POSIX qw/floor/;
# if JSON::XS is installed, it will be automatically used.
# Specify () so that no functions are exported. We will use OO.
use JSON ();
use IO::Handle; # allows me to
100.";
}
# Give a warning if JSON is going to be slow later
my $jsonTmp = JSON->new();
if(! $jsonTmp->is_xs){
logmsg "WARNING: the currently installed JSON module will make this script ver
y slow when jack knifing. To avoid this error, install the JSON::XS module like so: `cpanm ~l ~ JSON::XS`.";
}
## Catch some options that are not allowed to be passed
# Tempdir: All mashtree
ib dirname($INC{"Mashtree/Mash.pm"})."/..";
use Mashtree qw/_truncateFilename logmsg/;
use JSON qw/from_json/;
use Bio::Seq;
use Bio::SimpleAlign;
use Bio::Align::DNAStatistics;
use Bio::Tree::Distan
$self;
}
sub info{
my($self,$msh)=@_;
my %info = %{ $self->{info} };
my $mashInfo=from_json(`mash info -d $msh`);
for my $sketch(@{ $$mashInfo{sketches} }){
#delete($$sketch{hashes})
d $sketch | ") or die "ERROR: could not run mash info -d on $sketch: $!";
} elsif($sketch =~ /\.json$/){
open($fh, $sketch) or die "ERROR: could not read $sketch: $!";
}
while(<$fh>){
if