Mercurial > repos > siyuan > prada
annotate pyPRADA_1.2/tools/samtools-0.1.16/errmod.h @ 3:f17965495ec9 draft default tip
Uploaded
| author | siyuan |
|---|---|
| date | Tue, 11 Mar 2014 12:14:01 -0400 |
| parents | acc2ca1a3ba4 |
| children |
| rev | line source |
|---|---|
| 0 | 1 #ifndef ERRMOD_H |
| 2 #define ERRMOD_H | |
| 3 | |
| 4 #include <stdint.h> | |
| 5 | |
| 6 struct __errmod_coef_t; | |
| 7 | |
| 8 typedef struct { | |
| 9 double depcorr; | |
| 10 struct __errmod_coef_t *coef; | |
| 11 } errmod_t; | |
| 12 | |
| 13 errmod_t *errmod_init(float depcorr); | |
| 14 void errmod_destroy(errmod_t *em); | |
| 15 | |
| 16 /* | |
| 17 n: number of bases | |
| 18 m: maximum base | |
| 19 bases[i]: qual:6, strand:1, base:4 | |
| 20 q[i*m+j]: phred-scaled likelihood of (i,j) | |
| 21 */ | |
| 22 int errmod_cal(const errmod_t *em, int n, int m, uint16_t *bases, float *q); | |
| 23 | |
| 24 #endif |
