forked from ricomnl/bioinformatics-pipeline-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 744 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 744 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
COUNT := data/KLF4.count.tsv data/MYC.count.tsv \
data/PO5F1.count.tsv data/SOX2.count.tsv
PLOT := data/KLF4.plot.png data/MYC.plot.png \
data/PO5F1.plot.png data/SOX2.plot.png
# Dummy targets
all: results.tgz
clean:
rm -rf data/* results.tgz
.PHONY: all clean
# Analysis and plotting
data/%.peptides.txt: bin/01_digest_protein.py fasta/%.fasta
$^ $@
data/%.count.tsv: bin/02_count_amino_acids.py fasta/%.fasta data/%.peptides.txt
$^ $@
data/%.plot.png: bin/03a_plot_count.py data/%.count.tsv
$^ $@
data/protein_report.tsv: bin/03b_get_report.py ${COUNT}
$^ --output_file=$@
# Archive for sharing
results.tgz: ${PLOT} data/protein_report.tsv
rm -rf results
mkdir results
cp $^ results/
tar -czf $@ results
rm -r results