Method 
seq2gif 
 
Classpackage  
????? 
 
 
Function 
Converts a sequence to a gif image. 
 
 
Description 
This subroutine converts a sequence to a gif image. 
A is shown in red, T is shown in green,  
G is shown in yellow, and C is shown in blue.  
Option -width sets the width of the image.  filename is set by option  
 
-filename.  When the output is set to "g", a graph is outputted; "show" sets  
 
the output for display. 
 
Requirements 
 SubOpt.pm 
 GD.pm 
 
applications 
none 
 
data 
none 
 
Parameters 
essential 
 
first     pointer  G instance     G's instance 
 
 
 
option 
width     int       width of the image     default=640 
filename  string    filename               default="seq.gif" 
output    string    output                 default="show"                   
 
Returns 
first      NULL     ????? 
 
 
Usage 
NULL = &seq2gif(pointer G instance, -width=>640, -filename=>'seq.gif', -output=>'show'); 
 
Input file  
none 
 
 
Output file  
A image file in Gif format 
 
References 
none  
 
Comments 
none 
 
Authors 
This method was written by Kazuharu Arakawa(gaou@g-language.org) at Institute  
 
for Advanced Biosciences Keio Univ.  
 
 
History 
Written 30 August  2001 - Kazuharu Arakawa 
Written 06 Sept    2001 - Kazuharu Arakawa