X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=sources%2Fmulticoil%2Fscio.h;fp=sources%2Fmulticoil%2Fscio.h;h=6f210cc3797e42465d9a5644691cb4a94f26b265;hb=81362e35a140cd040e948b921053e74267f8a6e3;hp=0000000000000000000000000000000000000000;hpb=2cf032f4b987ba747c04159965aed78e3820d942;p=jpred.git diff --git a/sources/multicoil/scio.h b/sources/multicoil/scio.h new file mode 100644 index 0000000..6f210cc --- /dev/null +++ b/sources/multicoil/scio.h @@ -0,0 +1,62 @@ +/* Bonnie Berger, David Wilson and Theodore Tonchev 1992 */ +/* C Header File */ +/* If __scio_h__ is NOT yet defined, scio.h defines the function */ +/* names in scio.c. These functions are for reading/writing data, */ +/* inputting sequences, and converting between residue names and */ +/* numbers, and between position letters and numbers. */ + + +#ifndef __scio_h__ +#define __scio_h__ 1 + +#include "scconst.h" + +/* Function Prototypes */ +FILE *sopen(char*, char*); +void sclose(FILE *); + +void open_file(FILE **, char*, char*); + +void writegenfreq(FILE* fl, + long totals[], long freqs[AANUM], + long totalp[POSNUM], long freqp[AANUM][AANUM][POSNUM], + FILE* flog); + +void readgenfreq(FILE* fl, + long totals[], long freqs[AANUM], + long totalp[POSNUM], long freqp[AANUM*AANUM*POSNUM], + FILE* flog); + +void writeposfreq(FILE* fl, + long totals[POSNUM], long freqs[AANUM][POSNUM], + long totalp[POSNUM][POSNUM], + long freqp[AANUM][AANUM][POSNUM][POSNUM], + FILE* flog); + +void readposfreq(FILE* fl, + long totals[POSNUM], long freqs[AANUM*POSNUM], + long totalp[POSNUM*POSNUM], + long freqp[AANUM*AANUM*POSNUM*POSNUM], + FILE* flog); + +int getseq(FILE* fl, char seq[MAXSEQLEN], int* offset, int* seqlen, + char *title); + +#include "sc.h" + +int getseq2 (FILE* fl, Sequence *sequence); + + +char aanum(char ch); +char aanum2(char ch); +char numaa(char ch); + +char posnum(char ch); + +char numpos(char ch); + +#endif /* __scio_h__ */ + +/* End of Code */ + +