-
Notifications
You must be signed in to change notification settings - Fork 2
/
Snakefile
33 lines (30 loc) · 1.37 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
31
32
33
configfile: "config.json"
rule get_ght_data:
params:
download_url = config["data_download_url"]
output:
output_file = "data/commits_by_org.feather"
shell: "python src/github_analysis/make_report.py -du {params.download_url} -of {output.output_file}"
rule run_analysis:
input:
data_path = "data/commits_by_org.feather"
output:
results_path = directory("results/")
params:
python_hash_seed = config["python_hash_seed"],
n_workers = config["n_workers"],
n_projects = config["n_projects"],
min_commits = config["min_commits"],
min_count = config["min_count"],
n_personas = config["n_personas"],
n_neurons = config["n_neurons"],
n_iter = config["n_iter"],
random_state = config["random_state"]
shell:
"PYTHONHASHSEED={params.python_hash_seed} python src/github_analysis/main.py -dp {input.data_path} -rp {output.results_path} -nw {params.n_workers} -np {params.n_projects} -mc {params.min_commits} -mcount {params.min_count} -nps {params.n_personas} -nn {params.n_neurons} -ni {params.n_iter} -rs {params.random_state}"
rule generate_images:
input:
data_path="data/commits_by_org.feather",
embedding_path="results/embeddings.csv"
shell:
"python src/github_analysis/make_report.py -dp {input.data_path} -ep {input.embedding_path}"