-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstructural_variation.h
More file actions
63 lines (44 loc) · 1.56 KB
/
structural_variation.h
File metadata and controls
63 lines (44 loc) · 1.56 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef STRUCTURAL_VARIATION
#define STRUCTURAL_VARIATION
#include "vector.h"
#include "graph.h"
#include "interval10X.h"
#include "readbam.h"
typedef struct sv{
splitmolecule_t AB;
splitmolecule_t CD;
unsigned char supports[2];
short tabu;
int dv;
sv_type type;
uint16_t chr;
unsigned char orientation :2;
unsigned char covered :1;
unsigned char inactive :1;
}sv_t;
#define DUP_BACK_COPY 2
#define DUP_FORW_COPY 1
#define SPCL_VECTOR_GET(V,I) ((splitmolecule_t *)vector_get((V),(I)))
#define SV_VECTOR_GET(V,I) ((sv_t *)vector_get((V),(I)))
int g_remove_all(graph_t *,vector_t *, vector_t *);
vector_t *sv_g_dfs_components(graph_t *);
int _svcmp(const void *v1, const void *v2,size_t);
int sv_compd(const void *v1, const void *v2, size_t);
int sv_comp(const void *v1, const void *v2);
int sv_equals(const void *i1, const void *i2);
void sv_fprint(FILE *stream, int chr, sv_t *inv);
graph_t *make_sv_graph(vector_t *svs);
sv_t *sv_init(splitmolecule_t *,splitmolecule_t *,sv_type);
int sv_is_proper(void /*sv_t*/ *sv);
void sv_destroy(void/*sv_t*/ *dup);
splitmolecule_t *sv_reduce_breakpoints(sv_t*);
vector_t *find_svs(vector_t *split_molecules,sv_type, int chr);
void sv_graph_reset(graph_t *g);
void update_sv_supports(vector_t *svs, bam_vector_pack *,sv_type);
void update_sv_supports_b(vector_t *svs, bam_vector_pack *);
size_t sv_hf(hashtable_t *table, const void *inv);
void sv_graph_visualize(graph_t *g, FILE *stream);
int inversion_overlaps(sv_t *i1, sv_t *i2);
int duplication_overlaps(sv_t *i1, sv_t *i2);
int sv_overlaps(sv_t *i1, sv_t *i2);
#endif