-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
214 lines (198 loc) · 11.7 KB
/
Makefile
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
jvm-args := -Xmx1G -server
conditions := ../../test-data/Conditions.csv
reference := ../../test-data/Reference.csv
test-output-dir := ../test-output
# find the poolq3.jar. Basically, if we're in the source tree this will yield
# ../../target/bin)/poolq3.jar
# If this is a distribution it will be
# ../../poolq3.jar
poolq-jar := $(if $(wildcard ../poolq3.jar),../..,../../target/bin)/poolq3.jar
# run integration tests
.PHONY: all clean test-scenario-1 test-scenario-2 test-scenario-3 test-scenario-4 test-scenario-5 test-scenario-6 test-long-template test-umi test-paired-end test-multiple-inputs test-demultiplexed test-demultiplexed-paired-end
all: test-scenario-1 test-scenario-2 test-scenario-3 test-scenario-4 test-scenario-5 test-scenario-6 test-long-template test-umi test-paired-end test-multiple-inputs test-demultiplexed test-demultiplexed-paired-end
clean:
rm -rf test-output
test-scenario-1: wd = $(test-output-dir)/scenario1
test-scenario-1:
@rm -rf $(wd)
@mkdir -p $(wd)
(cd $(wd); java $(jvm-args) -jar $(poolq-jar) \
--compat \
--col-reference $(conditions) \
--row-reference $(reference) \
--reads ../../test-data/scenario1/scenario1.fastq \
--row-barcode-policy FIXED@30 \
--col-barcode-policy FIXED@0)
(cd $(wd); diff counts.txt ../../test-data/expected-counts.txt && \
diff lognormalized-counts.txt ../../test-data/lognormalized-counts.txt && \
diff barcode-counts.txt ../../test-data/barcode-counts.txt && \
diff correlation.txt ../../test-data/correlation.txt)
test-scenario-2: wd = $(test-output-dir)/scenario2
test-scenario-2:
@rm -rf $(wd)
@mkdir -p $(wd)
(cd $(wd); java $(jvm-args) -jar $(poolq-jar) \
--compat \
--col-reference $(conditions) \
--row-reference $(reference) \
--reads ../../test-data/scenario2/scenario2.fastq \
--row-barcode-policy PREFIX:CACCG@18 \
--col-barcode-policy FIXED@0)
(cd $(wd); diff counts.txt ../../test-data/expected-counts.txt && \
diff lognormalized-counts.txt ../../test-data/lognormalized-counts.txt && \
diff barcode-counts.txt ../../test-data/barcode-counts.txt && \
diff correlation.txt ../../test-data/correlation.txt)
test-scenario-3: wd = $(test-output-dir)/scenario3
test-scenario-3:
@rm -rf $(wd)
@mkdir -p $(wd)
(cd $(wd); java $(jvm-args) -jar $(poolq-jar) \
--compat \
--col-reference $(conditions) \
--row-reference $(reference) \
--row-reads ../../test-data/scenario3/scenario3.1.fastq \
--col-reads ../../test-data/scenario3/scenario3.barcode_1.fastq \
--row-barcode-policy FIXED@29 \
--col-barcode-policy FIXED@0)
(cd $(wd); diff counts.txt ../../test-data/expected-counts.txt && \
diff lognormalized-counts.txt ../../test-data/lognormalized-counts.txt && \
diff barcode-counts.txt ../../test-data/barcode-counts.txt && \
diff correlation.txt ../../test-data/correlation.txt)
test-scenario-4: wd = $(test-output-dir)/scenario4
test-scenario-4:
@rm -rf $(wd)
@mkdir -p $(wd)
(cd $(wd); java $(jvm-args) -jar $(poolq-jar) \
--compat \
--col-reference $(conditions) \
--row-reference $(reference) \
--row-reads ../../test-data/scenario4/scenario4.1.fastq \
--col-reads ../../test-data/scenario4/scenario4.barcode_1.fastq \
--row-barcode-policy PREFIX:CACCG@18 \
--col-barcode-policy FIXED@0)
(cd $(wd); diff counts.txt ../../test-data/expected-counts.txt && \
diff lognormalized-counts.txt ../../test-data/lognormalized-counts.txt && \
diff barcode-counts.txt ../../test-data/barcode-counts.txt && \
diff correlation.txt ../../test-data/correlation.txt)
test-scenario-5: wd = $(test-output-dir)/scenario5
test-scenario-5:
@rm -rf $(wd)
@mkdir -p $(wd)
(cd $(wd); java $(jvm-args) -jar $(poolq-jar) \
--compat \
--col-reference $(conditions) \
--row-reference $(reference) \
--row-reads ../../test-data/scenario5/scenario5.1.sam \
--col-reads ../../test-data/scenario5/scenario5.barcode_1.sam \
--row-barcode-policy PREFIX:CACCG@18 \
--col-barcode-policy FIXED@0)
(cd $(wd); diff counts.txt ../../test-data/expected-counts.txt && \
diff lognormalized-counts.txt ../../test-data/lognormalized-counts.txt && \
diff barcode-counts.txt ../../test-data/barcode-counts.txt && \
diff correlation.txt ../../test-data/correlation.txt)
test-scenario-6: wd = $(test-output-dir)/scenario6
test-scenario-6:
@rm -rf $(wd)
@mkdir -p $(wd)
(cd $(wd); java $(jvm-args) -jar $(poolq-jar) \
--compat \
--col-reference ../../test-data/scenario6/conditions.csv \
--row-reference ../../test-data/scenario6/reference.csv \
--row-reads ../../test-data/scenario6/scenario6.fastq \
--col-reads ../../test-data/scenario6/scenario6.barcode_1.fastq \
--row-barcode-policy TEMPLATE:caccgNNNNNnnnnnnnnnttacaNNNNN@11 \
--col-barcode-policy FIXED@0)
(cd $(wd); diff counts.txt ../../test-data/scenario6/expected-counts.txt && \
diff lognormalized-counts.txt ../../test-data/scenario6/lognormalized-counts.txt && \
diff barcode-counts.txt ../../test-data/scenario6/barcode-counts.txt && \
diff correlation.txt ../../test-data/scenario6/correlation.txt)
test-long-template: wd = $(test-output-dir)/long-template
test-long-template:
@rm -rf $(wd)
@mkdir -p $(wd)
(cd $(wd); java $(jvm-args) -jar $(poolq-jar) \
--compat \
--col-reference ../../test-data/long-template/conditions.csv \
--row-reference ../../test-data/long-template/reference.csv \
--row-reads ../../test-data/long-template/long-template.fastq \
--col-reads ../../test-data/long-template/long-template.barcode_1.fastq \
--row-barcode-policy TEMPLATE:caccgNNNNNNNNNNNNNNNNNNNNnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnNNNNNNNNNNNNNNNNNNNN@12 \
--col-barcode-policy FIXED@0)
(cd $(wd); diff counts.txt ../../test-data/long-template/expected-counts.txt && \
diff lognormalized-counts.txt ../../test-data/long-template/lognormalized-counts.txt && \
diff barcode-counts.txt ../../test-data/long-template/barcode-counts.txt && \
diff correlation.txt ../../test-data/long-template/correlation.txt)
test-umi: wd = $(test-output-dir)/umi
test-umi:
@rm -rf $(wd)
@mkdir -p $(wd)
(cd $(wd); java $(jvm-args) -jar $(poolq-jar) \
--col-reference ../../test-data/umi/Conditions.csv \
--row-reference ../../test-data/umi/Reference.csv \
--umi-reference ../../test-data/umi/Umi.csv \
--row-reads ../../test-data/umi/umi1.1.fastq \
--col-reads ../../test-data/umi/umi1.barcode_1.fastq \
--row-barcode-policy PREFIX:CACCG@18 \
--col-barcode-policy FIXED@0 \
--umi-barcode-policy TEMPLATE:caccgnnnnnnnnnnnnnnnnnnnntatccgtNNNNN@18)
(cd $(wd); for F in `ls counts*.txt`; do diff $$F ../../test-data/umi/$$F; done)
test-paired-end: wd = $(test-output-dir)/paired-end
test-paired-end:
@rm -rf $(wd)
@mkdir -p $(wd)
(cd $(wd); java $(jvm-args) -jar $(poolq-jar) \
--compat \
--col-reference ../../test-data/paired-end/conditions.csv \
--row-reference ../../test-data/paired-end/reference.csv \
--row-reads ../../test-data/paired-end/paired-end.f.fastq \
--rev-row-reads ../../test-data/paired-end/paired-end.r.fastq \
--col-reads ../../test-data/paired-end/paired-end.barcode_1.fastq \
--row-barcode-policy PREFIX:CACCG@11 \
--rev-row-barcode-policy PREFIX:CGGTG@11 \
--col-barcode-policy FIXED@0)
(cd $(wd); diff counts.txt ../../test-data/paired-end/expected-counts.txt)
test-multiple-inputs: wd = $(test-output-dir)/multiple-inputs
test-multiple-inputs:
@rm -rf $(wd)
@mkdir -p $(wd)
(cd $(wd); java $(jvm-args) -jar $(poolq-jar) \
--compat \
--col-reference $(conditions) \
--row-reference $(reference) \
--row-reads ../../test-data/multiple-inputs/scenario4.1.fastq,../../test-data/multiple-inputs/scenario4.2.fastq,../../test-data/multiple-inputs/scenario4.3.fastq,../../test-data/multiple-inputs/scenario4.4.fastq \
--col-reads ../../test-data/multiple-inputs/scenario4.barcode_1.fastq,../../test-data/multiple-inputs/scenario4.barcode_2.fastq,../../test-data/multiple-inputs/scenario4.barcode_3.fastq,../../test-data/multiple-inputs/scenario4.barcode_4.fastq \
--row-barcode-policy PREFIX:CACCG@18 \
--col-barcode-policy FIXED@0)
(cd $(wd); diff counts.txt ../../test-data/expected-counts.txt && \
diff lognormalized-counts.txt ../../test-data/lognormalized-counts.txt && \
diff barcode-counts.txt ../../test-data/barcode-counts.txt && \
diff correlation.txt ../../test-data/correlation.txt)
test-demultiplexed: wd = $(test-output-dir)/demultiplexed
test-demultiplexed:
@rm -rf $(wd)
@mkdir -p $(wd)
(cd $(wd); java $(jvm-args) -jar $(poolq-jar) \
--compat \
--col-reference $(conditions) \
--row-reference $(reference) \
--demultiplexed \
--row-reads TTGAACCG:../../test-data/demultiplexed/TTGAACCG.construct.fastq,CCGAGTTA:../../test-data/demultiplexed/CCGAGTTA.construct.fastq,TTGAGTAT:../../test-data/demultiplexed/TTGAGTAT.construct.fastq,CCTCCAAT:../../test-data/demultiplexed/CCTCCAAT.construct.fastq,GGTCACCG:../../test-data/demultiplexed/GGTCACCG.construct.fastq,TTGACAAT:../../test-data/demultiplexed/TTGACAAT.construct.fastq,AATCCAAT:../../test-data/demultiplexed/AATCCAAT.construct.fastq,TTCTCATA:../../test-data/demultiplexed/TTCTCATA.construct.fastq,AATCCACG:../../test-data/demultiplexed/AATCCACG.construct.fastq,AATCGTGC:../../test-data/demultiplexed/AATCGTGC.construct.fastq,AAGAACTA:../../test-data/demultiplexed/AAGAACTA.construct.fastq,CCAGTGAT:../../test-data/demultiplexed/CCAGTGAT.construct.fastq,GGTCGTGC:../../test-data/demultiplexed/GGTCGTGC.construct.fastq,TTAGACCG:../../test-data/demultiplexed/TTAGACCG.construct.fastq,GGTCCACG:../../test-data/demultiplexed/GGTCCACG.construct.fastq,CCGAACTA:../../test-data/demultiplexed/CCGAACTA.construct.fastq,AACTCACG:../../test-data/demultiplexed/AACTCACG.construct.fastq,AATCACTA:../../test-data/demultiplexed/AATCACTA.construct.fastq,GGTCCATA:../../test-data/demultiplexed/GGTCCATA.construct.fastq,GGTCTGCG:../../test-data/demultiplexed/GGTCTGCG.construct.fastq,CCAGTGGC:../../test-data/demultiplexed/CCAGTGGC.construct.fastq,AACTTGCG:../../test-data/demultiplexed/AACTTGCG.construct.fastq,../../test-data/demultiplexed/unmatched.construct.fastq \
--row-barcode-policy PREFIX:CACCG@18)
(cd $(wd); diff counts.txt ../../test-data/expected-counts.txt && \
diff lognormalized-counts.txt ../../test-data/lognormalized-counts.txt && \
diff barcode-counts.txt ../../test-data/barcode-counts.txt && \
diff correlation.txt ../../test-data/correlation.txt)
test-demultiplexed-paired-end: wd = $(test-output-dir)/demultiplexed-paired-end
test-demultiplexed-paired-end:
@rm -rf $(wd)
@mkdir -p $(wd)
(cd $(wd); java $(jvm-args) -jar $(poolq-jar) \
--compat \
--col-reference ../../test-data/demultiplexed-paired-end/conditions.csv \
--row-reference ../../test-data/demultiplexed-paired-end/reference.csv \
--demultiplexed \
--row-reads AGAATGAG:../../test-data/demultiplexed-paired-end/AGAATGAG.1.construct.fastq,ATCCGTCC:../../test-data/demultiplexed-paired-end/ATCCGTCC.1.construct.fastq,CAGGCATA:../../test-data/demultiplexed-paired-end/CAGGCATA.1.construct.fastq,CGTCTTGG:../../test-data/demultiplexed-paired-end/CGTCTTGG.1.construct.fastq,GAACAAAG:../../test-data/demultiplexed-paired-end/GAACAAAG.1.construct.fastq,TCTGGACT:../../test-data/demultiplexed-paired-end/TCTGGACT.1.construct.fastq \
--rev-row-reads AGAATGAG:../../test-data/demultiplexed-paired-end/AGAATGAG.2.construct.fastq,ATCCGTCC:../../test-data/demultiplexed-paired-end/ATCCGTCC.2.construct.fastq,CAGGCATA:../../test-data/demultiplexed-paired-end/CAGGCATA.2.construct.fastq,CGTCTTGG:../../test-data/demultiplexed-paired-end/CGTCTTGG.2.construct.fastq,GAACAAAG:../../test-data/demultiplexed-paired-end/GAACAAAG.2.construct.fastq,TCTGGACT:../../test-data/demultiplexed-paired-end/TCTGGACT.2.construct.fastq \
--row-barcode-policy PREFIX:CACCG@11 \
--rev-row-barcode-policy PREFIX:CGGTG@11)
(cd $(wd); diff counts.txt ../../test-data/paired-end/expected-counts.txt)