-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (21 loc) · 867 Bytes
/
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
STRUCT_SRC=$(wildcard structures/*.sdf)
LIGPREP_FILES=$(patsubst structures/%.sdf, ligprep/%.sdf, $(STRUCT_SRC))
PROP_FILES=$(patsubst structures/%.sdf, properties/%.csv, $(STRUCT_SRC))
SCHRODINGER=/opt/schrodinger/suites2018-1
LIGPREP_BIN=$(SCHRODINGER)/ligprep
LIGPREP_OPTS=-inp ../../ligprep.inp -WAIT -NJOBS 4 -HOST localhost:2 -LOCAL
.PHONY : all wash_molecules calc_props figures
all : calc_props wash_molecules
wash_molecules : $(LIGPREP_FILES)
ligprep/%.sdf : structures/%.sdf
mkdir -p ligprep/$*-job
cd ligprep/$*-job && $(LIGPREP_BIN) $(LIGPREP_OPTS) -isd ../../$< -osd ../../$@ -TMPDIR .
calc_props : $(PROP_FILES)
properties/%.csv : ligprep/%.sdf calc_props.py
python calc_props.py -i $< -o properties -c
figures : $(PROP_FILES) plot_properties.R
Rscript plot_properties.R
test:
nosetests tests
clean :
rm properties/*.csv ligprep/*.sdf *.log