-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcombine_reads.h
69 lines (52 loc) · 1.45 KB
/
combine_reads.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef _FLASH_COMBINE_READS_H_
#define _FLASH_COMBINE_READS_H_
#include <stdbool.h>
struct read;
/* Parameters for the core algorithm of FLASH. See the help output for more
* information. */
struct combine_params {
/* --min-overlap */
int min_overlap;
/* --min-overlap-outie */
int min_overlap_outie;
/* --max-overlap */
int max_overlap;
/* --max-mismatch-density */
float max_mismatch_density;
/* --cap-mismatch-quals */
bool cap_mismatch_quals;
/* --allow-outies */
bool allow_outies;
/* --skip-overlap (just does adapter trimming*/
bool skip_overlap;
bool discard_reads;
int percent_cutoff;
int qual_score_cutoff;
};
/* Result of a call to combine_reads() */
enum combine_status {
/* The reads could not be combined. */
NOT_COMBINED = 0,
JUNK_READ = -5,
/* The reads were combined in "innie" orientation, like the following:
*
* ---------->
* <------------
*
* (Note: read_2 is reverse complemented before the call to
* combine_reads()). */
COMBINED_AS_INNIE,
/* The reads were combined in "outie" orientation, like the following:
*
* <----------
* ------------>
*
* (Note: read_2 is reverse complemented before the call to
* combine_reads()). */
COMBINED_AS_OUTIE,
};
extern enum combine_status
combine_reads(const struct read *read_1, const struct read *read_2,
struct read *combined_read,
const struct combine_params *params);
#endif /* _FLASH_COMBINE_READS_H_ */