forked from brentp/hileup
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathchileup.pxd
50 lines (43 loc) · 1.3 KB
/
chileup.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from pysam.libchtslib cimport *
cdef extern from "stdbool.h":
ctypedef bint bool
cdef extern from "hile.h" nogil:
ctypedef struct hile_config_t:
uint8_t min_mapping_quality
uint8_t min_base_quality
uint16_t exclude_flags
uint16_t include_flags
bool track_read_names
bool track_reads
bool track_base_qualities
bool track_mapping_qualities
char tags[4];
ctypedef struct hile_deletion_t:
uint32_t index
uint32_t length
ctypedef struct hile_insertion_t:
uint32_t index
uint32_t length
char *sequence
ctypedef struct hile_basestrand_t:
uint8_t reverse_strand
uint8_t base
ctypedef struct hile:
uint32_t pos
char reference_base
hile_basestrand_t *bases
uint32_t n
uint32_t cap
uint8_t *bqs
uint8_t *mqs
char **read_names
bam1_t **reads;
char **tags;
hile_insertion_t *insertions
uint32_t n_insertions
hile_deletion_t *deletions
uint32_t n_deletions
void hile_destroy(hile *h)
hile *hileup(htsFile *htf, bam_hdr_t *hdr, hts_idx_t *idx, char *chrom, int position, hile_config_t *cfg, char ignore_base)
hile_config_t hile_init_config()
int qpos(bam1_t *b)