-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload_data.h
36 lines (25 loc) · 884 Bytes
/
load_data.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
#ifndef _LOAD_DATA_H_
#define _LOAD_DATA_H_
#include "codes.h"
#include "read_quality.h"
#define RETURN_SUCCESS 0
#define RETURN_INPUT_ERR (-1)
#define RETURN_MEM_ERR (-2)
#define LINE_TYPE_COMMENT 0
#define LINE_TYPE_SEQ_HEADER 1
#define LINE_TYPE_SEQ 2
#define LINE_TYPE_QUAL_HEADER 3
#define LINE_TYPE_QUAL 4
#define LINE_TYPE_UNKNOWN (-1)
/* Length of the line read from the input files */
#define MAX_LINE_LEN 65536
#define SEQ_HEADER_MARKER '>'
#define SEQ_HEADER_MARKER_FASTQ '@'
#define SEQ_QUALITY_MARKER_FASTQ '+'
#define COMMENT_MARKER '#'
int parse_integer_sequence_to(const char* src, short* dest, int len);
short* parse_integer_sequence(const char* src, int len) ;
int get_input_line_type(char* line);
int get_input_line_type_fastq(char* line, int lineNo, int offset);
void delete_trailing_nl(char* line) ;
#endif /* _LOAD_DATA_H_ */