annotate PsiCLASS-1.0.2/samtools-0.1.19/errmod.h @ 0:903fc43d6227 draft default tip

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