imager.pl - Read input text file and write cladogram image file using Imager
imager.pl plots a cladogram.
imager.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.
Specify the color of the branches in the tree.
Default: '#7e7e7e' (gray).
Specify the thickness of the branches.
Default: 3 (px).
Reserved for the use of the author ;-).
If set, include the frame in the output image.
Default: 0 (no frame).
Specify the length of the final branch leading to the names of the leaves.
Default: 30 (px).
Specify the color of the frame, if any.
Use a word - 'blue' or a HTML color specification - '#ff0000'.
Default: '#0000ff'.
See also draw_frame.
draw_frame
Print help and exit.
The path of the input text file to read.
This option is mandatory.
For sample input files, see data/*.clad.
Default: ''.
The color of the font used for leaf names.
Default: '#0000ff' (blue).
The path to a font file to be used for leaf names.
Default: /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf.
This file ships as data/VeraBd.ttf.
The pointsize of the font used for leaf names.
Default: 16 (points).
Specify the distance from the left of the image to the left-most point at which something is drawn.
Default: 15 (px).
The path of the output image file to wite.
For sample output files, see data/*.png.
If set print the tree constructed by reading the input file.
Default: 0 (no output).
Add a title at the bottom of the image.
See scripts/plot.sh for how to protect strings-with-spaces from the shell.
Default: '' (no title).
The color of the font used for the title.
Default: '#000000' (black).
The path to a font file to be used for the title.
Default: /usr/share/fonts/truetype/freefont/FreeSansBold.ttf.
This file ships as data/FreeSansBold.ttf.
The pointsize of the font used for the title.
Specify the distance from the top of the image to the top-most point at which something is drawn.
The horizontal length of branches.
See also final_x_step and y_step.
final_x_step
y_step
Default: 50 (px).
The vertical length of the branches.
Note: Some vertical branches will be shortened if the code detects overlapping when leaf names are drawn.
See also x_step.
x_step
Default: 36 (px).
To install Tree::Cladogram, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tree::Cladogram
CPAN shell
perl -MCPAN -e shell install Tree::Cladogram
For more information on module installation, please visit the detailed CPAN module installation guide.