-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
582 lines (484 loc) · 20 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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
PWD=$(shell pwd)
DEBIAN_VERSION=buster-20190708-slim
TAG=pante-v0.0.1
DOCKER_USER=darcyabjones
BASE_IMAGE=$(DOCKER_USER)/base:$(TAG)
INSTALL_BASE=/opt
define make_image_name
$(DOCKER_USER)/$(notdir $1):$(TAG)
endef
# SOFTWARE_VERSIONs
GENOMETOOLS_VERSION=1.5.10
GENOMETOOLS_URL=http://genometools.org/pub/genometools-$(GENOMETOOLS_VERSION).tar.gz
GENOMETOOLS_PREFIX_ARG=$(INSTALL_BASE)/genometools/$(GENOMETOOLS_VERSION)
BEDTOOLS_VERSION=2.28.0
BEDTOOLS_URL=https://github.com/arq5x/bedtools2/releases/download/v2.28.0/bedtools-2.28.0.tar.gz
BEDTOOLS_PREFIX_ARG=$(INSTALL_BASE)/bedtools/$(BEDTOOLS_VERSION)
GFFPAL_COMMIT=4544248
GFFPAL_REPO=https://github.com/darcyabjones/gffpal.git
GFFPAL_PREFIX_ARG=$(INSTALL_BASE)/gffpal/$(GFFPAL_COMMIT)
SEQRENAMER_TAG=v0.0.1
SEQRENAMER_REPO=https://github.com/darcyabjones/seqrenamer.git
SEQRENAMER_PREFIX_ARG=$(INSTALL_BASE)/seqrenamer/$(SEQRENAMER_TAG)
RMBLAST_VERSION=2.9.0+
RMBLAST_URL=ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.9.0/ncbi-blast-2.9.0+-src.tar.gz
RMBLAST_PATCH_URL=http://www.repeatmasker.org/isb-2.9.0+-rmblast.patch.gz
RMBLAST_PREFIX_ARG=$(INSTALL_BASE)/rmblast/$(RMBLAST_VERSION)
TRF_VERSION=409
TRF_URL=http://tandem.bu.edu/trf/downloads/trf409.linux64
TRF_PREFIX_ARG=$(INSTALL_BASE)/trf/$(TRF_VERSION)
NSEG_URL=ftp://ftp.ncbi.nih.gov/pub/seg/nseg/
NSEG_PREFIX_ARG=$(INSTALL_BASE)/nseg
REPEATSCOUT_VERSION=1.0.5
REPEATSCOUT_URL=http://www.repeatmasker.org/RepeatScout-1.0.5.tar.gz
REPEATSCOUT_PREFIX_ARG=$(INSTALL_BASE)/repeatscout/$(REPEATSCOUT_VERSION)
RECON_VERSION=1.08
RECON_URL=http://www.repeatmasker.org/RepeatModeler/RECON-1.08.tar.gz
RECON_PREFIX_ARG=$(INSTALL_BASE)/recon/$(RECON_VERSION)
RMASK_VERSION=4-0-9-p2
RMASK_URL=http://www.repeatmasker.org/RepeatMasker-open-$(RMASK_VERSION).tar.gz
RMASK_PREFIX_ARG=$(INSTALL_BASE)/repeatmasker/$(RMASK_VERSION)
RMOD_VERSION=1.0.11
RMOD_URL=http://www.repeatmasker.org/RepeatModeler/RepeatModeler-open-$(RMOD_VERSION).tar.gz
RMOD_PREFIX_ARG=$(INSTALL_BASE)/repeatmodeller/$(RMOD_VERSION)
HMMER3_VERSION=3.2.1
HMMER3_URL=http://eddylab.org/software/hmmer/hmmer-3.2.1.tar.gz
HMMER3_PREFIX_ARG=$(INSTALL_BASE)/hmmer3/$(HMMER3_VERSION)
MMSEQS_TAG=9-d36de
MMSEQS_REPO=https://github.com/soedinglab/MMseqs2.git
MMSEQS_PREFIX_ARG=$(INSTALL_BASE)/mmseqs/$(MMSEQS_TAG)
INFERNAL_VERSION=1.1.2
INFERNAL_URL=http://eddylab.org/infernal/infernal-1.1.2.tar.gz
INFERNAL_PREFIX_ARG=$(INSTALL_BASE)/infernal/$(INFERNAL_VERSION)
ARAGORN_VERSION=1.2.38
ARAGORN_URL=http://130.235.244.92/ARAGORN/Downloads/aragorn1.2.38.tgz
ARAGORN_PREFIX_ARG=$(INSTALL_BASE)/aragorn/$(ARAGORN_VERSION)
VIENNA_VERSION=2.4.13
VIENNA_URL=https://www.tbi.univie.ac.at/RNA/download/sourcecode/2_4_x/ViennaRNA-2.4.13.tar.gz
VIENNA_PREFIX_ARG=$(INSTALL_BASE)/vienna/$(VIENNA_VERSION)
STRUCTRNAFINDER_COMMIT=3d5479b
STRUCTRNAFINDER_REPO=https://github.com/viniciusmaracaja/structRNAfinder.git
STRUCTRNAFINDER_PREFIX_ARG=$(INSTALL_BASE)/structrnafinder/$(STRUCTRNAFINDER_COMMIT)
TRNASCAN_VERSION=2.0.3
TRNASCAN_URL=http://trna.ucsc.edu/software/trnascan-se-2.0.3.tar.gz
TRNASCAN_PREFIX_ARG=$(INSTALL_BASE)/trnascan/$(TRNASCAN_VERSION)
HMMER2_VERSION=2.3.2
HMMER2_URL=http://eddylab.org/software/hmmer/hmmer-2.3.2.tar.gz
HMMER2_PREFIX_ARG=$(INSTALL_BASE)/hmmer2/$(HMMER2_VERSION)
RNAMMER_VERSION=1.2
RNAMMER_PREFIX_ARG=$(INSTALL_BASE)/rnammer/$(RNAMMER_VERSION)
RNAMMER_TAR=sources/rnammer-1.2.src.tar.gz
OCCULTERCUT_VERSION=1.1
OCCULTERCUT_URL=https://downloads.sourceforge.net/project/occultercut/OcculterCut_v1.1.tar.gz
OCCULTERCUT_PREFIX_ARG=$(INSTALL_BASE)/occultercut/$(OCCULTERCUT_VERSION)
MITEFINDER_COMMIT=833754b
MITEFINDER_REPO=https://github.com/screamer/miteFinder.git
MITEFINDER_PREFIX_ARG=$(INSTALL_BASE)/mitefinder/$(MITEFINDER_COMMIT)
EAHELITRON_COMMIT=769ae07
EAHELITRON_REPO=https://github.com/dontkme/EAHelitron.git
EAHELITRON_PREFIX_ARG=$(INSTALL_BASE)/eahelitron/$(EAHELITRON_COMMIT)
VSEARCH_VERSION=2.14.1
VSEARCH_URL=https://github.com/torognes/vsearch/archive/v2.14.1.tar.gz
VSEARCH_PREFIX_ARG=$(INSTALL_BASE)/vsearch/$(VSEARCH_VERSION)
DECIPHER_VERSION=2.16.1
DECIPHER_URL=http://www2.decipher.codes/DECIPHER_2.16.1.tar.gz
DECIPHER_PREFIX_ARG=$(INSTALL_BASE)/decipher/$(DECIPHER_VERSION)
GENERAL=base bedtools genometools python3 gffpal
NONCODING=infernal trnascan occultercut
ALIGNMENT=rmblast vsearch decipher mmseqs
ANNOTATION=repeatmasker eahelitron mitefinder
PROPRIETARY=rnammer
OPEN=$(GENERAL) $(NONCODING) $(ALIGNMENT) $(ANNOTATION)
all: docker/all singularity/all
# Docker targets
docker: docker/pante
docker/all: docker/general docker/alignment docker/annotation docker/noncoding
@echo "WARNING: proprietary software will not be built by default."
@echo "WARNING: call 'make docker/proprietary' explicitly to create them."
docker/general: $(addprefix docker/,$(GENERAL))
docker/alignment: $(addprefix docker/,$(ALIGNMENT))
docker/annotation: $(addprefix docker/,$(ANNOTATION))
docker/noncoding: $(addprefix docker/,$(NONCODING))
# Proprietary software won't be built by default.
docker/proprietary: $(addprefix docker/,$(PROPRIETARY))
# Singularity targets
singularity: singularity/pante.sif
singularity/all: singularity/general singularity/alignment singularity/annotation singularity/noncoding
@echo "WARNING: proprietary software will not be built by default."
@echo "WARNING: call 'make singularity/proprietary' explicitly to create them."
singularity/general: $(addprefix singularity/,$(addsuffix .sif,$(GENERAL)))
singularity/alignment: $(addprefix singularity/,$(addsuffix .sif,$(ALIGNMENT)))
singularity/annotation: $(addprefix singularity/,$(addsuffix .sif,$(ANNOTATION)))
singularity/noncoding: $(addprefix singularity/,$(addsuffix .sif,$(NONCODING)))
# Proprietary software won't be built by default.
singularity/proprietary: $(addprefix singularity/,$(addsuffix .sif,$(PROPRIETARY)))
# Pull containers for dockerhub
dockerpull: dockerpull/pante
dockerpull/all: dockerpull/general dockerpull/alignment dockerpull/annotation dockerpull/noncoding
dockerpull/general: $(addprefix dockerpull/,$(GENERAL))
dockerpull/alignment: $(addprefix dockerpull/,$(ALIGNMENT))
dockerpull/annotation: $(addprefix dockerpull/,$(ANNOTATION))
dockerpull/noncoding: $(addprefix dockerpull/,$(NONCODING))
clean:
docker stop $(shell docker ps -aq) || true
docker rm $(shell docker ps -a -q) || true
docker rmi $(shell docker images -q) || true
singularity cache clean -f
rm -rf -- tmp
rm -rf -- docker
tidy:
# Just removes untagged images to free up space
rm -rf -- tmp
docker image prune -f
# Generic rules
singularity/%.sif: docker/%
@mkdir -p "$(dir $@)"
@mkdir -p tmp tmp/cache
SINGULARITY_TMPDIR="${PWD}/tmp" SINGULARITY_CACHEDIR="${PWD}/tmp/cache" singularity build \
--force \
--tmpdir "${PWD}/tmp" \
"$@" \
"docker-daemon://$(call make_image_name,$(notdir $(basename $@)))"
docker/%.tar.gz: docker/%
@mkdir -p "$(dir $@)"
docker save "$(call make_image_name,$(basename $(basename $@)))" | gzip > $@
dockerpull/%:
docker pull "$(call make_image_name,$(notdir $@))"
@mkdir -p "$(dir $@)"
@touch docker/$(notdir $@)
# Basic tools
docker/base: base.Dockerfile
docker build \
--build-arg DEBIAN_VERSION=$(DEBIAN_VERSION) \
--build-arg MAINTAINER="$(MAINTAINER)" \
--build-arg PIPELINE_VERSION="$(TAG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/python3: python3.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/bedtools: bedtools.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg BEDTOOLS_VERSION="$(BEDTOOLS_VERSION)" \
--build-arg BEDTOOLS_URL="$(BEDTOOLS_URL)" \
--build-arg BEDTOOLS_PREFIX_ARG="$(BEDTOOLS_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/genometools: genometools.Dockerfile docker/base docker/hmmer3
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg GENOMETOOLS_VERSION="$(GENOMETOOLS_VERSION)" \
--build-arg GENOMETOOLS_URL="$(GENOMETOOLS_URL)" \
--build-arg GENOMETOOLS_PREFIX_ARG="$(GENOMETOOLS_PREFIX_ARG)" \
--build-arg HMMER3_IMAGE="$(call make_image_name,hmmer3)" \
--build-arg HMMER3_VERSION="$(HMMER3_VERSION)" \
--build-arg HMMER3_URL="$(HMMER3_URL)" \
--build-arg HMMER3_PREFIX_ARG="$(HMMER3_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/gffpal: gffpal.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg GFFPAL_COMMIT="$(GFFPAL_COMMIT)" \
--build-arg GFFPAL_REPO="$(GFFPAL_REPO)" \
--build-arg GFFPAL_PREFIX_ARG="$(GFFPAL_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
# Aligners
# Only needed for rnammer
docker/hmmer2: hmmer2.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg HMMER2_VERSION="$(HMMER2_VERSION)" \
--build-arg HMMER2_URL="$(HMMER2_URL)" \
--build-arg HMMER2_PREFIX_ARG="$(HMMER2_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/hmmer3: hmmer3.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg HMMER3_VERSION="$(HMMER3_VERSION)" \
--build-arg HMMER3_URL="$(HMMER3_URL)" \
--build-arg HMMER3_PREFIX_ARG="$(HMMER3_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/mmseqs: mmseqs.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg MMSEQS_TAG="$(MMSEQS_TAG)" \
--build-arg MMSEQS_REPO="$(MMSEQS_REPO)" \
--build-arg MMSEQS_PREFIX_ARG="$(MMSEQS_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/vsearch: vsearch.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg VSEARCH_VERSION="$(VSEARCH_VERSION)" \
--build-arg VSEARCH_URL="$(VSEARCH_URL)" \
--build-arg VSEARCH_PREFIX_ARG="$(VSEARCH_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/decipher: decipher.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg DECIPHER_VERSION="$(DECIPHER_VERSION)" \
--build-arg DECIPHER_URL="$(DECIPHER_URL)" \
--build-arg DECIPHER_PREFIX_ARG="$(DECIPHER_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
# Repeat finding stuff
docker/mitefinder: mitefinder.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg MITEFINDER_COMMIT="$(MITEFINDER_COMMIT)" \
--build-arg MITEFINDER_REPO="$(MITEFINDER_REPO)" \
--build-arg MITEFINDER_PREFIX_ARG="$(MITEFINDER_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/eahelitron: eahelitron.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg EAHELITRON_COMMIT="$(EAHELITRON_COMMIT)" \
--build-arg EAHELITRON_REPO="$(EAHELITRON_REPO)" \
--build-arg EAHELITRON_PREFIX_ARG="$(EAHELITRON_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/rmblast: rmblast.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg RMBLAST_VERSION="$(RMBLAST_VERSION)" \
--build-arg RMBLAST_URL="$(RMBLAST_URL)" \
--build-arg RMBLAST_PATCH_URL="$(RMBLAST_PATCH_URL)" \
--build-arg RMBLAST_PREFIX_ARG="$(RMBLAST_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/repeatmasker: repeatmasker.Dockerfile docker/base docker/rmblast
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg RMBLAST_IMAGE="$(call make_image_name,rmblast)" \
--build-arg RMBLAST_VERSION="$(RMBLAST_VERSION)" \
--build-arg RMBLAST_PREFIX_ARG="$(RMBLAST_PREFIX_ARG)" \
--build-arg TRF_VERSION="$(TRF_VERSION)" \
--build-arg TRF_URL="$(TRF_URL)" \
--build-arg TRF_PREFIX_ARG="$(TRF_PREFIX_ARG)" \
--build-arg NSEG_URL="$(NSEG_URL)" \
--build-arg NSEG_PREFIX_ARG="$(NSEG_PREFIX_ARG)" \
--build-arg REPEATSCOUT_VERSION="$(REPEATSCOUT_VERSION)" \
--build-arg REPEATSCOUT_URL="$(REPEATSCOUT_URL)" \
--build-arg REPEATSCOUT_PREFIX_ARG="$(REPEATSCOUT_PREFIX_ARG)" \
--build-arg RECON_VERSION="$(RECON_VERSION)" \
--build-arg RECON_URL="$(RECON_URL)" \
--build-arg RECON_PREFIX_ARG="$(RECON_PREFIX_ARG)" \
--build-arg RMASK_VERSION="$(RMASK_VERSION)" \
--build-arg RMASK_URL="$(RMASK_URL)" \
--build-arg RMASK_PREFIX_ARG="$(RMASK_PREFIX_ARG)" \
--build-arg RMOD_VERSION="$(RMOD_VERSION)" \
--build-arg RMOD_URL="$(RMOD_URL)" \
--build-arg RMOD_PREFIX_ARG="$(RMOD_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
# non-coding rna stuff
docker/aragorn: aragorn.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg ARAGORN_VERSION="$(ARAGORN_VERSION)" \
--build-arg ARAGORN_URL="$(ARAGORN_URL)" \
--build-arg ARAGORN_PREFIX_ARG="$(ARAGORN_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/infernal: infernal.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg INFERNAL_VERSION="$(INFERNAL_VERSION)" \
--build-arg INFERNAL_URL="$(INFERNAL_URL)" \
--build-arg INFERNAL_PREFIX_ARG="$(INFERNAL_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/structrnafinder: structrnafinder.Dockerfile docker/base docker/infernal
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg STRUCTRNAFINDER_COMMIT="$(STRUCTRNAFINDER_COMMIT)" \
--build-arg STRUCTRNAFINDER_REPO="$(STRUCTRNAFINDER_REPO)" \
--build-arg STRUCTRNAFINDER_PREFIX_ARG="$(STRUCTRNAFINDER_PREFIX_ARG)" \
--build-arg VIENNA_VERSION="$(VIENNA_VERSION)" \
--build-arg VIENNA_URL="$(VIENNA_URL)" \
--build-arg VIENNA_PREFIX_ARG="$(VIENNA_PREFIX_ARG)" \
--build-arg INFERNAL_IMAGE="$(call make_image_name,infernal)" \
--build-arg INFERNAL_VERSION="$(INFERNAL_VERSION)" \
--build-arg INFERNAL_PREFIX_ARG="$(INFERNAL_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/trnascan: trnascan.Dockerfile docker/base docker/infernal
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg TRNASCAN_VERSION="$(TRNASCAN_VERSION)" \
--build-arg TRNASCAN_URL="$(TRNASCAN_URL)" \
--build-arg TRNASCAN_PREFIX_ARG="$(TRNASCAN_PREFIX_ARG)" \
--build-arg INFERNAL_IMAGE="$(call make_image_name,infernal)" \
--build-arg INFERNAL_VERSION="$(INFERNAL_VERSION)" \
--build-arg INFERNAL_PREFIX_ARG="$(INFERNAL_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/rnammer: rnammer.Dockerfile docker/base docker/hmmer2
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg RNAMMER_VERSION="$(RNAMMER_VERSION)" \
--build-arg RNAMMER_TAR="$(RNAMMER_TAR)" \
--build-arg RNAMMER_PREFIX_ARG="$(RNAMMER_PREFIX_ARG)" \
--build-arg HMMER2_IMAGE="$(call make_image_name,hmmer2)" \
--build-arg HMMER2_VERSION="$(HMMER2_VERSION)" \
--build-arg HMMER2_PREFIX_ARG="$(HMMER2_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
# Other stuff
docker/occultercut: occultercut.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg OCCULTERCUT_VERSION="$(OCCULTERCUT_VERSION)" \
--build-arg OCCULTERCUT_URL="$(OCCULTERCUT_URL)" \
--build-arg OCCULTERCUT_PREFIX_ARG="$(OCCULTERCUT_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
# THE MONOLITH(s)
docker/pante: docker/bedtools docker/decipher docker/eahelitron docker/genometools
docker/pante: docker/gffpal docker/hmmer3 docker/infernal docker/mitefinder
docker/pante: docker/mmseqs docker/occultercut docker/python3 docker/repeatmasker
docker/pante: docker/rmblast docker/trnascan docker/vsearch
docker/pante: pante.Dockerfile docker/base
docker build \
--build-arg IMAGE="$(BASE_IMAGE)" \
--build-arg BEDTOOLS_IMAGE="$(call make_image_name,bedtools)" \
--build-arg BEDTOOLS_VERSION="$(BEDTOOLS_VERSION)" \
--build-arg BEDTOOLS_PREFIX_ARG="$(BEDTOOLS_PREFIX_ARG)" \
--build-arg DECIPHER_IMAGE="$(call make_image_name,decipher)" \
--build-arg DECIPHER_VERSION="$(DECIPHER_VERSION)" \
--build-arg DECIPHER_PREFIX_ARG="$(DECIPHER_PREFIX_ARG)" \
--build-arg EAHELITRON_IMAGE="$(call make_image_name,eahelitron)" \
--build-arg EAHELITRON_COMMIT="$(EAHELITRON_COMMIT)" \
--build-arg EAHELITRON_PREFIX_ARG="$(EAHELITRON_PREFIX_ARG)" \
--build-arg GENOMETOOLS_IMAGE="$(call make_image_name,genometools)" \
--build-arg GENOMETOOLS_VERSION="$(GENOMETOOLS_VERSION)" \
--build-arg GENOMETOOLS_PREFIX_ARG="$(GENOMETOOLS_PREFIX_ARG)" \
--build-arg GFFPAL_IMAGE="$(call make_image_name,gffpal)" \
--build-arg GFFPAL_COMMIT="$(GFFPAL_COMMIT)" \
--build-arg GFFPAL_PREFIX_ARG="$(GFFPAL_PREFIX_ARG)" \
--build-arg HMMER3_IMAGE="$(call make_image_name,hmmer3)" \
--build-arg HMMER3_VERSION="$(HMMER3_VERSION)" \
--build-arg HMMER3_PREFIX_ARG="$(HMMER3_PREFIX_ARG)" \
--build-arg INFERNAL_IMAGE="$(call make_image_name,infernal)" \
--build-arg INFERNAL_VERSION="$(INFERNAL_VERSION)" \
--build-arg INFERNAL_PREFIX_ARG="$(INFERNAL_PREFIX_ARG)" \
--build-arg MITEFINDER_IMAGE="$(call make_image_name,mitefinder)" \
--build-arg MITEFINDER_COMMIT="$(MITEFINDER_COMMIT)" \
--build-arg MITEFINDER_PREFIX_ARG="$(MITEFINDER_PREFIX_ARG)" \
--build-arg MMSEQS_IMAGE="$(call make_image_name,mmseqs)" \
--build-arg MMSEQS_TAG="$(MMSEQS_TAG)" \
--build-arg MMSEQS_PREFIX_ARG="$(MMSEQS_PREFIX_ARG)" \
--build-arg OCCULTERCUT_IMAGE="$(call make_image_name,occultercut)" \
--build-arg OCCULTERCUT_VERSION="$(OCCULTERCUT_VERSION)" \
--build-arg OCCULTERCUT_PREFIX_ARG="$(OCCULTERCUT_PREFIX_ARG)" \
--build-arg PYTHON3_IMAGE="$(call make_image_name,python3)" \
--build-arg REPEATMASKER_IMAGE="$(call make_image_name,repeatmasker)" \
--build-arg TRF_VERSION="$(TRF_VERSION)" \
--build-arg TRF_PREFIX_ARG="$(TRF_PREFIX_ARG)" \
--build-arg NSEG_PREFIX_ARG="$(NSEG_PREFIX_ARG)" \
--build-arg REPEATSCOUT_VERSION="$(REPEATSCOUT_VERSION)" \
--build-arg REPEATSCOUT_PREFIX_ARG="$(REPEATSCOUT_PREFIX_ARG)" \
--build-arg RECON_VERSION="$(RECON_VERSION)" \
--build-arg RECON_PREFIX_ARG="$(RECON_PREFIX_ARG)" \
--build-arg RMASK_VERSION="$(RMASK_VERSION)" \
--build-arg RMASK_PREFIX_ARG="$(RMASK_PREFIX_ARG)" \
--build-arg RMOD_VERSION="$(RMOD_VERSION)" \
--build-arg RMOD_PREFIX_ARG="$(RMOD_PREFIX_ARG)" \
--build-arg RM_LIB_ARG="$(RM_LIB_ARG)" \
--build-arg RMBLAST_IMAGE="$(call make_image_name,rmblast)" \
--build-arg RMBLAST_VERSION="$(RMBLAST_VERSION)" \
--build-arg RMBLAST_PREFIX_ARG="$(RMBLAST_PREFIX_ARG)" \
--build-arg TRNASCAN_IMAGE="$(call make_image_name,trnascan)" \
--build-arg TRNASCAN_VERSION="$(TRNASCAN_VERSION)" \
--build-arg TRNASCAN_PREFIX_ARG="$(TRNASCAN_PREFIX_ARG)" \
--build-arg VSEARCH_IMAGE="$(call make_image_name,vsearch)" \
--build-arg VSEARCH_VERSION="$(VSEARCH_VERSION)" \
--build-arg VSEARCH_PREFIX_ARG="$(VSEARCH_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@
docker/pante-plus: pante-plus.Dockerfile docker/pante docker/hmmer2 docker/rnammer
docker build \
--build-arg PANTE_IMAGE="$(call make_image_name,pante)" \
--build-arg HMMER2_IMAGE="$(call make_image_name,hmmer2)" \
--build-arg HMMER2_VERSION="$(HMMER2_VERSION)" \
--build-arg HMMER2_PREFIX_ARG="$(HMMER2_PREFIX_ARG)" \
--build-arg RNAMMER_IMAGE="$(call make_image_name,rnammer)" \
--build-arg RNAMMER_VERSION="$(RNAMMER_VERSION)" \
--build-arg RNAMMER_PREFIX_ARG="$(RNAMMER_PREFIX_ARG)" \
--file $< \
-t "$(call make_image_name,$@)" \
.
@mkdir -p "$(dir $@)"
@touch $@