-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstr_finder.h
39 lines (34 loc) · 1021 Bytes
/
str_finder.h
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
#ifndef _STR_FINDER_H_
#define _STR_FINDER_H_
#include "utlist.h"
typedef struct rep_ele {
int start, end;
struct rep_ele *prev;
struct rep_ele *next;
} rep_ele;
/*
* Finds repeated homopolymers up to 8-mers.
*
* If lower_only is true then it only adds STRs for regions that
* contain at least one lower-case base. This can be used as a marker
* for looking for specific types of repeats.
* (One use for this is to only mark STRs that overlap a heterozygous
* indel region.)
*
* Returns a list of rep_ele structs holding the start,end tuples of repeats;
* NULL on failure.
*/
rep_ele *find_STR(char *cons, int len, int lower_only);
/*
* Returns an array of STR vs no-STR values.
* 0 => non repetitive.
* 1+ => repeat with consecutive bit-number for repeat size.
*
* Eg: AGGGGAGGAGAAGAC
* 1111 1111
* 2222222
* 444444
* => 011331137754440
*/
char *cons_mark_STR(char *cons, int len, int lower_only);
#endif /* _STR_FINDER_H_ */