| Bio-Phylo documentation | Contained in the Bio-Phylo distribution. |
Bio::Phylo::Treedrawer::Gif - Graphics format writer used by treedrawer, no serviceable parts inside
This module creates a gif file from a Bio::Phylo::Forest::DrawTree object. It is called by the Bio::Phylo::Treedrawer object, so look there to learn how to create tree drawings.
The gif treedrawer is called by the Bio::Phylo::Treedrawer object. Look there to learn how to create tree drawings.
Also see the manual: Bio::Phylo::Manual and http://rutgervos.blogspot.com.
If you use Bio::Phylo in published research, please cite it:
Rutger A Vos, Jason Caravas, Klaas Hartmann, Mark A Jensen and Chase Miller, 2011. Bio::Phylo - phyloinformatic analysis using Perl. BMC Bioinformatics 12:63. http://dx.doi.org/10.1186/1471-2105-12-63
$Id: Gif.pm 1660 2011-04-02 18:29:40Z rvos $
| Bio-Phylo documentation | Contained in the Bio-Phylo distribution. |
package Bio::Phylo::Treedrawer::Gif; use strict; use Bio::Phylo::Util::Exceptions 'throw'; use Bio::Phylo::Util::Dependency 'Bio::Phylo::Treedrawer::Png'; use base 'Bio::Phylo::Treedrawer::Png';
sub _finish { my $self = shift; my $gif; eval { $gif = $self->_api->gif }; if ( not $@ ) { return $gif; } else { throw 'ExtensionError' => "Can't create GIF, libgd probably not compiled with it: $@"; } }
1;