Show
Ignore:
Timestamp:
14/08/09 16:29:27 (3 years ago)
Author:
westram
Message:
  • spellchecked all (phew)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/NTREE/AP_consensus.cxx

    r6100 r6141  
    3333 * Dependencies:       Needs consens.fig and CON_groups.fig 
    3434 * 
    35  * Description: This module calculates the consensus of sequencies of 
     35 * Description: This module calculates the consensus of sequences of 
    3636 *              bases or amino acids. The result can be one or more lines 
    3737 *              of characters and it is written to the extended data of 
     
    8383 * Description:       This function creates one or more result strings out 
    8484 *                    of table statistic. Memory for result is allocated 
    85  *                    and later freeded in function CON_calculate_cb 
     85 *                    and later freed in function CON_calculate_cb 
    8686 * 
    8787 * NOTE:              Usage of groupflags and groupnames see function 
     
    510510        { 
    511511            int group2=1; 
    512             float highest=0,relativ; 
     512            float highest=0,relative; 
    513513            int diffchar; 
    514514            if (absolutrow[col]){ 
    515515                while( (diffchar=neworder[group2++]) ){ 
    516                     relativ=(float)statistic[diffchar][col] 
     516                    relative=(float)statistic[diffchar][col] 
    517517                        /(float)absolutrow[col]; 
    518                     if(relativ>highest) highest=relativ; 
    519                     additional[diffchar][col]=relativ; 
     518                    if(relative>highest) highest=relative; 
     519                    additional[diffchar][col]=relative; 
    520520                } 
    521521                additional[0][col]=highest; 
     
    525525        } 
    526526 
    527         GBDATA *gb_relativ=GB_search(gb_graph,"MAX",GB_FLOATS); 
    528         err=GB_write_floats(gb_relativ,additional[0],maxalignlen); 
     527        GBDATA *gb_relative=GB_search(gb_graph,"MAX",GB_FLOATS); 
     528        err=GB_write_floats(gb_relative,additional[0],maxalignlen); 
    529529 
    530530        for(group=1;group<numdiffchars;group++) 
     
    533533            if (ch <'A' || ch>'Z') continue; 
    534534            sprintf(charname,"N%c",ch); 
    535             gb_relativ=GB_search(gb_graph,charname,GB_FLOATS); 
    536             err=GB_write_floats(gb_relativ,additional[group],maxalignlen); 
     535            gb_relative=GB_search(gb_graph,charname,GB_FLOATS); 
     536            err=GB_write_floats(gb_relative,additional[group],maxalignlen); 
    537537        } 
    538538 
     
    628628 
    629629 
    630         /* creating the table for characters and allocating memory for 'statistc' */ 
     630        /* creating the table for characters and allocating memory for 'statistic' */ 
    631631        int *statistic[MAX_AMINOS+1]; 
    632632        int  convtable[256]; 
     
    895895 * Function:           CON_calc_max_freq_cb( AW_window *aw) 
    896896 * 
    897  * Description:       Gets the maximum frequence for each columns. 
     897 * Description:       Gets the maximum frequency for each columns. 
    898898 * 
    899899 * NOTE: