Legofit
infers population history from nucleotide site patterns.
|
#include "scrmreader.h"
#include "misc.h"
#include "tokenizer.h"
#include "uintqueue.h"
#include "error.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
Data Structures | |
struct | ScrmReader |
Functions | |
unsigned * | countSamples (Tokenizer *tkz, int *sampleDim, int *transpose) |
int | readuntil (int n, const char *str, int dim, char buff[dim], FILE *fp) |
Read lines until we reach one that begins with str. More... | |
void | ScrmReader_free (ScrmReader *self) |
ScrmReader * | ScrmReader_new (FILE *fp) |
int | ScrmReader_rewind (ScrmReader *self) |
int | ScrmReader_next (ScrmReader *self) |
unsigned | ScrmReader_chr (ScrmReader *self) |
unsigned long | ScrmReader_nucpos (ScrmReader *self) |
int | ScrmReader_sampleDim (ScrmReader *self) |
int | ScrmReader_nsamples (ScrmReader *self, int i) |
double | ScrmReader_daf (ScrmReader *self, int i) |
int readuntil | ( | int | n, |
const char * | str, | ||
int | dim, | ||
char | buff[dim], | ||
FILE * | fp | ||
) |
Read lines until we reach one that begins with str.
Return 0 on success, EOF on failure.
References readline().