| 1 | extern int intlen( int *num ); |
|---|
| 2 | extern char seqcheck( char **seq ); |
|---|
| 3 | extern void scmx_calc( int icyc, char **aseq, double *effarr, float **scmx ); |
|---|
| 4 | extern void exitall( char arr[] ); |
|---|
| 5 | extern void display( char **seq, int nseq ); |
|---|
| 6 | extern void intergroup_score( char **seq1, char **seq2, double *eff1, double *eff2, int clus1, int clus2, int len, double *value ); |
|---|
| 7 | extern void intergroup_score_gapnomi( char **seq1, char **seq2, double *eff1, double *eff2, int clus1, int clus2, int len, double *value ); |
|---|
| 8 | extern void intergroup_score_new( char **seq1, char **seq2, double *eff1, double *eff2, int clus1, int clus2, int len, double *value ); |
|---|
| 9 | extern double score_calc5( char **seq, int s, double **eff, int ex ); |
|---|
| 10 | extern double score_calc4( char **seq, int s, double **eff, int ex ); |
|---|
| 11 | extern void upg2( int nseq, double **eff, int ***topol, double **len ); |
|---|
| 12 | //extern void veryfastsupg_float_realloc_nobk_halfmtx( int njob, float **mtx, int ***topol, float **len ); |
|---|
| 13 | //extern void veryfastsupg_float_realloc_nobk( int njob, float **mtx, int ***topol, float **len ); |
|---|
| 14 | extern void veryfastsupg_int_realloc_nobk( int njob, int **mtx, int ***topol, double **len ); |
|---|
| 15 | extern void veryfastsupg( int nseq, double **oeff, int ***topol, double **len ); |
|---|
| 16 | extern void veryfastsupg_double( int nseq, double **oeff, int ***topol, double **len ); |
|---|
| 17 | extern void veryfastsupg_double_loadtree( int nseq, double **oeff, int ***topol, double **len, char **name ); |
|---|
| 18 | //extern void veryfastsupg_double_loadtop( int nseq, double **oeff, int ***topol, double **len ); |
|---|
| 19 | extern void veryfastsupg_int( int nseq, int **oeff, int ***topol, double **len ); |
|---|
| 20 | extern void fastsupg( int nseq, double **oeff, int ***topol, double **len ); |
|---|
| 21 | extern void supg( int nseq, double **oeff, int ***topol, double **len ); |
|---|
| 22 | extern void spg( int nseq, double **oeff, int ***topol, double **len ); |
|---|
| 23 | extern double ipower( double x, int n ); |
|---|
| 24 | extern void countnode( int nseq, int ***topol, double **node ); |
|---|
| 25 | extern void countnode_int( int nseq, int ***topol, int **node ); |
|---|
| 26 | extern void counteff_simple( int nseq, int ***topol, double **len, double *node ); |
|---|
| 27 | extern void counteff_simple_float( int nseq, int ***topol, float **len, double *node ); |
|---|
| 28 | extern void counteff_simple_float_nostatic( int nseq, int ***topol, float **len, double *node ); |
|---|
| 29 | extern void counteff( int nseq, int ***topol, double **len, double **node ); |
|---|
| 30 | extern float score_calc1( char *seq1, char *seq2 ); |
|---|
| 31 | extern float score_calcp( char *seq1, char *seq2, int len ); |
|---|
| 32 | extern float substitution_nid( char *seq1, char *seq2 ); |
|---|
| 33 | extern float substitution_score( char *seq1, char *seq2 ); |
|---|
| 34 | extern float substitution_hosei( char *seq1, char *seq2 ); |
|---|
| 35 | extern float substitution( char *seq1, char *seq2 ); |
|---|
| 36 | extern void treeconstruction( char **seq, int nseq, int ***topol, double **len, double **eff ); |
|---|
| 37 | extern float bscore_calc( char **seq, int s, double **eff ); |
|---|
| 38 | extern void AllocateTmpSeqs( char ***mseq2pt, char **mseq1pt, int locnlenmax ); |
|---|
| 39 | extern void FreeTmpSeqs( char **mseq2, char *mseq1 ); |
|---|
| 40 | extern void gappick_samestring( char *aseq ); |
|---|
| 41 | extern void gappick0( char *aseq, char *seq ); |
|---|
| 42 | extern void gappick( int nseq, int s, char **aseq, char **mseq2, |
|---|
| 43 | double **eff, double *effarr ); |
|---|
| 44 | extern void commongappick_record( int nseq, char **seq, int *map ); |
|---|
| 45 | extern void commongappick( int nseq, char **seq ); |
|---|
| 46 | extern double score_calc0( char **seq, int s, double **eff, int ex ); |
|---|
| 47 | extern void strins( char *str1, char *str2 ); |
|---|
| 48 | extern int isaligned( int nseq, char **seq ); |
|---|
| 49 | extern double score_calc_for_score( int nseq, char **seq ); |
|---|
| 50 | extern void floatncpy( float *vec1, float *vec2, int len ); |
|---|
| 51 | extern float score_calc_a( char **seq, int s, double **eff ); |
|---|
| 52 | extern float score_calc_s( char **seq, int s, double **eff ); |
|---|
| 53 | extern double score_calc_for_score_s( int s, char **seq ); |
|---|
| 54 | extern double SSPscore( int s, char **seq ); |
|---|
| 55 | extern double DSPscore( int s, char **seq ); |
|---|
| 56 | extern int searchAnchors( int nseq, char **seq, Segment *seg ); |
|---|
| 57 | extern char *progName( char *str ); |
|---|
| 58 | extern void dontcalcimportance( int nseq, double *eff, char **seq, LocalHom **localhom ); |
|---|
| 59 | extern void dontcalcimportance_lastone( int nseq, double *eff, char **seq, LocalHom **localhom ); |
|---|
| 60 | extern void dontcalcimportance_firstone( int nseq, double *eff, char **seq, LocalHom **localhom ); |
|---|
| 61 | extern void calcimportance( int nseq, double *eff, char **seq, LocalHom **localhom ); |
|---|
| 62 | extern void weightimportance2( int nseq, double *eff, LocalHom **localhom ); |
|---|
| 63 | extern void weightimportance4( int clus1, int clus2, double *eff1, double *eff2, LocalHom ***localhom ); |
|---|
| 64 | extern void extendlocalhom( int nseq, LocalHom **localhom ); |
|---|
| 65 | extern void extendlocalhom2( int nseq, LocalHom **localhom, double **mtx ); |
|---|
| 66 | extern int makelocal( char *s1, char *s2, int thr ); |
|---|
| 67 | extern void mdfymtx( char **pair, int s1, double **partialmtx, double **mtx ); |
|---|
| 68 | extern float score_calc( char **seq, int s ); |
|---|
| 69 | extern void cpmx_calc( char **seq, float **cpmx, double *eff, int lgth, int clus ); |
|---|
| 70 | extern void cpmx_calc_new( char **seq, float **cpmx, double *eff, int lgth, int clus ); |
|---|
| 71 | extern void MScpmx_calc_new( char **seq, float **cpmx, double *eff, int lgth, int clus ); |
|---|
| 72 | extern void mseqcat( char **seq1, char **seq2, double **eff, double *effarr1, double *effarr2, char name1[M][B], char name2[M][B], int clus1, int clus2 ); |
|---|
| 73 | extern void strnbcat( char *s1, char *s2, int m ); |
|---|
| 74 | extern int conjuctionforgaln( int s0, int s1, char **seq, char **aseq, double *peff, double *eff, char **name, char **aname, char *d ); |
|---|
| 75 | extern int fastconjuction( int *memlist, char **seq, char **aseq, double *peff, double *eff, char name[M][B], char aname[M][B], char *d ); |
|---|
| 76 | extern int fastconjuction_noname_kozo( int *memlist, char **seq, char **aseq, double *peff, double *eff, double *peff_kozo, double *eff_kozo, char *d ); |
|---|
| 77 | extern int fastconjuction_noname( int *memlist, char **seq, char **aseq, double *peff, double *eff, char *d ); |
|---|
| 78 | extern int fastconjuction_noweight( int *memlist, char **seq, char **aseq, double *peff, char *d ); |
|---|
| 79 | extern int conjuctionfortbfast_old( char **pair, int s, char **seq, char **aseq, double *peff, double *eff, char *d ); |
|---|
| 80 | extern int conjuction( char **pair, int s, char **seq, char **aseq, double *peff, double *eff, char **name, char **aname, char *d ); |
|---|
| 81 | extern void floatdelete( float **cpmx, int d, int len ); |
|---|
| 82 | extern void chardelete( char *seq, int d ); |
|---|
| 83 | extern int RootBranchNode( int nseq, int ***topol, int step, int branch ); |
|---|
| 84 | extern void BranchLeafNode( int nseq, int ***topol, int *node, int step, int branch ); |
|---|
| 85 | extern void RootLeafNode( int nseq, int ***topol, int *node ); |
|---|
| 86 | extern void nodeFromABranch( int nseq, int *result, int **pairwisenode, int ***topol, double **len, int step, int num ); |
|---|
| 87 | //extern void OneClusterAndTheOther( int locnjob, char **pair, int *s1, int *s2, int ***topol, int step, int branch ); |
|---|
| 88 | extern void OneClusterAndTheOther_fast( int locnjob, int *memlist1, int *memlist2, int *s1, int *s2, char *pairbuf, int ***topol, int step, int branch ); |
|---|
| 89 | extern void makeEffMtx( int nseq, double **mtx, double *vec ); |
|---|
| 90 | extern void node_eff( int nseq, double *eff, int *node ); |
|---|
| 91 | extern int shrinklocalhom( char **pair, int s1, int s2, LocalHom **localhom, LocalHom ***localhomshrink ); |
|---|
| 92 | extern int msshrinklocalhom_fast( int *memlist1, int *memlist2, LocalHom **localhom, LocalHom ***localhomshrink ); |
|---|
| 93 | extern int fastshrinklocalhom( int *mem1, int *mem2, LocalHom **localhom, LocalHom ***localhomshrink ); |
|---|
| 94 | extern int fastshrinklocalhom_one( int *mem1, int *mem2, int norg, LocalHom **localhom, LocalHom ***localhomshrink ); |
|---|
| 95 | extern int msfastshrinklocalhom( int *mem1, int *mem2, LocalHom **localhom, LocalHom ***localhomshrink ); |
|---|
| 96 | extern int TreeDependentIteration( int locnjob, char **name, int nlen[M], char **aseq, char **bseq, int ***topol, double **len, int **skipthisbranch, int alloclen, LocalHom **localhomtable, RNApair ***single, int nkozo, char *kozoarivec ); |
|---|
| 97 | extern void checkMinusLength( int nseq, double **len ); |
|---|
| 98 | extern void negativeMember2( int *mem, int *query, int locnseq ); |
|---|
| 99 | extern int *negativeMember( int *query, int locnseq ); |
|---|
| 100 | extern int IntExistsInVec( int query, int *vector ); |
|---|
| 101 | extern NodeInCub searchParent( int top, int ***topol, int Start, int End ); |
|---|
| 102 | extern void stopolInit( int n, Node *stopol ); |
|---|
| 103 | extern void treeCnv( Node *stopol, int locnseq, int ***topol, double **len, double **bw ); |
|---|
| 104 | extern int isLeaf( Node node ); |
|---|
| 105 | extern double syntheticLength( Node *ob, Node *oppositeNode ); |
|---|
| 106 | extern double calcW( Node *ob, Node *op ); |
|---|
| 107 | extern void calcBranchWeight( double **bw, int locnseq, Node *stopol, int ***topol, double **len ); |
|---|
| 108 | extern void branchWeightToPairWeight( int locnseq, int ***topol, double **pw, double **bw ); |
|---|
| 109 | extern void weightFromABranch_rec( double *result, Node *ob, Node *op ); |
|---|
| 110 | extern void weightFromABranch( int nseq, double *result, Node *stopol, int ***topol, int step, int LorR ); |
|---|
| 111 | extern void keika( char *str, int current, int all ); |
|---|
| 112 | extern double maxItch( double *soukan, int size ); |
|---|
| 113 | extern void calcNaiseki( Fukusosuu *value, Fukusosuu *x, Fukusosuu *y ); |
|---|
| 114 | extern Fukusosuu *AllocateFukusosuuVec( int l1 ); |
|---|
| 115 | extern Fukusosuu **AllocateFukusosuuMtx( int l1, int l2 ); |
|---|
| 116 | extern Fukusosuu ***AllocateFukusosuuCub( int l1, int l2, int l3 ); |
|---|
| 117 | extern void FreeFukusosuuVec( Fukusosuu *vec ); |
|---|
| 118 | extern void FreeFukusosuuMtx( Fukusosuu **mtx ); |
|---|
| 119 | extern int getKouho( int *kouho, int nkouho, double *soukan, int nlen2 ); |
|---|
| 120 | extern void zurasu2( int lag, int clus1, int clus2, char **seq1, char **seq2, char **aseq1, char **aseq2 ); |
|---|
| 121 | extern void zurasu( int lag, int clus1, int clus2, char **seq1, char **seq2, char **aseq1, char **aseq2 ); |
|---|
| 122 | extern int alignableReagion( int clus1, int clus2, char **seq1, char **seq2, double *eff1, double *eff2, Segment *seg ); |
|---|
| 123 | extern void blockAlign( int *cut1, int *cut2, double **ocrossscore, int *ncut ); |
|---|
| 124 | extern void blockAlign2( int *cut1, int *cut2, Segment **seg1, Segment **seg2, double **ocrossscore, int *ncut ); |
|---|
| 125 | extern void blockAlign3( int *cut1, int *cut2, Segment **seg1, Segment **seg2, double **ocrossscore, int *ncut ); |
|---|
| 126 | extern float A__align11( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, LocalHom ***localhom, float *impmatch ); |
|---|
| 127 | extern float imp_match_out_scH( int i1, int j1 ); |
|---|
| 128 | extern void imp_match_init_strictH( float *imp, int clus1, int clus2, int lgth1, int lgth2, char **seq1, char **seq2, double *eff1, double *eff2, LocalHom ***localhom, int forscore ); |
|---|
| 129 | extern float imp_match_out_scQ( int i1, int j1 ); |
|---|
| 130 | extern float imp_match_out_scR( int i1, int j1 ); |
|---|
| 131 | extern void imp_match_init_strictQ( float *imp, int clus1, int clus2, int lgth1, int lgth2, char **seq1, char **seq2, double *eff1, double *eff2, LocalHom ***localhom, int forscore ); |
|---|
| 132 | extern void imp_match_init_strictR( float *imp, int clus1, int clus2, int lgth1, int lgth2, char **seq1, char **seq2, double *eff1, double *eff2, LocalHom ***localhom, int forscore ); |
|---|
| 133 | extern void imp_match_init( float *imp, int clus1, int clus2, int lgth1, int lgth2, char **seq1, char **seq2, double *eff1, double *eff2, LocalHom ***localhom ); |
|---|
| 134 | extern float MSalignmm( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, char *, char *, char *, char *, int *, int, int *, int headgp, int tailgp ); |
|---|
| 135 | extern float Lalignmm_hmout( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, char *, char *, char *, char *, float **map ); |
|---|
| 136 | extern float Lalign2m2m_hmout( char **seq1, char **seq2, char **seq1r, char **seq2r, char *dir1, char *dir2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, char *, char *, char *, char *, float **map ); |
|---|
| 137 | extern float MSalign11( char **seq1, char **seq2, int alloclen ); |
|---|
| 138 | //extern float rnalocal( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, RNApair **pair ); |
|---|
| 139 | extern float A__align( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, LocalHom ***localhom, float *impmatch, char *gs1, char *gs2, char *ge1, char *ge2, int *, int, int *, int headgp, int tailgp ); |
|---|
| 140 | extern float H__align( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, LocalHom ***localhom, float *impmatch, char *gs1, char *gs2, char *ge1, char *ge2 ); |
|---|
| 141 | extern float Q__align( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, LocalHom ***localhom, float *impmatch, char *gs1, char *gs2, char *ge1, char *ge2 ); |
|---|
| 142 | extern float Q__align_gapmap( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, LocalHom ***localhom, float *impmatch, char *gs1, char *gs2, char *ge1, char *ge2, int *gapmap1, int *gapmap2 ); |
|---|
| 143 | extern float R__align( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, LocalHom ***localhom, float *impmatch, char *gs1, char *gs2, char *ge1, char *ge2 ); |
|---|
| 144 | extern float R__align( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, LocalHom ***localhom, float *impmatch, char *gs1, char *gs2, char *ge1, char *ge2 ); |
|---|
| 145 | extern float A__align_gapmap( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, LocalHom ***localhom, float *impmatch, int *gapmap1, int *gapmap2 ); |
|---|
| 146 | extern float D__align_gapmap( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, LocalHom ***localhom, float *impmatch, int *gapmap1, int *gapmap2 ); |
|---|
| 147 | extern float translate_and_Calign( char **mseq1, char **mseq2, double *effarr1, double *effarr2, int clus1, int clus2, int alloclen ); |
|---|
| 148 | extern double Fgetlag( char **seq1, char **seq2, double *eff1, double *eff2, int clus1, int clus2, int alloclen ); |
|---|
| 149 | extern float Falign( char **seq1, char **seq2, double *eff1, double *eff2, int clus1, int clus2, int alloclen, int *fftlog, int *, int, int * ); |
|---|
| 150 | extern float Falign_udpari_long( char **seq1, char **seq2, double *eff1, double *eff2, int clus1, int clus2, int alloclen, int *fftlog ); |
|---|
| 151 | float Falign_localhom( char **seq1, char **seq2, double *eff1, double *eff2, int clus1, int clus2, int alloclen, LocalHom ***localhom, float *totalimpmatch, int *gapmap1, int *gapmap2, int *chudanpt, int chudanref, int *chudanres ); |
|---|
| 152 | extern float part_imp_match_out_sc( int i1, int j1 ); |
|---|
| 153 | extern float part_imp_match_out_scQ( int i1, int j1 ); |
|---|
| 154 | extern void part_imp_match_init_strict( float *imp, int clus1, int clus2, int lgth1, int lgth2, char **seq1, char **seq2, double *eff1, double *eff2, double *eff1_kozo, double *eff2_kozo, LocalHom ***localhom, int forscore ); |
|---|
| 155 | extern void part_imp_match_init_strictQ( float *imp, int clus1, int clus2, int lgth1, int lgth2, char **seq1, char **seq2, double *eff1, double *eff2, LocalHom ***localhom, int forscore ); |
|---|
| 156 | extern void part_imp_match_init( float *imp, int clus1, int clus2, int lgth1, int lgth2, char **seq1, char **seq2, double *eff1, double *eff2, LocalHom ***localhom ); |
|---|
| 157 | extern float partA__align( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, LocalHom ***localhom, float *impmatch, int start1, int end1, int start2, int end2, int *gapmap1, int *gapmap2, char *, char *, char *, char *, int *, int, int * ); |
|---|
| 158 | extern float partQ__align( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, LocalHom ***localhom, float *impmatch, int start1, int end1, int start2, int end2, int *gapmap1, int *gapmap2, char *, char *, char *, char *); |
|---|
| 159 | extern float G__align11( char **seq1, char **seq2, int alloclen, int headgp, int tailgp ); |
|---|
| 160 | extern float G__align11_noalign( int mtx[0x80][0x80], int penal, int penal_ex, char **seq1, char **seq2, int alloclen ); |
|---|
| 161 | extern float L__align11( char **seq1, char **seq2, int alloclen, int *off1pt, int *off2pt ); |
|---|
| 162 | extern float L__align11_noalign( char **seq1, char **seq2 ); |
|---|
| 163 | extern float genL__align11( char **seq1, char **seq2, int alloclen, int *off1pt, int *off2pt ); |
|---|
| 164 | extern float genG__align11( char **seq1, char **seq2, int alloclen ); |
|---|
| 165 | extern float VAalign11( char **seq1, char **seq2, int alloclen, int *off1pt, int *off2pt, LocalHom *lhmpt ); |
|---|
| 166 | extern float suboptalign11( char **seq1, char **seq2, int alloclen, int *off1pt, int *off2pt, LocalHom *lhmpt ) |
|---|
| 167 | ; |
|---|
| 168 | extern int fft(int n, Fukusosuu *x, int dum); |
|---|
| 169 | extern void topolcpy( int s1[], int s2[], int *mpt1, int *mpt2 ); |
|---|
| 170 | extern void topolcat( int s1[], int s2[], int *mpt1, int *mpt2 ); |
|---|
| 171 | extern void topolsort( int m, int s[] ); |
|---|
| 172 | extern void topolswap( int s1[], int s2[], int *mpt1, int *mpt2 ); |
|---|
| 173 | extern void reduc( double **mtx, int nseq, int im, int jm ); |
|---|
| 174 | extern void nj( int nseq, double **omtx, int ***topol, double **dis ); |
|---|
| 175 | extern void JTTmtx( double **rsr, double *freq, char locamino[26], char locgrp[26], int isTM ); |
|---|
| 176 | extern void BLOSUMmtx( int n, double **matrix, double *freq, char *amino, char *amino_grp ); |
|---|
| 177 | extern void putlocalhom2( char *al1, char *al2, LocalHom *localhompt, int off1, int off2, int opt, int overlapaa ); |
|---|
| 178 | extern void putlocalhom_str( char *al1, char *al2, double *equiv, double scale, LocalHom *localhompt, int off1, int off2, int opt, int overlapaa ); |
|---|
| 179 | extern void putlocalhom_ext( char *al1, char *al2, LocalHom *localhompt, int off1, int off2, int opt, int overlapaa ); |
|---|
| 180 | extern void putlocalhom3( char *al1, char *al2, LocalHom *localhompt, int off1, int off2, int opt, int overlapaa ); |
|---|
| 181 | extern void putlocalhom( char *al1, char *al2, LocalHom *localhompt, int off1, int off2, int opt, int overlapaa ); |
|---|
| 182 | extern char *cutal( char *al, int al_display_start, int start, int end ); |
|---|
| 183 | extern void ErrorExit( char *message ); |
|---|
| 184 | extern void strncpy_caseC( char *str1, char *str2, int len ); |
|---|
| 185 | extern void seqUpper( int nseq, char **seq ); |
|---|
| 186 | extern void seqLower( int nseq, char **seq ); |
|---|
| 187 | extern int getaline_fp_eof( char *s, int l, FILE *fp ); |
|---|
| 188 | extern int getaline_fp_eof_new(char s[], int l, FILE *fp); |
|---|
| 189 | extern int myfgets(char s[], int l, FILE *fp); |
|---|
| 190 | extern float input_new( FILE *fp, int d ); |
|---|
| 191 | extern void PreRead( FILE *fp, int *locnjob, int *locnlenmax ); |
|---|
| 192 | extern int allSpace( char *str ); |
|---|
| 193 | extern void Read( char name[M][B], int nlen[M], char **seq ); |
|---|
| 194 | extern void FRead( FILE *fp, char name[][B], int nlen[], char **seq ); |
|---|
| 195 | extern void kake2hiku( char *str ); |
|---|
| 196 | extern void readDataforgaln( FILE *fp, char **name, int *nlen, char **seq ); |
|---|
| 197 | extern void readData( FILE *fp, char name[][B], int nlen[], char **seq ); |
|---|
| 198 | extern void readData_pointer_casepreserve( FILE *fp, char **name, int *nlen, char **seq ); |
|---|
| 199 | extern void readData_pointer( FILE *fp, char **name, int *nlen, char **seq ); |
|---|
| 200 | extern void readData_pointer2( FILE *fp, int nseq, char **name, int *nlen, char **seq ); |
|---|
| 201 | extern void readData_varlen( FILE *fp, char **name, int *nlen, char **seq ); |
|---|
| 202 | extern int countATGC( char *s, int *total ); |
|---|
| 203 | extern void getnumlen( FILE *fp ); |
|---|
| 204 | extern void getnumlen_casepreserve( FILE *fp, int *nlenmin ); |
|---|
| 205 | extern void getnumlen_nogap( FILE *fp, int *nlenmin ); |
|---|
| 206 | extern void WriteGapFill( FILE *fp, int locnjob, char name[][B], int nlen[M], char **aseq ); |
|---|
| 207 | extern void writeDataforgaln( FILE *fp, int locnjob, char **name, int *nlen, char **aseq ); |
|---|
| 208 | extern void writeData( FILE *fp, int locnjob, char name[][B], int nlen[], char **aseq ); |
|---|
| 209 | extern void writeData_pointer( FILE *fp, int locnjob, char **name, int *nlen, char **aseq ); |
|---|
| 210 | extern void readhat2_floathalf( FILE *fp, int nseq, char name[M][B], float **mtx ); |
|---|
| 211 | extern void readhat2_floathalf_pointer( FILE *fp, int nseq, char **name, float **mtx ); |
|---|
| 212 | extern void readhat2_floathalf_part_pointer( FILE *fp, int nseq, int nadd, char **name, float **mtx ); |
|---|
| 213 | extern void readhat2_float( FILE *fp, int nseq, char name[M][B], float **mtx ); |
|---|
| 214 | extern void readhat2_int( FILE *fp, int nseq, char name[M][B], int **mtx ); |
|---|
| 215 | extern void readhat2_pointer( FILE *fp, int nseq, char **name, double **mtx ); |
|---|
| 216 | extern void readhat2( FILE *fp, int nseq, char name[M][B], double **mtx ); |
|---|
| 217 | extern void WriteFloatHat2_pointer_halfmtx( FILE *hat2p, int locnjob, char **name, float **mtx ); |
|---|
| 218 | extern void WriteFloatHat2( FILE *hat2p, int locnjob, char name[M][B], float **mtx ); |
|---|
| 219 | extern void WriteHat2_int( FILE *hat2p, int locnjob, char name[M][B], int **mtx ); |
|---|
| 220 | extern void WriteHat2( FILE *hat2p, int locnjob, char name[M][B], double **mtx ); |
|---|
| 221 | extern void WriteHat2_pointer( FILE *hat2p, int locnjob, char **name, double **mtx ); |
|---|
| 222 | extern void WriteHat2_part_pointer( FILE *hat2p, int locnjob, int nadd, char **name, double **mtx ); |
|---|
| 223 | extern int ReadFasta_sub( FILE *fp, double *dis, int nseq, char name[M][B] ); |
|---|
| 224 | extern int ReadSsearch( FILE *fp, double *dis, int nseq, char name[M][B] ); |
|---|
| 225 | extern int ReadBlastm7( FILE *fp, double *dis, int qmem, char **name, LocalHom *localhomlist ); |
|---|
| 226 | extern int ReadBlastm7_scoreonly( FILE *fp, double *dis, int nin ); |
|---|
| 227 | extern int ReadBlastm7_avscore( FILE *fp, double *dis, int nin ); |
|---|
| 228 | extern int ReadFasta34noalign( FILE *fp, double *dis, int qmem, char **name, LocalHom *localhomlist ); |
|---|
| 229 | extern int ReadFasta34m10_nuc( FILE *fp, double *dis, int qmem, char **name, LocalHom *localhomlist ); |
|---|
| 230 | extern int ReadFasta34m10( FILE *fp, double *dis, int qmem, char **name, LocalHom *localhomlist ); |
|---|
| 231 | extern int ReadFasta34m10_scoreonly_nuc( FILE *fp, double *dis, int nin ); |
|---|
| 232 | extern int ReadFasta34m10_scoreonly( FILE *fp, double *dis, int nin ); |
|---|
| 233 | extern int ReadFasta34( FILE *fp, double *dis, int nseq, char name[M][B], LocalHom *localhomlist ); |
|---|
| 234 | extern int ReadFasta3( FILE *fp, double *dis, int nseq, char name[M][B] ); |
|---|
| 235 | extern int ReadFasta( FILE *fp, double *dis, int nseq, char name[M][B] ); |
|---|
| 236 | extern int ReadOpt( FILE *fp, int opt[M], int nseq, char name[M][B] ); |
|---|
| 237 | extern int ReadOpt2( FILE *fp, int opt[M], int nseq, char name[M][B] ); |
|---|
| 238 | extern int writePre( int nseq, char **name, int nlen[M], char **aseq, int force ); |
|---|
| 239 | extern void readOtherOptions( int *ppidptr, int *fftThresholdptr, int *fftWinSizeptr ); |
|---|
| 240 | extern void initSignalSM( void ); |
|---|
| 241 | extern void initFiles( void ); |
|---|
| 242 | extern void WriteForFasta( FILE *fp, int locnjob, char **name, int nlen[M], char **aseq ); |
|---|
| 243 | extern void readlocalhomtable( FILE*fp, int njob, LocalHom **localhomtable, char *kozoarivec ); |
|---|
| 244 | extern void readlocalhomtable2( FILE*fp, int njob, LocalHom **localhomtable, char *kozoarivec ); |
|---|
| 245 | extern void readlocalhomtable_part( FILE*fp, int njob, int nadd, LocalHom **localhomtable, char *kozoarivec ); |
|---|
| 246 | extern void readlocalhomtable_two( FILE*fp, int njob, int nadd, LocalHom **localhomtable, LocalHom **localhomtablex, char *kozoarivec ); |
|---|
| 247 | extern void readlocalhomtable_one( FILE*fp, int njob, int nadd, LocalHom **localhomtable, char *kozoarivec ); |
|---|
| 248 | extern void outlocalhom( LocalHom **localhom, int nseq ); |
|---|
| 249 | extern void outlocalhom_part( LocalHom **localhom, int norg, int nadd ); |
|---|
| 250 | extern void outlocalhompt( LocalHom ***localhom, int n1, int n2 ); |
|---|
| 251 | extern void FreeLocalHomTable( LocalHom **localhomtable, int n ) ; |
|---|
| 252 | extern void FreeLocalHomTable_part( LocalHom **localhomtable, int n, int m ) ; |
|---|
| 253 | extern void FreeLocalHomTable_two( LocalHom **localhomtable, int n, int m ) ; |
|---|
| 254 | extern void FreeLocalHomTable_one( LocalHom **localhomtable, int n, int m ) ; |
|---|
| 255 | extern void constants( int nseq, char **seq ); |
|---|
| 256 | extern void clustalout_pointer( FILE *fp, int nseq, int maxlen, char **seq, char **name, char *mark, char *comment, int *order, int namelen ); |
|---|
| 257 | extern void phylipout_pointer( FILE *fp, int nseq, int maxlen, char **seq, char **name, int *order, int namelen ); |
|---|
| 258 | extern void writeData_reorder( FILE *fp, int locnjob, char name[][B], int nlen[], char **aseq, int *order ); |
|---|
| 259 | extern void writeData_reorder_pointer( FILE *fp, int locnjob, char **name, int *nlen, char **aseq, int *order ); |
|---|
| 260 | |
|---|
| 261 | extern void resetlocalhom( int, LocalHom ** ); |
|---|
| 262 | extern int load1SeqWithoutName_new( FILE *fpp, char *cbuf ); |
|---|
| 263 | extern char *load1SeqWithoutName_realloc( FILE *fpp ); |
|---|
| 264 | extern char *load1SeqWithoutName_realloc_casepreserve( FILE *fpp ); |
|---|
| 265 | extern int disttbfast( char **in, int nlen[M], char name[M][B] ); |
|---|
| 266 | extern void searchKUorWA( FILE *fp ); |
|---|
| 267 | extern void gapireru( char *res, char *ori, char *gt ); |
|---|
| 268 | extern int seqlen( char *seq ); |
|---|
| 269 | extern void st_FinalGapCount( float *fgcp, int clus, char **seq, double *eff, int len ); |
|---|
| 270 | extern void st_OpeningGapCount( float *ogcp, int clus, char **seq, double *eff, int len ); |
|---|
| 271 | extern void st_OpeningGapCount( float *ogcp, int clus, char **seq, double *eff, int len ); |
|---|
| 272 | extern void st_FinalGapCount_zure( float *fgcp, int clus, char **seq, double *eff, int len ); |
|---|
| 273 | extern void getdiaminofreq_x( float *freq, int clus, char **seq, double *eff, int len ); |
|---|
| 274 | extern void new_FinalGapCount_zure( float *fgcp, int clus, char **seq, double *eff, int len, char *s, char *e ); |
|---|
| 275 | extern void new_FinalGapCount( float *fgcp, int clus, char **seq, double *eff, int len, char *g ); |
|---|
| 276 | extern void new_OpeningGapCount( float *ogcp, int clus, char **seq, double *eff, int len, char *g ); |
|---|
| 277 | extern void new_OpeningGapCount_zure( float *ogcp, int clus, char **seq, double *eff, int len, char *s, char *e ); |
|---|
| 278 | extern void getGapPattern( float *fgcp, int clus, char **seq, double *eff, int len, char *g ); |
|---|
| 279 | extern void getgapfreq( float *freq, int clus, char **seq, double *eff, int len ); |
|---|
| 280 | extern void getgapfreq_zure( float *freq, int clus, char **seq, double *eff, int len ); |
|---|
| 281 | //extern void getgapfreq_zure_part( float *freq, int clus, char **seq, double *eff, int len, char *s ); |
|---|
| 282 | extern void getgapfreq_zure_part( float *freq, int clus, char **seq, double *eff, int len, char *s ); |
|---|
| 283 | extern void getdiaminofreq_part( float *freq, int clus, char **seq, double *eff, int len, char *s, char *e ); |
|---|
| 284 | extern void getdigapfreq_part( float *freq, int clus, char **seq, double *eff, int len, char *s, char *e ); |
|---|
| 285 | extern void getdiaminofreq_st( float *freq, int clus, char **seq, double *eff, int len ); |
|---|
| 286 | extern void getdigapfreq_st( float *freq, int clus, char **seq, double *eff, int len ); |
|---|
| 287 | extern void st_getGapPattern( Gappat **gpat, int clus, char **seq, double *eff, int len ); |
|---|
| 288 | extern void getkyokaigap( char *g, char **s, int pos, int n ); |
|---|
| 289 | extern double *loadaamtx( void ); |
|---|
| 290 | extern float naivepairscore( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, int penal ); |
|---|
| 291 | extern float naivepairscore11( char *seq1, char *seq2, int penal ); |
|---|
| 292 | extern float naiveQpairscore( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, int penal ); |
|---|
| 293 | extern float naiveRpairscore( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, int penal ); |
|---|
| 294 | extern float naiveHpairscore( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, int penal ); |
|---|
| 295 | extern void foldrna( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, RNApair ***gr1, RNApair ***gr2, float **impmtx, int *gapmap1, int *gapmap2, RNApair *pair ); |
|---|
| 296 | extern void foldrna_gappick( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, RNApair ***gr1, RNApair ***gr2, float **impmtx, int *gapmap1, int *gapmap2, RNApair *pair ); |
|---|
| 297 | extern void imp_rna( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, RNApair ***gr1, RNApair ***gr2, int *gapmap1, int *gapmap2, RNApair *pair ); |
|---|
| 298 | extern void imp_rnaQ( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, RNApair ***gr1, RNApair ***gr2, int *gapmap1, int *gapmap2, RNApair *pair ); |
|---|
| 299 | extern void part_imp_rnaQ( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, RNApair ***gr1, RNApair ***gr2, int *gapmap1, int *gapmap2, RNApair *pair ); |
|---|
| 300 | extern void part_imp_rna( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, RNApair ***gr1, RNApair ***gr2, int *gapmap1, int *gapmap2, RNApair *pair ); |
|---|
| 301 | extern void imp_rnaQ_gappick( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, RNApair ***gr1, RNApair ***gr2, int *gapmap1, int *gapmap2, RNApair *pair ); |
|---|
| 302 | extern void foldalignedrna( int clus1, int clus2, char **mseq1, char **mseq2, double *effarr1, double *effarr2, RNApair *rnapairboth ); |
|---|
| 303 | void readmccaskill( FILE *fp, RNApair **pairprob, int length ); |
|---|
| 304 | void makegrouprna( RNApair ***group, RNApair ***all, int *memlist ); |
|---|
| 305 | void makegrouprnait( RNApair ***group, RNApair ***all, char *pair, int s ); |
|---|
| 306 | extern void fixed_musclesupg_float_realloc_nobk_halfmtx( int nseq, float **eff, int ***topol, float **len, Treedep *, int progressout ); |
|---|
| 307 | extern void loadtree( int nseq, int ***topol, float **len, char **name, int *nlen, Treedep * ); |
|---|
| 308 | //extern void loadtop( int nseq, float **eff, int ***topol, float **len ); |
|---|
| 309 | extern void fixed_musclesupg_float_realloc_nobk_halfmtx_treeout( int nseq, float **eff, int ***topol, float **len, char **name, int *nlen, Treedep * ); |
|---|
| 310 | extern void fixed_supg_float_realloc_nobk_halfmtx_treeout_constrained( int nseq, float **eff, int ***topol, float **len, char **name, int *nlen, Treedep *, int ncons, int **constraints ); |
|---|
| 311 | extern void fixed_musclesupg_double_treeout( int nseq, double **eff, int ***topol, double **len, char **name ); |
|---|
| 312 | extern void fixed_supg_double_treeout_constrained( int nseq, double **eff, int ***topol, double **len, char **name, int ncons, int **constraints ); |
|---|
| 313 | extern void imp_match_init_strict( float *imp, int clus1, int clus2, int lgth1, int lgth2, char **seq1, char **seq2, double *eff1, double *eff2, double *eff1kozo, double*eff2kozo, LocalHom ***localhom, int forscore ); |
|---|
| 314 | extern void miyataout_reorder_pointer( FILE *fp, int locnjob, int nlenmax, char **name, int *nlen, char **aseq, int *order ); |
|---|
| 315 | extern void veryfastsupg_double_outtree( int nseq, double **eff, int ***topol, double **len, char **name ); |
|---|
| 316 | extern void cpmx_ribosum( char **seq, char **seqr, char *dir, float **cpmx, double *eff, int lgth, int clus ); |
|---|
| 317 | extern void rnaalifoldcall( char **seq, int nseq, RNApair **pairprob ); |
|---|
| 318 | extern void readpairfoldalign( FILE *fp, char *seq1, char *seq2, char *aln1, char *aln2, int q1, int q2, int *of1, int *of2, int sumlen ); |
|---|
| 319 | extern void write1seq( FILE *fp, char *aseq ); |
|---|
| 320 | extern void assignstrweight( int nseq, double *strweight, Node *stopol, int ***topol, int step, int LorR, char *kozoari, double *seqweight ); |
|---|
| 321 | extern void cutData( FILE *, int **, char **, int * ); |
|---|
| 322 | extern void cutAlignment( FILE *, int **, char **, int *, char **, char ** ); |
|---|
| 323 | extern void catData( FILE * ); |
|---|
| 324 | extern void getnumlen_nogap_outallreg_web( FILE *fp, FILE *ofp, int *nlenminpt, int *isalignedpt ); |
|---|
| 325 | extern void getnumlen_nogap_outallreg( FILE *fp, int *nlenminpt ); |
|---|
| 326 | extern double plainscore( int nseq, char **seq ); |
|---|
| 327 | extern void eq2dash( char *s ); |
|---|
| 328 | extern void findnewgaps( int n, int rep, char **seq, int *gaplen ); |
|---|
| 329 | extern void findcommongaps( int, char **, int * ); |
|---|
| 330 | extern void adjustgapmap( int, int *, char * ); |
|---|
| 331 | extern void insertnewgaps( int njob, int *alreadyaligned, char **seq, int *ex1, int *ex2, int *gaplen, int *gapmap, int alloclen, char alg, char gapchar ); |
|---|
| 332 | extern void restorecommongaps( int n, char **seq, int *top0, int *top1, int *gaplen, int alloclen, char gapchar ); |
|---|
| 333 | extern int samemember( int *mem, int *cand ); |
|---|
| 334 | extern int includemember( int *mem, int *cand ); |
|---|
| 335 | extern int overlapmember( int *mem1, int *mem2 ); |
|---|
| 336 | extern void profilealignment( int n0, int n1, int n2, char **aln0, char **aln1, char **aln2, int alloclen, char alg ); |
|---|
| 337 | extern void profilealignment2( int n0, int n2, char **aln0, char **aln2, int alloclen, char alg ); |
|---|
| 338 | extern void sreverse( char *r, char *s ); |
|---|
| 339 | extern int addonetip( int njobc, int ***topolc, float **lenc, float **iscorec, int ***topol, float **len, Treedep *dep, int treeout, Addtree *addtree, int iadd, char **name ); |
|---|
| 340 | extern void intcpy( int *s1, int *s2 ); |
|---|
| 341 | extern void intcat( int *s1, int *s2 ); |
|---|
| 342 | extern void readsubalignmentstable( int n, int **table, int *preservegaps, int *nsubpt, int *maxmempt ); |
|---|