-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
50 lines (40 loc) · 1.94 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
.PHONY: all parameters pipelines analysis results visualization help
PYTHON ?= python
all: parameters pipelines analysis results visualization
help:
@echo "Please use 'make <target>' where <target> is one of:"
@echo " all to run everything"
@echo " parameters to generate processing parameters for the pipelines"
@echo " pipelines to run processing pipelines for all parameter combinations"
@echo " analysis to run statistical analyses on pipeline outputs"
@echo " results to aggregate analysis outputs + generate some results files"
@echo " visualization to generate the visualizations + figures from the analyses"
@echo " manuscript to compile a PDF from the manuscript TeX files"
@echo " doc to create a Jupyter Book of the documentation / walkthrough"
parameters:
$(PYTHON) scripts/generate_parameters.py
pipelines: parameters
$(PYTHON) scripts/batch_pipeline.py --n_jobs 373248 --atlas dk 0
$(PYTHON) scripts/batch_pipeline.py --n_jobs 373248 --atlas dksurf 0
analysis: pipelines
$(PYTHON) scripts/batch_analysis.py --n_jobs 373248 --atlas dk 0
$(PYTHON) scripts/batch_analysis.py --n_jobs 373248 --atlas dksurf 0
results: analysis
$(PYTHON) scripts/aggregate_analyses.py
$(PYTHON) scripts/run_literature_pipelines.py
$(PYTHON) scripts/compute_parameter_impact.py
visualization: results
$(PYTHON) scripts/visualization.py
$(PYTHON) scripts/visualization_literature.py
manuscript:
@echo "Generating PDF with pdflatex + bibtex"
@cd manuscript && \
rm -f main.pdf && \
pdflatex --interaction=nonstopmode main > /dev/null && \
bibtex main > /dev/null && \
pdflatex --interaction=nonstopmode main > /dev/null && \
pdflatex --interaction=nonstopmode main > /dev/null && \
rm -f main.aux main.bbl main.blg main.log main.out mainNotes.bib main.synctex.gz
@echo "Check ./manuscript/main.pdf for generated file"
doc:
@cd walkthrough && make clean html