forked from jts/nanocorrect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnanocorrect-overlap.make
More file actions
executable file
·49 lines (41 loc) · 919 Bytes
/
nanocorrect-overlap.make
File metadata and controls
executable file
·49 lines (41 loc) · 919 Bytes
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
SHELL=/bin/bash -o pipefail
# Get the path to the Makefile
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
#
# A pipeline to run daligner on a set of reads
#
# do not leave failed files around
.DELETE_ON_ERROR:
# Our target is the local alignments file that daligner generates
all: $(NAME).las
#
# Preprocess reads to format them for dazzler
#
$(NAME).pp.fasta: $(INPUT)
$(ROOT_DIR)/nanocorrect-preprocess.pl $(INPUT) > $@
#
# Make the dazzler DB, split and dust it
#
$(NAME).db: $(NAME).pp.fasta
fasta2DB $(NAME) $^
DBsplit -s50 $(NAME)
DBdust $(NAME)
#
# Generate the commands to run DAligner
#
HPCcommands.txt: $(NAME).db
HPCdaligner -t5 -mdust $(NAME) > $@
#
# Run DAligner to generate the local alignments and cat all temp files into one
#
$(NAME).las: HPCcommands.txt
/bin/bash $^
LAcat $(NAME) > $@
rm $(NAME).*.las
#
#
#
clean:
rm $(NAME).pp.fasta
DBrm $(NAME)
rm $(NAME)