File: gif.pl

package info (click to toggle)
libace-perl 1.92-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,012 kB
  • sloc: perl: 7,763; ansic: 7,420; makefile: 81
file content (19 lines) | stat: -rwxr-xr-x 459 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/local/bin/perl

use lib '..','../blib/lib','../blib/arch';
use Ace;

use constant HOST => $ENV{ACEDB_HOST} || 'stein.cshl.org';
use constant PORT => $ENV{ACEDB_PORT} || 200005;

die <<END if -t STDOUT;
Pipe the output to a file or a GIF displaying program.
 Examples:
           gif.pl | xv -
           gif.pl > output.gif
END

$ace = Ace->connect(-host=>HOST,-port=>PORT);
$m4 = $ace->fetch('Sequence', 'AC3' );
($gif,$box) = $m4->asGif;
print $gif;