Mercurial > repos > nick > duplex
comparison mafft/core/functions.h @ 18:e4d75f9efb90 draft
planemo upload commit b'4303231da9e48b2719b4429a29b72421d24310f4\n'-dirty
| author | nick |
|---|---|
| date | Thu, 02 Feb 2017 18:44:31 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 17:836fa4fe9494 | 18:e4d75f9efb90 |
|---|---|
| 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_dynmtx( double **pairoffset, int mtx[0x80][0x80], char **seq1, char **seq2, double *eff1, double *eff2, int clus1, int clus2, int len, double *value ); | |
| 8 extern void intergroup_score_multimtx( int **whichmtx, double ***matrices, char **seq1, char **seq2, double *eff1, double *eff2, int clus1, int clus2, int len, double *value ); | |
| 9 extern void intergroup_score_gapnomi( char **seq1, char **seq2, double *eff1, double *eff2, int clus1, int clus2, int len, double *value ); | |
| 10 extern void intergroup_score_new( char **seq1, char **seq2, double *eff1, double *eff2, int clus1, int clus2, int len, double *value ); | |
| 11 extern double score_calc5( char **seq, int s, double **eff, int ex ); | |
| 12 extern double score_calc4( char **seq, int s, double **eff, int ex ); | |
| 13 extern void upg2( int nseq, double **eff, int ***topol, double **len ); | |
| 14 //extern void veryfastsupg_float_realloc_nobk_halfmtx( int njob, float **mtx, int ***topol, float **len ); | |
| 15 //extern void veryfastsupg_float_realloc_nobk( int njob, float **mtx, int ***topol, float **len ); | |
| 16 extern void veryfastsupg_int_realloc_nobk( int njob, int **mtx, int ***topol, double **len ); | |
| 17 extern void veryfastsupg( int nseq, double **oeff, int ***topol, double **len ); | |
| 18 extern void veryfastsupg_double( int nseq, double **oeff, int ***topol, double **len ); | |
| 19 extern void veryfastsupg_double_loadtree( int nseq, double **oeff, int ***topol, double **len, char **name ); | |
| 20 //extern void veryfastsupg_double_loadtop( int nseq, double **oeff, int ***topol, double **len ); | |
| 21 extern void veryfastsupg_int( int nseq, int **oeff, int ***topol, double **len ); | |
| 22 extern void fastsupg( int nseq, double **oeff, int ***topol, double **len ); | |
| 23 extern void supg( int nseq, double **oeff, int ***topol, double **len ); | |
| 24 extern void spg( int nseq, double **oeff, int ***topol, double **len ); | |
| 25 extern double ipower( double x, int n ); | |
| 26 extern void countnode( int nseq, int ***topol, double **node ); | |
| 27 extern void countnode_int( int nseq, int ***topol, int **node ); | |
| 28 extern void counteff_simple( int nseq, int ***topol, double **len, double *node ); | |
| 29 extern void counteff_simple_float( int nseq, int ***topol, float **len, double *node ); | |
| 30 extern void counteff_simple_float_nostatic( int nseq, int ***topol, float **len, double *node ); | |
| 31 extern void counteff( int nseq, int ***topol, double **len, double **node ); | |
| 32 extern float score_calc1( char *seq1, char *seq2 ); | |
| 33 extern float score_calcp( char *seq1, char *seq2, int len ); | |
| 34 extern float substitution_nid( char *seq1, char *seq2 ); | |
| 35 extern float substitution_score( char *seq1, char *seq2 ); | |
| 36 extern float substitution_hosei( char *seq1, char *seq2 ); | |
| 37 extern float substitution( char *seq1, char *seq2 ); | |
| 38 extern void treeconstruction( char **seq, int nseq, int ***topol, double **len, double **eff ); | |
| 39 extern float bscore_calc( char **seq, int s, double **eff ); | |
| 40 extern void AllocateTmpSeqs( char ***mseq2pt, char **mseq1pt, int locnlenmax ); | |
| 41 extern void FreeTmpSeqs( char **mseq2, char *mseq1 ); | |
| 42 extern void gappick_samestring( char *aseq ); | |
| 43 extern void gappick0( char *aseq, char *seq ); | |
| 44 extern void gappick( int nseq, int s, char **aseq, char **mseq2, | |
| 45 double **eff, double *effarr ); | |
| 46 extern void commongappick_record( int nseq, char **seq, int *map ); | |
| 47 extern void commongappick( int nseq, char **seq ); | |
| 48 extern double score_calc0( char **seq, int s, double **eff, int ex ); | |
| 49 extern void strins( char *str1, char *str2 ); | |
| 50 extern int isaligned( int nseq, char **seq ); | |
| 51 extern double score_calc_for_score( int nseq, char **seq ); | |
| 52 extern void floatncpy( float *vec1, float *vec2, int len ); | |
| 53 extern float score_calc_a( char **seq, int s, double **eff ); | |
| 54 extern float score_calc_s( char **seq, int s, double **eff ); | |
| 55 extern double score_calc_for_score_s( int s, char **seq ); | |
| 56 extern double SSPscore( int s, char **seq ); | |
| 57 extern double DSPscore( int s, char **seq ); | |
| 58 extern int searchAnchors( int nseq, char **seq, Segment *seg ); | |
| 59 extern char *progName( char *str ); | |
| 60 extern void dontcalcimportance( int nseq, double *eff, char **seq, LocalHom **localhom ); | |
| 61 extern void dontcalcimportance_lastone( int nseq, double *eff, char **seq, LocalHom **localhom ); | |
| 62 extern void dontcalcimportance_firstone( int nseq, double *eff, char **seq, LocalHom **localhom ); | |
| 63 extern void calcimportance( int nseq, double *eff, char **seq, LocalHom **localhom ); | |
| 64 extern void weightimportance2( int nseq, double *eff, LocalHom **localhom ); | |
| 65 extern void weightimportance4( int clus1, int clus2, double *eff1, double *eff2, LocalHom ***localhom ); | |
| 66 extern void extendlocalhom( int nseq, LocalHom **localhom ); | |
| 67 extern void extendlocalhom2( int nseq, LocalHom **localhom, double **mtx ); | |
| 68 extern int makelocal( char *s1, char *s2, int thr ); | |
| 69 extern void mdfymtx( char **pair, int s1, double **partialmtx, double **mtx ); | |
| 70 extern float score_calc( char **seq, int s ); | |
| 71 extern void cpmx_calc( char **seq, float **cpmx, double *eff, int lgth, int clus ); | |
| 72 extern void cpmx_calc_new( char **seq, float **cpmx, double *eff, int lgth, int clus ); | |
| 73 extern void MScpmx_calc_new( char **seq, float **cpmx, double *eff, int lgth, int clus ); | |
| 74 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 ); | |
| 75 extern void strnbcat( char *s1, char *s2, int m ); | |
| 76 extern int conjuctionforgaln( int s0, int s1, char **seq, char **aseq, double *peff, double *eff, char **name, char **aname, char *d ); | |
| 77 extern int fastconjuction( int *memlist, char **seq, char **aseq, double *peff, double *eff, char name[M][B], char aname[M][B], char *d ); | |
| 78 extern int fastconjuction_noname_kozo( int *memlist, char **seq, char **aseq, double *peff, double *eff, double *peff_kozo, double *eff_kozo, char *d ); | |
| 79 extern int fastconjuction_noname( int *memlist, char **seq, char **aseq, double *peff, double *eff, char *d, double mineff ); | |
| 80 extern int fastconjuction_noweight( int *memlist, char **seq, char **aseq, double *peff, char *d ); | |
| 81 extern int conjuctionfortbfast_old( char **pair, int s, char **seq, char **aseq, double *peff, double *eff, char *d ); | |
| 82 extern int conjuction( char **pair, int s, char **seq, char **aseq, double *peff, double *eff, char **name, char **aname, char *d ); | |
| 83 extern void floatdelete( float **cpmx, int d, int len ); | |
| 84 extern void chardelete( char *seq, int d ); | |
| 85 extern int RootBranchNode( int nseq, int ***topol, int step, int branch ); | |
| 86 extern void BranchLeafNode( int nseq, int ***topol, int *node, int step, int branch ); | |
| 87 extern void RootLeafNode( int nseq, int ***topol, int *node ); | |
| 88 extern void nodeFromABranch( int nseq, int *result, int **pairwisenode, int ***topol, double **len, int step, int num ); | |
| 89 //extern void OneClusterAndTheOther( int locnjob, char **pair, int *s1, int *s2, int ***topol, int step, int branch ); | |
| 90 extern void OneClusterAndTheOther_fast( int locnjob, int *memlist1, int *memlist2, int *s1, int *s2, char *pairbuf, int ***topol, int step, int branch, double **, double ** ); | |
| 91 extern void makeEffMtx( int nseq, double **mtx, double *vec ); | |
| 92 extern void node_eff( int nseq, double *eff, int *node ); | |
| 93 extern int shrinklocalhom( char **pair, int s1, int s2, LocalHom **localhom, LocalHom ***localhomshrink ); | |
| 94 extern int msshrinklocalhom_fast( int *memlist1, int *memlist2, LocalHom **localhom, LocalHom ***localhomshrink ); | |
| 95 extern int fastshrinklocalhom( int *mem1, int *mem2, LocalHom **localhom, LocalHom ***localhomshrink ); | |
| 96 extern int fastshrinklocalhom_one( int *mem1, int *mem2, int norg, LocalHom **localhom, LocalHom ***localhomshrink ); | |
| 97 extern int msfastshrinklocalhom( int *mem1, int *mem2, LocalHom **localhom, LocalHom ***localhomshrink ); | |
| 98 extern int TreeDependentIteration( int locnjob, char **name, int nlen[M], char **aseq, char **bseq, int ***topol, double **len, double **eff, int **skipthisbranch, int alloclen, LocalHom **localhomtable, RNApair ***single, int nkozo, char *kozoarivec ); | |
| 99 extern void checkMinusLength( int nseq, double **len ); | |
| 100 extern void negativeMember2( int *mem, int *query, int locnseq ); | |
| 101 extern int *negativeMember( int *query, int locnseq ); | |
| 102 extern int IntExistsInVec( int query, int *vector ); | |
| 103 extern NodeInCub searchParent( int top, int ***topol, int Start, int End ); | |
| 104 extern void stopolInit( int n, Node *stopol ); | |
| 105 extern void treeCnv( Node *stopol, int locnseq, int ***topol, double **len, double **bw ); | |
| 106 extern int isLeaf( Node node ); | |
| 107 extern double syntheticLength( Node *ob, Node *oppositeNode ); | |
| 108 extern double calcW( Node *ob, Node *op ); | |
| 109 extern void calcBranchWeight( double **bw, int locnseq, Node *stopol, int ***topol, double **len ); | |
| 110 extern void branchWeightToPairWeight( int locnseq, int ***topol, double **pw, double **bw ); | |
| 111 extern void weightFromABranch_rec( double *result, Node *ob, Node *op ); | |
| 112 extern void weightFromABranch( int nseq, double *result, Node *stopol, int ***topol, int step, int LorR ); | |
| 113 extern void keika( char *str, int current, int all ); | |
| 114 extern double maxItch( double *soukan, int size ); | |
| 115 extern void calcNaiseki( Fukusosuu *value, Fukusosuu *x, Fukusosuu *y ); | |
| 116 extern Fukusosuu *AllocateFukusosuuVec( int l1 ); | |
| 117 extern Fukusosuu **AllocateFukusosuuMtx( int l1, int l2 ); | |
| 118 extern Fukusosuu ***AllocateFukusosuuCub( int l1, int l2, int l3 ); | |
| 119 extern void FreeFukusosuuVec( Fukusosuu *vec ); | |
| 120 extern void FreeFukusosuuMtx( Fukusosuu **mtx ); | |
| 121 extern int getKouho( int *kouho, int nkouho, double *soukan, int nlen2 ); | |
| 122 extern void zurasu2( int lag, int clus1, int clus2, char **seq1, char **seq2, char **aseq1, char **aseq2 ); | |
| 123 extern void zurasu( int lag, int clus1, int clus2, char **seq1, char **seq2, char **aseq1, char **aseq2 ); | |
| 124 extern int alignableReagion( int clus1, int clus2, char **seq1, char **seq2, double *eff1, double *eff2, Segment *seg ); | |
| 125 extern void blockAlign( int *cut1, int *cut2, double **ocrossscore, int *ncut ); | |
| 126 extern void blockAlign2( int *cut1, int *cut2, Segment **seg1, Segment **seg2, double **ocrossscore, int *ncut ); | |
| 127 extern void blockAlign3( int *cut1, int *cut2, Segment **seg1, Segment **seg2, double **ocrossscore, int *ncut ); | |
| 128 extern float A__align11( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, LocalHom ***localhom, float *impmatch ); | |
| 129 extern float imp_match_out_scH( int i1, int j1 ); | |
| 130 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 ); | |
| 131 extern float imp_match_out_scQ( int i1, int j1 ); | |
| 132 extern float imp_match_out_scR( int i1, int j1 ); | |
| 133 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 ); | |
| 134 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 ); | |
| 135 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 ); | |
| 136 extern float MSalignmm( double **n_dynamicmtx, 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 ); | |
| 137 extern float MSalignmm_variousdist( double **pairoffset, double ***matrices, double **dummtx, char **seq1, char **seq2, double *eff1, double *eff2, double **eff1s, double **eff2s, int icyc, int jcyc, int alloclen, char *, char *, char *, char *, int *, int, int *, int headgp, int tailgp ); | |
| 138 extern float Lalignmm_hmout( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, char *, char *, char *, char *, float **map ); | |
| 139 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 ); | |
| 140 extern float MSalign11( char **seq1, char **seq2, int alloclen ); | |
| 141 //extern float rnalocal( char **seq1, char **seq2, double *eff1, double *eff2, int icyc, int jcyc, int alloclen, RNApair **pair ); | |
| 142 extern float A__align( double **scoringmtx, 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 ); | |
| 143 extern float A__align_variousdist( double **distmtx, double ***scoringmatrices, double **dummtx, char **seq1, char **seq2, double *eff1, double *eff2, double **eff1s, double **eff2s, 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 ); | |
| 144 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 ); | |
| 145 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 ); | |
| 146 extern float translate_and_Calign( char **mseq1, char **mseq2, double *effarr1, double *effarr2, int clus1, int clus2, int alloclen ); | |
| 147 extern double Fgetlag( double **scoringmtx, char **seq1, char **seq2, double *eff1, double *eff2, int clus1, int clus2, int alloclen ); | |
| 148 extern float Falign( double **smalldistmtx, double ***scoringmatrices, double **scoreingmtx, char **seq1, char **seq2, double *eff1, double *eff2, double **eff1s, double **eff2s, int clus1, int clus2, int alloclen, int *fftlog, int *, int, int * ); | |
| 149 extern float Falign_udpari_long( double **smalldistmtx, double ***scoringmatrices, double **scoringmtx, char **seq1, char **seq2, double *eff1, double *eff2, double **eff1s, double **eff2s, int clus1, int clus2, int alloclen, int *fftlog ); | |
| 150 float Falign_localhom( double **smalldistmtx, double ***scoringmatrices, double **scoreingmtx, char **seq1, char **seq2, double *eff1, double *eff2, double **eff1s, double **eff2s, int clus1, int clus2, int alloclen, LocalHom ***localhom, float *totalimpmatch, int *gapmap1, int *gapmap2, int *chudanpt, int chudanref, int *chudanres ); | |
| 151 extern float part_imp_match_out_sc( int i1, int j1 ); | |
| 152 extern float part_imp_match_out_scQ( int i1, int j1 ); | |
| 153 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 ); | |
| 154 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 ); | |
| 155 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 ); | |
| 156 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 * ); | |
| 157 extern float partA__align_variousdist( double **distmtx, double ***scoringmatrices, double **dummtx, char **seq1, char **seq2, double *eff1, double *eff2, double **eff1s, double **eff2s, 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 G__align11( double **scoringmtx, char **seq1, char **seq2, int alloclen, int headgp, int tailgp ); | |
| 159 extern float G__align11_noalign( double **scoringmtx, int penal, int penal_ex, char **seq1, char **seq2, int alloclen ); | |
| 160 extern float L__align11( double **scoringmtx, float scoreoffset, char **seq1, char **seq2, int alloclen, int *off1pt, int *off2pt ); | |
| 161 extern float L__align11_noalign( double **scoringmtx, char **seq1, char **seq2 ); | |
| 162 extern float genL__align11( double **scoringmtx, char **seq1, char **seq2, int alloclen, int *off1pt, int *off2pt ); | |
| 163 extern float genG__align11( char **seq1, char **seq2, int alloclen ); | |
| 164 extern float VAalign11( char **seq1, char **seq2, int alloclen, int *off1pt, int *off2pt, LocalHom *lhmpt ); | |
| 165 extern float suboptalign11( char **seq1, char **seq2, int alloclen, int *off1pt, int *off2pt, LocalHom *lhmpt ) | |
| 166 ; | |
| 167 extern int fft(int n, Fukusosuu *x, int dum); | |
| 168 extern void topolcpy( int s1[], int s2[], int *mpt1, int *mpt2 ); | |
| 169 extern void topolcat( int s1[], int s2[], int *mpt1, int *mpt2 ); | |
| 170 extern void topolsort( int m, int s[] ); | |
| 171 extern void topolswap( int s1[], int s2[], int *mpt1, int *mpt2 ); | |
| 172 extern void reduc( double **mtx, int nseq, int im, int jm ); | |
| 173 extern void nj( int nseq, double **omtx, int ***topol, double **dis ); | |
| 174 extern void JTTmtx( double **rsr, double *freq, char locamino[0x80], char locgrp[0x80], int isTM ); | |
| 175 extern void BLOSUMmtx( int n, double **matrix, double *freq, char *amino, char *amino_grp ); | |
| 176 extern void extendedmtx( 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 int copydatafromgui( char **namegui, char **seqgui, char **name, int *nlen, char **seq ); | |
| 197 extern void readDataforgaln( FILE *fp, char **name, int *nlen, char **seq ); | |
| 198 extern void readData( FILE *fp, char name[][B], int nlen[], char **seq ); | |
| 199 extern void readData_pointer_casepreserve( FILE *fp, char **name, int *nlen, char **seq ); | |
| 200 extern void readData_pointer( FILE *fp, char **name, int *nlen, char **seq ); | |
| 201 extern void readData_pointer2( FILE *fp, int nseq, char **name, int *nlen, char **seq ); | |
| 202 extern void readData_varlen( FILE *fp, char **name, int *nlen, char **seq ); | |
| 203 extern int countATGC( char *s, int *total ); | |
| 204 extern void getnumlen( FILE *fp ); | |
| 205 extern void getnumlen_casepreserve( FILE *fp, int *nlenmin ); | |
| 206 extern void getnumlen_nogap( FILE *fp, int *nlenmin ); | |
| 207 extern void WriteGapFill( FILE *fp, int locnjob, char name[][B], int nlen[M], char **aseq ); | |
| 208 extern void writeDataforgaln( FILE *fp, int locnjob, char **name, int *nlen, char **aseq ); | |
| 209 extern void writeData( FILE *fp, int locnjob, char name[][B], int nlen[], char **aseq ); | |
| 210 extern void writeData_pointer( FILE *fp, int locnjob, char **name, int *nlen, char **aseq ); | |
| 211 extern void readhat2_floathalf( FILE *fp, int nseq, char name[M][B], float **mtx ); | |
| 212 extern void readhat2_floathalf_pointer( FILE *fp, int nseq, char **name, float **mtx ); | |
| 213 extern void readhat2_floathalf_part_pointer( FILE *fp, int nseq, int nadd, char **name, float **mtx ); | |
| 214 extern void readhat2_float( FILE *fp, int nseq, char name[M][B], float **mtx ); | |
| 215 extern void readhat2_int( FILE *fp, int nseq, char name[M][B], int **mtx ); | |
| 216 extern void readhat2_pointer( FILE *fp, int nseq, char **name, double **mtx ); | |
| 217 extern void readhat2( FILE *fp, int nseq, char name[M][B], double **mtx ); | |
| 218 extern void WriteFloatHat2_pointer_halfmtx( FILE *hat2p, int locnjob, char **name, float **mtx ); | |
| 219 extern void WriteFloatHat2( FILE *hat2p, int locnjob, char name[M][B], float **mtx ); | |
| 220 extern void WriteHat2_int( FILE *hat2p, int locnjob, char name[M][B], int **mtx ); | |
| 221 extern void WriteHat2( FILE *hat2p, int locnjob, char name[M][B], double **mtx ); | |
| 222 extern void WriteHat2_pointer( FILE *hat2p, int locnjob, char **name, double **mtx ); | |
| 223 extern void WriteHat2_part_pointer( FILE *hat2p, int locnjob, int nadd, char **name, double **mtx ); | |
| 224 extern int ReadFasta_sub( FILE *fp, double *dis, int nseq, char name[M][B] ); | |
| 225 extern int ReadSsearch( FILE *fp, double *dis, int nseq, char name[M][B] ); | |
| 226 extern int ReadBlastm7( FILE *fp, double *dis, int qmem, char **name, LocalHom *localhomlist ); | |
| 227 extern int ReadBlastm7_scoreonly( FILE *fp, double *dis, int nin ); | |
| 228 extern int ReadBlastm7_avscore( FILE *fp, double *dis, int nin ); | |
| 229 extern int ReadFasta34noalign( FILE *fp, double *dis, int qmem, char **name, LocalHom *localhomlist ); | |
| 230 extern int ReadFasta34m10_nuc( FILE *fp, double *dis, int qmem, char **name, LocalHom *localhomlist ); | |
| 231 extern int ReadFasta34m10( FILE *fp, double *dis, int qmem, char **name, LocalHom *localhomlist ); | |
| 232 extern int ReadFasta34m10_scoreonly_nuc( FILE *fp, double *dis, int nin ); | |
| 233 extern int ReadFasta34m10_scoreonly( FILE *fp, double *dis, int nin ); | |
| 234 extern int ReadFasta34( FILE *fp, double *dis, int nseq, char name[M][B], LocalHom *localhomlist ); | |
| 235 extern int ReadFasta3( FILE *fp, double *dis, int nseq, char name[M][B] ); | |
| 236 extern int ReadFasta( FILE *fp, double *dis, int nseq, char name[M][B] ); | |
| 237 extern int ReadOpt( FILE *fp, int opt[M], int nseq, char name[M][B] ); | |
| 238 extern int ReadOpt2( FILE *fp, int opt[M], int nseq, char name[M][B] ); | |
| 239 extern int writePre( int nseq, char **name, int nlen[M], char **aseq, int force ); | |
| 240 extern void readOtherOptions( int *ppidptr, int *fftThresholdptr, int *fftWinSizeptr ); | |
| 241 extern void initSignalSM( void ); | |
| 242 extern void initFiles( void ); | |
| 243 extern void WriteForFasta( FILE *fp, int locnjob, char **name, int nlen[M], char **aseq ); | |
| 244 extern void readlocalhomtable( FILE*fp, int njob, LocalHom **localhomtable, char *kozoarivec ); | |
| 245 extern void readlocalhomtable2( FILE*fp, int njob, LocalHom **localhomtable, char *kozoarivec ); | |
| 246 extern void readlocalhomtable_part( FILE*fp, int njob, int nadd, LocalHom **localhomtable, char *kozoarivec ); | |
| 247 extern void readlocalhomtable_two( FILE*fp, int njob, int nadd, LocalHom **localhomtable, LocalHom **localhomtablex, char *kozoarivec ); | |
| 248 extern void readlocalhomtable_one( FILE*fp, int njob, int nadd, LocalHom **localhomtable, char *kozoarivec ); | |
| 249 extern void outlocalhom( LocalHom **localhom, int nseq ); | |
| 250 extern void outlocalhom_part( LocalHom **localhom, int norg, int nadd ); | |
| 251 extern void outlocalhompt( LocalHom ***localhom, int n1, int n2 ); | |
| 252 extern void FreeLocalHomTable( LocalHom **localhomtable, int n ) ; | |
| 253 extern void FreeLocalHomTable_part( LocalHom **localhomtable, int n, int m ) ; | |
| 254 extern void FreeLocalHomTable_two( LocalHom **localhomtable, int n, int m ) ; | |
| 255 extern void FreeLocalHomTable_one( LocalHom **localhomtable, int n, int m ) ; | |
| 256 extern void constants( int nseq, char **seq ); | |
| 257 extern void clustalout_pointer( FILE *fp, int nseq, int maxlen, char **seq, char **name, char *mark, char *comment, int *order, int namelen ); | |
| 258 extern void phylipout_pointer( FILE *fp, int nseq, int maxlen, char **seq, char **name, int *order, int namelen ); | |
| 259 extern void writeData_reorder( FILE *fp, int locnjob, char name[][B], int nlen[], char **aseq, int *order ); | |
| 260 extern void writeData_reorder_pointer( FILE *fp, int locnjob, char **name, int *nlen, char **aseq, int *order ); | |
| 261 | |
| 262 extern void resetlocalhom( int, LocalHom ** ); | |
| 263 extern int load1SeqWithoutName_new( FILE *fpp, char *cbuf ); | |
| 264 extern char *load1SeqWithoutName_realloc( FILE *fpp ); | |
| 265 extern char *load1SeqWithoutName_realloc_casepreserve( FILE *fpp ); | |
| 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 naivepairscorefast( char *seq1, char *seq2, int *skip1, int *skip2, int penal ); | |
| 293 extern float naiveQpairscore( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, int penal ); | |
| 294 extern float naiveRpairscore( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, int penal ); | |
| 295 extern float naiveHpairscore( int nseq1, int nseq2, char **seq1, char **seq2, double *eff1, double *eff2, int penal ); | |
| 296 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 ); | |
| 297 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 ); | |
| 298 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 ); | |
| 299 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 ); | |
| 300 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 ); | |
| 301 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 ); | |
| 302 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 ); | |
| 303 extern void foldalignedrna( int clus1, int clus2, char **mseq1, char **mseq2, double *effarr1, double *effarr2, RNApair *rnapairboth ); | |
| 304 void readmccaskill( FILE *fp, RNApair **pairprob, int length ); | |
| 305 void makegrouprna( RNApair ***group, RNApair ***all, int *memlist ); | |
| 306 void makegrouprnait( RNApair ***group, RNApair ***all, char *pair, int s ); | |
| 307 extern void fixed_musclesupg_float_realloc_nobk_halfmtx( int nseq, float **eff, int ***topol, float **len, Treedep *, int progressout, int efffree ); | |
| 308 extern void loadtop( int nseq, float **mtx, int ***topol, float **len, char **name, int *nlen, Treedep * ); | |
| 309 extern void loadtree( int nseq, int ***topol, float **len, char **name, int *nlen, Treedep * ); | |
| 310 //extern void loadtop( int nseq, float **eff, int ***topol, float **len ); | |
| 311 extern void fixed_musclesupg_float_realloc_nobk_halfmtx_treeout( int nseq, float **eff, int ***topol, float **len, char **name, int *nlen, Treedep *, int efffree ); | |
| 312 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, int efffree ); | |
| 313 extern void fixed_musclesupg_double_treeout( int nseq, double **eff, int ***topol, double **len, char **name ); | |
| 314 extern void fixed_supg_double_treeout_constrained( int nseq, double **eff, int ***topol, double **len, char **name, int ncons, int **constraints ); | |
| 315 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 ); | |
| 316 extern void miyataout_reorder_pointer( FILE *fp, int locnjob, int nlenmax, char **name, int *nlen, char **aseq, int *order ); | |
| 317 extern void veryfastsupg_double_outtree( int nseq, double **eff, int ***topol, double **len, char **name ); | |
| 318 extern void cpmx_ribosum( char **seq, char **seqr, char *dir, float **cpmx, double *eff, int lgth, int clus ); | |
| 319 extern void rnaalifoldcall( char **seq, int nseq, RNApair **pairprob ); | |
| 320 extern void readpairfoldalign( FILE *fp, char *seq1, char *seq2, char *aln1, char *aln2, int q1, int q2, int *of1, int *of2, int sumlen ); | |
| 321 extern void write1seq( FILE *fp, char *aseq ); | |
| 322 extern void assignstrweight( int nseq, double *strweight, Node *stopol, int ***topol, int step, int LorR, char *kozoari, double *seqweight ); | |
| 323 extern void cutData( FILE *, int **, char **, int * ); | |
| 324 extern void cutAlignment( FILE *, int **, char **, int *, char **, char ** ); | |
| 325 extern void catData( FILE * ); | |
| 326 extern void getnumlen_nogap_outallreg_web( FILE *fp, FILE *ofp, int *nlenminpt, int *isalignedpt ); | |
| 327 extern void getnumlen_nogap_outallreg( FILE *fp, int *nlenminpt ); | |
| 328 extern double plainscore( int nseq, char **seq ); | |
| 329 extern void eq2dash( char *s ); | |
| 330 extern void eq2dashmatometehayaku( char **s, int n ); | |
| 331 extern void findnewgaps( int n, int rep, char **seq, int *gaplen ); | |
| 332 extern void findcommongaps( int, char **, int * ); | |
| 333 extern void adjustgapmap( int, int *, char * ); | |
| 334 extern void insertnewgaps( int njob, int *alreadyaligned, char **seq, int *ex1, int *ex2, int *gaplen, int *gapmap, int alloclen, char alg, char gapchar ); | |
| 335 extern void restorecommongaps( int n, char **seq, int *top0, int *top1, int *gaplen, int alloclen, char gapchar ); | |
| 336 extern int samemember( int *mem, int *cand ); | |
| 337 extern int samemembern( int *mem, int *cand, int candn ); | |
| 338 extern int includemember( int *mem, int *cand ); | |
| 339 extern int overlapmember( int *mem1, int *mem2 ); | |
| 340 extern void profilealignment( int n0, int n1, int n2, char **aln0, char **aln1, char **aln2, int alloclen, char alg ); | |
| 341 extern void profilealignment2( int n0, int n2, char **aln0, char **aln2, int alloclen, char alg ); | |
| 342 extern void sreverse( char *r, char *s ); | |
| 343 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, int *alnleninnode, int *nogaplen, int noalign ); | |
| 344 extern void intcpy( int *s1, int *s2 ); | |
| 345 extern void intncpy( int *s1, int *s2, int n ); | |
| 346 extern void fltncpy( float *s1, float *s2, int n ); | |
| 347 extern void intcat( int *s1, int *s2 ); | |
| 348 extern void readsubalignmentstable( int n, int **table, int *preservegaps, int *nsubpt, int *maxmempt ); | |
| 349 extern int myatoi( char * ); | |
| 350 extern float myatof( char * ); | |
| 351 extern void gapcount( double *freq, char **seq, int nseq, double *eff, int lgth ); | |
| 352 extern void gapcountf( float *freq, char **seq, int nseq, double *eff, int lgth ); | |
| 353 extern void outgapcount( float *freq, int nseq, char *gappat, double *eff ); | |
| 354 extern void makedynamicmtx( double **out, double **in, float offset ); | |
| 355 extern float dist2offset( float dist ); | |
| 356 extern void reporterr( const char *str, ... ); | |
| 357 extern void freeconstants(); | |
| 358 extern void closeFiles(); | |
| 359 extern void FreeCommonIP(); | |
| 360 extern void initglobalvariables(); | |
| 361 extern void makeskiptable( int n, int **skip, char **seq ); | |
| 362 extern int generatesubalignmentstable( int nseq, int ***tablept, int *nsubpt, int *maxmempt, int ***topol, double **len, double threshold ); | |
| 363 extern float sumofpairsscore( int nseq, char **seq ); |
