Tree-Cladogram
view release on metacpan or search on metacpan
scripts/image.magick.pl view on Meta::CPAN
#!/usr/bin/env perl
use strict;
use warnings;
use Getopt::Long;
use Pod::Usage;
use Tree::Cladogram::ImageMagick;
# ----------------------------------------------
my($option_parser) = Getopt::Long::Parser -> new;
my(%option);
if ($option_parser -> getoptions
(
\%option,
'branch_color=s',
'branch_width=i',
'debug=i',
'draw_frame=i',
'final_x_step=i',
'frame_color=s',
'help',
'input_file=s',
'leaf_font_color=s',
'leaf_font_file=s',
'leaf_font_size=i',
'left_margin=i',
'output_file=s',
'print_tree=i',
'title=s',
'title_font_color=s',
'title_font_file=s',
'title_font_size=i',
'top_margin=i',
'x_step=i',
'y_step=i',
) )
{
pod2usage(1) if ($option{'help'});
exit Tree::Cladogram::ImageMagick -> new(%option) -> run;
}
else
{
pod2usage(2);
}
__END__
=pod
=head1 NAME
image.magick.pl - Read input text file and write cladogram image file using Image::Magick
=head1 DESCRIPTION
image.magick.pl plots a cladogram.
=head1 SYNOPSIS
image.magick.pl [options]
Options:
-branch_color $string
-branch_width $integer
-debug $Boolean
-draw_frame $Boolean
-final_x_step $integer
-frame_color $string
-help
-input_file $string
-leaf_font_color $string
-leaf_font_file $string
-leaf_font_size $integer
-left_margin $integer
-output_file $string
-print_tree $Boolean
-title $string
-title_font_color $string
-title_font_file $string
-title_font_size $integer
-top_margin $integer
-x_step $iteger
-y_step $iteger
All switches can be reduced to a single letter.
Exit value: 0.
=head1 OPTIONS
=over 4
=item o -branch_color $string
Specify the color of the branches in the tree.
Default: '#7e7e7e' (gray).
Specify the thickness of the branches.
Default: 3 (px).
=item o -branch_width $integer
Specify the thickness of the branches.
Default: 3 (px).
=item o -debug $Boolean
Reserved for the use of the author ;-).
( run in 0.964 second using v1.01-cache-2.11-cpan-39bf76dae61 )