modified: nfig1.py
[GalaxyCodeBases.git] / c_cpp / readscorr / cfgparser.h
blob317dcd5e371bfe237548c2fe16f07b6cf5925bd4
1 #ifndef _G_CFGPARSER_H
2 #define _G_CFGPARSER_H
3 #include <stdio.h>
4 #include <stdint.h>
6 void write_example_cfg(const char * const filename);
8 #define SDLConfig_Count 5u
9 typedef struct __SDLConfig {
10 double GenomeSize,HetRatio,SeqErrRate,SeqDepth,MutEffect;
11 char * seqfilename;
12 size_t seqfilename_length;
13 FILE *fp;
14 double MaxKmerCount;
15 uint64_t ArraySize;
16 unsigned char rBit;
17 } SDLConfig;
19 SDLConfig *read_SDL_cfg(const double dkmersize, const char * const filename);
20 void calculate_SDL_cfg(const double dkmersize, SDLConfig *psdlcfg);
21 ssize_t get_next_seqfile(SDLConfig * const psdlcfg);
22 void destory_seqfile(SDLConfig * psdlcfg);
24 #endif /* cfgparser.h */