File: common.h

package info (click to toggle)
skewer 0.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 272 kB
  • sloc: cpp: 5,384; makefile: 47
file content (75 lines) | stat: -rw-r--r-- 2,362 bytes parent folder | download
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
70
71
72
73
74
75
/**********************************************************************
 * Skewer - a fast and accurate adapter trimming tool
 *          using the bit-masked k-difference matching algorithm
 * Copyright (c) 2013-2014 by Hongshan Jiang
 * hongshan.jiang@gmail.com
 *
 * If you use this program, please cite the paper:
 * Jiang, H., Lei, R., Ding, S.W. and Zhu, S. (2014) Skewer: a fast and
 * accurate adapter trimmer for next-generation sequencing paired-end reads.
 * BMC Bioinformatics, 15, 182.
 * http://www.biomedcentral.com/1471-2105/15/182
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.

 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
#ifndef _COMMON_H
#define _COMMON_H

typedef unsigned long long uint64;
typedef unsigned long uint32;
typedef unsigned short uint16;
typedef long long int64;
typedef long int32;
typedef short int16;

#ifndef uint
typedef unsigned int uint;
#endif

typedef unsigned char uchar;

const int MAX_PATH = 255;
const int MAX_ADAPTER_LEN = 64;
const int MAX_ADAPTER_CNT = 96;

typedef struct tag_INDEX{
	int pos;
	int pos2;
	int bc;
}INDEX;

enum TRIM_MODE{
	TRIM_DEFAULT = 0,
	TRIM_HEAD = 1,
	TRIM_TAIL = 2,
	TRIM_ANY = 3,
	TRIM_PE = 4,
	TRIM_PE_HEAD = 5,
	TRIM_PE_TAIL = 6,
	TRIM_PE_ANY = 7,
	TRIM_MP = 8,
	TRIM_MP_HEAD = 9,
	TRIM_MP_TAIL = 10,
	TRIM_MP_ANY = 11,
	TRIM_AP = 16,
	TRIM_AP_HEAD = 17,
	TRIM_MODE_CNT = 14
};

#endif // _COMMON_H