Debian Codegraph @

applications/bed/starch/test/original_data/makefile

raw
1 #
2 # makefile
3 #
4
5 TMP = /tmp
6 USER := $(shell whoami)
7 SRC = src
8 DATADIR := ${TMP}/${USER}/starch_regression_test/data
9
10 # 1M element file
11 ELEMENTS = 1000000
12
13 all: random.bed
14
15 random.bed:
16 @echo "[STARCH] making ${ELEMENTS}-element, randomly-generated BED file..."
17 @mkdir -p ${DATADIR}
18 @test -s ${DATADIR}/$@ || ${SRC}/make_unsorted_random_bed_file.sh --elements=${ELEMENTS} | ${SRC}/jumble_duplicate_coords.pl | sort-bed - > ${DATADIR}/$@
19
20 #
21 # tip: one can use
22 #
23 # $ awk '{key=$1":"$2":"$3; if (a[key]) { print "dup"; }}' ${DATADIR}/random.bed
24 #
25 # to verify there are no duplicates
26 #
27
28 clean:
29 @echo "[STARCH] removing randomly-generated BED data (if present)..."
30 @rm -rf ${DATADIR}/random.bed