-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
67 lines (57 loc) · 2.39 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
SHELL=/bin/bash
# Analysis version
VERSION="7.0"
all: indiv_enrichment similarity construction analysis inf-vs-uninf hslm-vs-hstc
clean:
rm -r cache
indiv_enrichment:
echo "---------- Processing Individual Network Enrichment Results ----------"; \
params="list(version=\"${VERSION}\")"; \
cmd="Rscript -e 'rmarkdown::render(\"01-individual-network-enrichment.Rmd\", params=$$params)'"; \
echo $$cmd; \
#eval $$cmd; \
similarity:
for rmd in settings/${VERSION}/individual-nets/*.Rmd; do \
echo "---------- Processing $$rmd ----------"; \
title=`grep title $$rmd | grep -o "\".*\""`; \
params="list(settings=\"$$rmd\", title=$$title, version=\"${VERSION}\")"; \
cmd="Rscript -e 'rmarkdown::render(\"02-individual-network-similarity.Rmd\", params=$$params)'"; \
echo $$cmd; \
#eval $$cmd; \
done
construction:
for rmd in settings/${VERSION}/consensus-nets/*.Rmd; do \
echo "---------- Processing $$rmd ----------"; \
title=`grep title $$rmd | grep -o "\".*\""`; \
params="list(settings=\"$$rmd\", title=$$title, version=\"${VERSION}\")"; \
cmd="Rscript -e 'rmarkdown::render(\"03-consensus-network-construction.Rmd\", params=$$params)'"; \
echo $$cmd; \
#eval $$cmd; \
done
analysis:
for rmd in settings/${VERSION}/consensus-nets/*.Rmd; do \
echo "---------- Processing $$rmd ----------"; \
title=`grep title $$rmd | grep -o "\".*\""`; \
title=$${title/Construction/Results} ; \
params="list(settings=\"$$rmd\", title=$$title, version=\"${VERSION}\")"; \
cmd="Rscript -e 'rmarkdown::render(\"04-consensus-network-analysis.Rmd\", params=$$params)'"; \
echo $$cmd; \
#eval $$cmd; \
done
inf-vs-uninf:
for rmd in settings/${VERSION}/difference-nets/*inf-vs-uninf.Rmd; do \
echo "---------- Processing $$rmd ----------"; \
title=`grep title $$rmd | head -n1 | grep -o "\".*\""`; \
params="list(settings=\"$$rmd\", title=$$title, version=\"${VERSION}\")"; \
cmd="Rscript -e 'rmarkdown::render(\"05-infected-vs-uninfected.Rmd\", params=$$params)'"; \
echo $$cmd; \
#eval $$cmd; \
done
hslm-vs-hstc:
rmd="settings/${VERSION}/difference-nets/hslm-vs-hstc.Rmd"; \
echo "---------- Processing $$rmd ----------"; \
title=`grep title $$rmd | head -n1 | grep -o "\".*\""`; \
params="list(settings=\"$$rmd\", title=$$title, version=\"${VERSION}\")"; \
cmd="Rscript -e 'rmarkdown::render(\"06-conserved-signature-of-infection.Rmd\", params=$$params)'"; \
echo $$cmd; \
#eval $$cmd; \