comparison pyPRADA_1.2/tools/samtools-0.1.16/errmod.h @ 0:acc2ca1a3ba4

Uploaded
author siyuan
date Thu, 20 Feb 2014 00:44:58 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:acc2ca1a3ba4
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