Method 
codon_counter 
 
Class 
G::Seq::Codon; 
 
 
Function 
Counts the number of codons in CDS 
 
Description 
This method counts codons per CDS.   
When the CDS is not specified, all CDS in the genome 
is counted and returned. 
 
Requirements 
modules   
SubOpt.pm 
GD.pm  
G::Messenger 
 
applications 
none 
 
data 
none 
 
Parameters 
essential 
 
first     pointer   Genome       G's instance 
 
option 
CDSid     string  key               default=" " 
filename  string  file_name         default=codon.csv 
output    string  [stdout or f]     default=stdout  
  
 
Returns 
first     pointer   result   The result 
 
 
Usage 
(pointer result)=&codon_counter(pointer Genome,  -CDSid=>' ', -filename=>'codon.csv',output=>'stdout'); 
 
Input file  
none 
 
 
Output file  
csv file in text format 
 
References 
none  
 
Comments 
none 
 
Authors 
This method was written by Koya Mori(mory@g-language.org) at Institute for Advanced Biosciences Keio Univ.  
 
 
History 
Written 21 July   2001 - Koya Mori