-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathconf.mk
140 lines (91 loc) · 3.04 KB
/
conf.mk
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# conf.mk - Pipeline configuration for AllBioTC2
#
# (c) 2013 - Wai Yi Leung
# (c) 2013 AllBio (see AUTHORS file)
#
# Adapted makefile configuration from Wibowo Arindrarto [SASC-LUMC]
########################
### Pipeline Setting ###
########################
# SGE configuration.
SGE_PE = BWA
# Keep all intermediate files
#.SECONDARY:
# Delete target if recipe returns error status code.
.DELETE_ON_ERROR:
# Makefile specific settings
PWD = $(shell pwd)
THIS_MAKEFILE = $(firstword $(MAKEFILE_LIST))
MAKEFILE_DIR := $(realpath $(dir $(realpath $(lastword $(MAKEFILE_LIST)))))
#####################
### Used Programs ###
#####################
# Programs folder for custom software.
PROGRAMS := /opt/allbio/software/
PROGRAMS_DIR := $(PROGRAMS)
# BWA.
BWA_VERSION=bwa-v0.7.5a
BWA = $(BWA_DIR)/bwa
# BOWTIE2.
BOWTIE2_DIR := $(PROGRAMS)/bowtie2-2.1.0
BOWTIE2 := $(BOWTIE2_DIR)/bowtie2
# Dependencies
BWA_DIR := $(PROGRAMS)/bwa/$(BWA_VERSION)
BWA_THREADS := 4
BWA_MAX_INSERT_SIZE := 500 #[500]
#BWA Options
BWA_OPTION_THREADS := 4
BWA_ALN_OPTIONS := -t $(BWA_OPTION_THREADS)
BWA_SAMPE_OPTIONS := -n25 -N25
# FastQC
FASTQC_VERSION := fastqc_v0.10.1
FASTQC_DIR := $(PROGRAMS)/FastQC/$(FASTQC_VERSION)
FASTQC := $(FASTQC_DIR)/fastqc
FASTQC_THREADS := 4
# Sickle
SICKLE_VERSION := sickle-v1.2.1
SICKLE_DIR := $(PROGRAMS)/sickle/$(SICKLE_VERSION)
SICKLE := $(SICKLE_DIR)/sickle
# Samtools.
SAMTOOLS_VERSION := samtools-v0.1.19
SAMTOOLS_DIR := $(PROGRAMS)/samtools/$(SAMTOOLS_VERSION)
SAMTOOLS := $(SAMTOOLS_DIR)/samtools
# Python, can be changed to a version which is not installed with the system
# for example, a version which is installed in a virtualenv with the required
# libraries. For information about venv's: http://www.virtualenv.org/
PYTHON_EXE := python
####################
### Dependencies ###
####################
# References
REFERENCE_DIR := $(MAKEFILE_DIR)/reference
REFERENCE_BWA := $(REFERENCE_DIR)/bwa/reference.fa
REFERENCE_BOWTIE2 := $(REFERENCE_DIR)/bowtie2/reference
REFERENCE := $(REFERENCE_DIR)/reference.fa
##########################
### Input/Output Files ###
##########################
# General settings
PEA_MARK := _1
PEB_MARK := _2
FASTQ_EXTENSION := fastq
# Set the format of the quality scores in the input files (sanger or solexa).
QSCORE_FORMAT := sanger
THREADS := 8
# Set options for trimming
MIN_TRIM_PHRED_QUAL := 30
MIN_TRIM_READLENGTH := 25
ALIGNER := bwa-mem
# input directory, defaults to current directory
IN_DIR := $(shell pwd)
SAMPLE := $(shell ls *$(PEA_MARK).$(FASTQ_EXTENSION) | python -c 'import os; import sys; print os.path.commonprefix(list(sys.stdin)).split(".")[0]')
PAIRS := $(shell ls *$(PEA_MARK).$(FASTQ_EXTENSION) | sed 's/$(PEA_MARK).$(FASTQ_EXTENSION)//')
SINGLES := $(basename $(shell ls *$(PEA_MARK).$(FASTQ_EXTENSION) *$(PEB_MARK).$(FASTQ_EXTENSION)))
# root output directory, defaults to input directory
ROOT_OUT_DIR := $(IN_DIR)
# real output directory
OUT_DIR := $(ROOT_OUT_DIR)
# reference VCF used in this project
REFERENCE_VCF :=
# Load configuration per pipeline
-include project.conf.mk