2017-04-07 03:37:34 +08:00
|
|
|
#ifndef MM_BSEQ_H
|
|
|
|
|
#define MM_BSEQ_H
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
2017-07-19 21:26:46 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
struct mm_bseq_file_s;
|
|
|
|
|
typedef struct mm_bseq_file_s mm_bseq_file_t;
|
2017-04-07 03:37:34 +08:00
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
int l_seq, rid;
|
2017-07-01 02:40:54 +08:00
|
|
|
char *name, *seq, *qual;
|
2017-07-19 21:26:46 +08:00
|
|
|
} mm_bseq1_t;
|
2017-04-07 03:37:34 +08:00
|
|
|
|
2017-07-19 21:26:46 +08:00
|
|
|
mm_bseq_file_t *mm_bseq_open(const char *fn);
|
|
|
|
|
void mm_bseq_close(mm_bseq_file_t *fp);
|
|
|
|
|
mm_bseq1_t *mm_bseq_read(mm_bseq_file_t *fp, int chunk_size, int with_qual, int *n_);
|
|
|
|
|
int mm_bseq_eof(mm_bseq_file_t *fp);
|
2017-04-07 03:37:34 +08:00
|
|
|
|
2017-04-08 03:30:30 +08:00
|
|
|
extern unsigned char seq_nt4_table[256];
|
|
|
|
|
|
2017-07-19 21:26:46 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-04-07 03:37:34 +08:00
|
|
|
#endif
|