-
Notifications
You must be signed in to change notification settings - Fork 167
/
Copy pathcedlib.pxd
39 lines (31 loc) · 1.48 KB
/
cedlib.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
cdef extern from "edlib.h" nogil:
ctypedef enum EdlibAlignMode: EDLIB_MODE_NW, EDLIB_MODE_SHW, EDLIB_MODE_HW
ctypedef enum EdlibAlignTask: EDLIB_TASK_DISTANCE, EDLIB_TASK_LOC, EDLIB_TASK_PATH
ctypedef enum EdlibCigarFormat: EDLIB_CIGAR_STANDARD, EDLIB_CIGAR_EXTENDED
ctypedef struct EdlibEqualityPair:
char first
char second
ctypedef struct EdlibAlignConfig:
int k
EdlibAlignMode mode
EdlibAlignTask task
const EdlibEqualityPair* additionalEqualities
int additionalEqualitiesLength
EdlibAlignConfig edlibNewAlignConfig(int k, EdlibAlignMode mode, EdlibAlignTask task,
const EdlibEqualityPair* additionalEqualities,
int additionalEqualitiesLength)
EdlibAlignConfig edlibDefaultAlignConfig()
ctypedef struct EdlibAlignResult:
int status
int editDistance
int* endLocations
int* startLocations
int numLocations
unsigned char* alignment
int alignmentLength
int alphabetLength
void edlibFreeAlignResult(EdlibAlignResult result)
EdlibAlignResult edlibAlign(const char* query, int queryLength,
const char* target, int targetLength,
const EdlibAlignConfig config)
char* edlibAlignmentToCigar(const unsigned char* alignment, int alignmentLength, EdlibCigarFormat cigarFormat)