-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSnakefile
31 lines (27 loc) · 1.01 KB
/
Snakefile
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
rule all:
input:
expand(["../temp_data/tmp/figures/{batch_no}_mp_{freq}.png"], batch_no = [1], freq = "5T")
rule get_analysis_framework:
output: "scripts/make_midprices.py","scripts/plot_midprice.py"
shell: "git clone https://github.com/mesalas/SimAnalysis.git scripts"
rule midprice_data:
input:
"{path}/{symbol}_NYSE@0_Matching-OrderBook.csv" #,"scripts/BarsFromTrades.py"
output:
"{path}/reduced_data/{no}_{symbol}_mp_{freq}.csv.gz"
conda:
"envs/deps.yaml"
shell:
"python scripts/make_midprices.py {input} {wildcards.freq} {output}"
rule midprice_plots:
input:
#script = "scripts/make_midprices.py",
"{path}/reduced_data/{no}_ABC_mp_{freq}.csv.gz",
"{path}/reduced_data/{no}_DEF_mp_{freq}.csv.gz",
"{path}/reduced_data/{no}_GHI_mp_{freq}.csv.gz"
output:
"{path}/figures/{no}_mp_{freq}.png"
conda:
"envs/deps.yaml"
shell:
"python scripts/plot_midprice.py {output} {input}"