| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
#ifndef eslMSAFILE2_INCLUDED |
| 13 |
#define eslMSAFILE2_INCLUDED |
| 14 |
#include <esl_config.h> |
| 15 |
|
| 16 |
#include "easel.h" |
| 17 |
#include "esl_alphabet.h" |
| 18 |
#include "esl_keyhash.h" |
| 19 |
#include "esl_msa.h" |
| 20 |
#include "esl_msafile.h" |
| 21 |
#include "esl_ssi.h" |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
typedef struct { |
| 31 |
FILE *f; |
| 32 |
char *fname; |
| 33 |
int linenumber; |
| 34 |
char errbuf[eslERRBUFSIZE]; |
| 35 |
|
| 36 |
char *buf; |
| 37 |
int buflen; |
| 38 |
|
| 39 |
int do_gzip; |
| 40 |
int do_stdin; |
| 41 |
int format; |
| 42 |
|
| 43 |
int do_digital; |
| 44 |
const ESL_ALPHABET *abc; |
| 45 |
|
| 46 |
ESL_SSI *ssi; |
| 47 |
|
| 48 |
ESL_MSA *msa_cache; |
| 49 |
} ESL_MSAFILE2; |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
extern int esl_msafile2_Open(const char *filename, const char *env, ESL_MSAFILE2 **ret_afp); |
| 55 |
extern int esl_msafile2_OpenDigital(const ESL_ALPHABET *abc, const char *filename, const char *env, ESL_MSAFILE2 **ret_afp); |
| 56 |
extern void esl_msafile2_Close(ESL_MSAFILE2 *afp); |
| 57 |
|
| 58 |
|
| 59 |
extern int esl_msafile2_ReadInfoPfam(ESL_MSAFILE2 *afp, FILE *listfp, ESL_ALPHABET *abc, int64_t known_alen, char *known_rf, char *known_ss_cons, ESL_MSA **ret_msa, |
| 60 |
int *opt_nseq, int64_t *opt_alen, int *opt_ngs, int *opt_maxname, int *opt_maxgf, int *opt_maxgc, int *opt_maxgr, |
| 61 |
double ***opt_abc_ct, double ***opt_pp_ct, double ****opt_bp_ct, int **opt_spos_ct, int **opt_epos_ct); |
| 62 |
extern int esl_msafile2_RegurgitatePfam(ESL_MSAFILE2 *afp, FILE *ofp, int maxname, int maxgf, int maxgc, int maxgr, |
| 63 |
int do_header, int do_trailer, int do_blanks, int do_comments, int do_gf, |
| 64 |
int do_gs, int do_gc, int do_gr, int do_aseq, ESL_KEYHASH *seqs2regurg, ESL_KEYHASH *seqs2skip, |
| 65 |
int *useme, int *add2me, int exp_alen, char gapchar2add, int *opt_nseq_read, int *opt_nseq_written); |
| 66 |
|
| 67 |
#endif |
| 68 |
|