[Bioperl-l] FeatureFile and pad_left

Ken kjgraham at ucdavis.edu
Tue Apr 1 13:12:00 EST 2003


I'd like to use a FeatureFile object but I can't figure out how to pad the 
left and right sides of the panel.
I've tried to put pad_left in the input file and in the script (see below)
Any suggestions?
Thanks
Ken Graham
Biological Chemistry
School of Medicine
U.C. Davis
________________________________
#!/usr/bin/perl
use Bio::Graphics::FeatureFile;
my $data  = Bio::Graphics::FeatureFile->new(-file 
=>'/home/ken/graphic_rendering/testData',
					    -pad_left=>50, #use 50 to see an effect
					    -pad_right=>50,
					    );

open OUT, ">/home/ken/outtest.png" or die;
# create a new panel and render contents of the file onto it
my $panel = $data->new_panel;
my $tracks_rendered = $data->render($panel);
print OUT  $panel->png;


More information about the Bioperl-l mailing list