1#ifndef DAFREADER_INCLUDED
2#define DAFREADER_INCLUDED
33int DAFReader_multiNext(
int n,
DAFReader *r[n]);
34static inline const char *DAFReader_chr(
DAFReader *self);
35static inline unsigned long DAFReader_nucpos(
DAFReader *self);
39static inline const char *DAFReader_chr(
DAFReader *self) {
44static inline unsigned long DAFReader_nucpos(
DAFReader *self) {
void DAFReader_printHdr(FILE *fp)
Print header for daf file.
Definition: dafreader.c:477
void DAFReader_clearChromosomes(int n, DAFReader *r[n])
Clear all chromosome names.
Definition: dafreader.c:83
double DAFReader_daf(DAFReader *r)
Return derived allele frequency of current line of daf file.
Definition: dafreader.c:490
void DAFReader_print(DAFReader *r, FILE *fp)
Print current line of daf file.
Definition: dafreader.c:483
int DAFReader_rewind(DAFReader *self)
Rewind daf file.
Definition: dafreader.c:227
int DAFReader_allelesMatch(int n, DAFReader *r[n])
Return 1 if ancestral and derived alleles of all readers match; 0 otherwise.
Definition: dafreader.c:445
DAFReader * DAFReader_new(const char *fname)
DAFReader constructor.
Definition: dafreader.c:26
void DAFReader_free(DAFReader *self)
DAFReader destructor.
Definition: dafreader.c:90
int DAFReader_next(DAFReader *self)
Read the next site.
Definition: dafreader.c:116
Definition: dafreader.h:9
Definition: tokenizer.h:28