File: errmod.h

package info (click to toggle)
python-pysam 0.7.7-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 11,096 kB
  • sloc: ansic: 25,638; python: 3,882; makefile: 157; sh: 12
file content (24 lines) | stat: -rw-r--r-- 442 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef ERRMOD_H
#define ERRMOD_H

#include <stdint.h>

struct __errmod_coef_t;

typedef struct {
	double depcorr;
	struct __errmod_coef_t *coef;
} errmod_t;

errmod_t *errmod_init(float depcorr);
void errmod_destroy(errmod_t *em);

/*
	n: number of bases
	m: maximum base
	bases[i]: qual:6, strand:1, base:4
	q[i*m+j]: phred-scaled likelihood of (i,j)
 */
int errmod_cal(const errmod_t *em, int n, int m, uint16_t *bases, float *q);

#endif