Skip to content

Commit

Permalink
add gitignore and Snakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
rneher committed Apr 10, 2021
1 parent 608ccd4 commit 13298c9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
auspice/*
logs/*
benchmarks/*
results/*
.snakemake
downloads
31 changes: 31 additions & 0 deletions Snakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import datetime

if "builds" in config:
rule all:
input:
expand("auspice/ncov_{build_name}.json", build_name=config["builds"].keys())

# Include rules to handle primary build logic from multiple sequence alignment
# to output of auspice JSONs for a default build.
include: "workflow/snakemake_rules/core.smk"

if "build_type" in config and config["build_type"]=="reference_build":
include: "workflow/snakemake_rules/reference_build.smk"

rule clean:
message: "Removing directories: {params}"
params:
"results",
"auspice"
shell:
"rm -rfv {params}"

rule clean_all:
message: "Removing directories: {params}"
params:
"results",
"auspice",
"downloads"
shell:
"rm -rfv {params}"

0 comments on commit 13298c9

Please sign in to comment.