|
29 | 29 | #ifndef DEFINES_H_
|
30 | 30 | #define DEFINES_H_
|
31 | 31 |
|
32 |
| -// General |
| 32 | +// General |
33 | 33 | #define B_LEN 131072 /**< buffer size */
|
34 | 34 | #define MAX_FILENAME 300 /**< Maximum # chars in a filename */
|
35 |
| -#define bool short /**< define a bool type */ |
| 35 | +#define bool int16_t /**< define a bool type */ |
36 | 36 | #define true 1 /**< assign true to 1 */
|
37 | 37 | #define false 0 /**< assign false to 0 */
|
38 | 38 |
|
39 | 39 | #ifndef max
|
40 |
| - #define max( a, b ) ( ((a) > (b)) ? (a) : (b) ) /**< max function */ |
| 40 | + #define max(a, b) (((a) > (b)) ? (a) : (b)) /**< max function */ |
41 | 41 | #endif
|
42 | 42 |
|
43 | 43 | #ifndef min
|
44 |
| - #define min( a, b ) ( ((a) < (b)) ? (a) : (b) ) /**< min function */ |
| 44 | + #define min(a, b) (((a) < (b)) ? (a) : (b)) /**< min function */ |
45 | 45 | #endif
|
46 | 46 |
|
47 | 47 | #ifndef mem_usageMB
|
48 |
| - #define mem_usageMB() fprintf(stderr, \ |
| 48 | + #define mem_usageMB() fprintf(stderr, \ |
49 | 49 | "- Current allocated memory: %ld MB.\n", \
|
50 | 50 | alloc_mem >> 20) /**< returns allocated memory in MB */
|
51 | 51 | #endif
|
52 | 52 |
|
53 | 53 | #ifndef mem_usage
|
54 |
| - #define mem_usage() fprintf(stderr, \ |
| 54 | + #define mem_usage() fprintf(stderr, \ |
55 | 55 | "- Current allocated memory: %ld Bytes.\n", \
|
56 | 56 | alloc_mem) /**< returns allocated memory in Bytes */
|
57 | 57 | #endif
|
58 | 58 |
|
59 | 59 |
|
60 | 60 | // Q_report, S_report
|
61 |
| -#define DEFAULT_MINQ 27 /**< Minimum quality threshold */ |
62 |
| -#define DEFAULT_NTILES 96 /**< Default number of tiles */ |
63 |
| -#define DEFAULT_NQ 46 /**< Default number of different quality values */ |
64 |
| -#define ZEROQ 33 /**< ASCII code of lowest quality value (!) */ |
65 |
| -#define N_ACGT 5 /**< Number of different nucleotides in the fq file */ |
| 61 | +#define DEFAULT_MINQ 27 /**< Minimum quality threshold */ |
| 62 | +#define DEFAULT_NTILES 96 /**< Default number of tiles */ |
| 63 | +#define DEFAULT_NQ 46 /**< Default number of different quality values */ |
| 64 | +#define ZEROQ 33 /**< ASCII code of lowest quality value (!) */ |
| 65 | +#define N_ACGT 5 /**< Number of different nucleotides in the fq file */ |
66 | 66 | #define MAX_RCOMMAND 4000 /**< Maximum # chars in R command*/
|
67 | 67 |
|
68 | 68 |
|
69 | 69 | // Fasta files
|
70 | 70 | #define FA_ENTRY_BUF 20 /**< buffer for fasta entries*/
|
71 | 71 |
|
72 |
| -// Tree |
| 72 | +// Tree |
73 | 73 | #define T_ACGT 4 /**< Number of children per node in tree*/
|
74 | 74 | #define NPOOL_1D 1048576 /**< Number of Node structs allocated in inner dim */
|
75 | 75 | #define NPOOL_2D 16 /**< Number of *Node allocated in outer dim */
|
76 | 76 | #define MAX_FASZ_TREE 1e7 /**< Maximum fasta size for constructing a tree.
|
77 |
| - DECIDE A SENSIBLE SIZE! */ |
| 77 | + DECIDE A SENSIBLE SIZE */ |
78 | 78 | // BloomFilter
|
79 | 79 | #define BITSPERCHAR 8 /**< number of bits in a char */
|
80 | 80 | #define BASESPERCHAR 4 /**< number of nucleotides that can fit in a char */
|
|
90 | 90 | #define STRIP 3 /**< Looks for the largest N-free sequence */
|
91 | 91 | // trimQ only
|
92 | 92 | #define FRAC 3 /**< Discards a read if it contains > percent lowQ bases*/
|
93 |
| -#define ENDSFRAC 4 /**< trims at the ends and discards a read if the |
| 93 | +#define ENDSFRAC 4 /**< trims at the ends and discards a read if the |
94 | 94 | remaining part has more than > percent lowQ bases */
|
95 |
| -#define GLOBAL 5 /**< Trims a fixed # bases from e left and right*/ |
| 95 | +#define GLOBAL 5 /**< Trims a fixed # bases from e left and right*/ |
96 | 96 |
|
97 | 97 | #define TREE 1 /**< Use a tree to look for contaminations*/
|
98 | 98 | #define SA 2 /**< Use a suffix array to look for contaminations*/
|
99 | 99 | #define BLOOM 3 /**< Use a bloom filter to look for contaminations*/
|
100 | 100 |
|
101 | 101 | #define ERROR 1000 /**< Encodes an error when reading in trimN, trimQ, method
|
102 | 102 | options in trimFilter */
|
103 |
| -#define DEFAULT_MINL 25 /**< Default minimum length under which we discard |
| 103 | +#define DEFAULT_MINL 25 /**< Default minimum length under which we discard |
104 | 104 | the reads */
|
105 | 105 |
|
106 | 106 | // Classification of filters
|
|
110 | 110 | #define NNNN 3 /**< N's presence filter */
|
111 | 111 | #define GOOD 4 /**< Good reads */
|
112 | 112 |
|
113 |
| -//Number of filters |
114 |
| -#define NFILTERS 4 /**< total number of filters */ |
| 113 | +// Number of filters |
| 114 | +#define NFILTERS 4 /**< total number of filters */ |
115 | 115 |
|
116 | 116 | #endif // endif DEFINES_H_
|
117 | 117 |
|
0 commit comments