annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
1 #ifndef ERRMOD_H
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
2 #define ERRMOD_H
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
3
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
4 #include <stdint.h>
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
5
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
6 struct __errmod_coef_t;
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
7
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
8 typedef struct {
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
9 double depcorr;
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
10 struct __errmod_coef_t *coef;
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
11 } errmod_t;
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
12
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
13 errmod_t *errmod_init(float depcorr);
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
14 void errmod_destroy(errmod_t *em);
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
15
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
16 /*
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
17 n: number of bases
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
18 m: maximum base
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
19 bases[i]: qual:6, strand:1, base:4
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
20 q[i*m+j]: phred-scaled likelihood of (i,j)
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
21 */
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
22 int errmod_cal(const errmod_t *em, int n, int m, uint16_t *bases, float *q);
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
23
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
24 #endif