1#ifndef RAFREADER_INCLUDED
2#define RAFREADER_INCLUDED
9typedef uint64_t bits_t;
36void RAFReader_printArray(
int n,
RAFReader * r[n], FILE *fp);
40static inline const char *RAFReader_chr(
RAFReader *self);
41static inline unsigned long RAFReader_nucpos(
RAFReader *self);
42static inline const char *RAFReader_ref(
RAFReader *self);
43static inline const char *RAFReader_alt(
RAFReader *self);
44static inline const char *RAFReader_fname(
RAFReader *self);
47static inline const char *RAFReader_fname(
RAFReader *self) {
52static inline const char *RAFReader_chr(
RAFReader *self) {
57static inline const char *RAFReader_ref(
RAFReader *self) {
62static inline const char *RAFReader_alt(
RAFReader *self) {
67static inline unsigned long RAFReader_nucpos(
RAFReader *self) {
int RAFReader_multiNext(int n, RAFReader *r[n])
Advance an array of RAFReaders to the next shared position, and set derived allele frequency within e...
Definition: rafreader.c:277
double RAFReader_daf(RAFReader *r)
Return derived allele frequency of current line of raf file.
Definition: rafreader.c:456
void RAFReader_clearChromosomes(int n, RAFReader *r[n])
Clear all chromosome names.
Definition: rafreader.c:94
void RAFReader_print(RAFReader *r, FILE *fp)
Print current line of raf file.
Definition: rafreader.c:429
int RAFReader_next(RAFReader *self)
Read the next site and set derived allele frequency (daf) within each reader.
Definition: rafreader.c:130
int RAFReader_findDaf(int n, RAFReader *r[n])
Set derived allele frequency within each RAFReader.
Definition: rafreader.c:358
void RAFReader_printHdr(FILE *fp)
Print header for raf file.
Definition: rafreader.c:423
RAFReader * RAFReader_new(const char *fname)
RAFReader constructor.
Definition: rafreader.c:27
int RAFReader_alleleCheck(int n, RAFReader *r[n])
Return 0 if ref and alt alleles of all readers match; return REF_MISMATCH if there is a mismatch in R...
Definition: rafreader.c:401
void RAFReader_free(RAFReader *self)
RAFReader destructor.
Definition: rafreader.c:101
double RAFReader_raf(RAFReader *r)
Return reference allele frequency of current line of raf file.
Definition: rafreader.c:451
int RAFReader_rewind(RAFReader *self)
Rewind raf file.
Definition: rafreader.c:237
Definition: rafreader.h:11
Definition: tokenizer.h:28