Method 
base_z_value 
 
Classpackage  
G::Seq::Consensus; 
 
 
Function 
Calculates the Z-value of the base_counter 
 
 
Description 
By recieving the returned result from the base_counter, this method 
calculates the Z-value around the start/end codon. 
The Z-value is calculated per position from the start/end codon. 
The Z-value is calculated by the following equation: 
 
Zvalue=No-Np/¢åNp(1-P) 
  
 
Requirements 
modules   
SubOpt.pm 
&base_counter 
 
applications 
none 
 
data 
none 
 
Parameters 
essential 
 
first     hash    base_counter_result     struct of base_counter   
 
option 
filename   string  file_name            default=consensus.csv    
PatLength  int     pattern_length       default=3   
upstream   int     upstream             default=30   
downstream int     downstream           default=30   
position   string  position             default 
limit      int     limit                default=5 
 
Returns 
first     variable     result     pointer of array 
 
Usage 
(array result)=&base_z_value(hash base_counter_result, limit=>5,output=>"stdout",filename=>"consensus.csv",PatLength=>3,upstream=>30,downstream=>30,position=>"end"); 
 
Input file  
csv file in text foramt 
 
 
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 14 July  2001 - Koya Mori