Skip to content

Commit

Permalink
refactor: get log dir paths from config
Browse files Browse the repository at this point in the history
  • Loading branch information
ninsch3000 committed Sep 6, 2023
1 parent 6a37a8a commit 0042a78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/test_htsinfer_workflow/test.local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ snakemake \
--config outdir="results" \
samples="../input_files/htsinfer_samples.tsv" \
samples_out="samples_htsinfer.tsv" \
log_dir="logs" \
cluster_log_dir="logs/cluster_log" \
--notemp \
--keep-incomplete

4 changes: 2 additions & 2 deletions workflow/rules/htsinfer.smk
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ samples = pd.read_csv(
config["samples"], header=0, index_col=0, sep="\t", keep_default_na=False
)
OUT_DIR = config["outdir"]
LOG_DIR = os.path.join(OUT_DIR, "logs")
CLUSTER_LOG = os.path.join(LOG_DIR, "cluster_logs")
LOG_DIR = config["log_dir"]
CLUSTER_LOG = config["cluster_log_dir"]
# Write inferred params into new sample table.
SAMPLES_OUT = os.path.join(OUT_DIR, config["samples_out"])

Expand Down

0 comments on commit 0042a78

Please sign in to comment.