Skip to content

Commit

Permalink
Correct variable name for cluster filename wildcards. Fixes #46
Browse files Browse the repository at this point in the history
The variable name `fa_map` was erroneously carried from a previous iteration of the code; the variable name was changed to `FA_MAP` but references to `fa_map` had not all been replaced in the cluster workflow. The incorrect references have been corrected.
  • Loading branch information
christinehc committed Apr 5, 2022
1 parent ce2e92a commit 649fecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snekmer/rules/cluster.smk
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ use rule unzip from process_input with:
# read and process parameters from config
use rule preprocess from process_input with:
input:
fasta=lambda wildcards: join("input", f"{wildcards.nb}.{fa_map[wildcards.nb]}"),
fasta=lambda wildcards: join("input", f"{wildcards.nb}.{FA_MAP[wildcards.nb]}"),
output:
data=join(out_dir, "processed", "full", "{nb}.json"),
desc=join(out_dir, "processed", "full", "{nb}_description.csv"),
Expand All @@ -124,7 +124,7 @@ use rule vectorize_full from kmerize with:
input:
kmers=join(out_dir, "labels", "full", "{nb}.txt"),
params=join(out_dir, "processed", "{nb}.json"),
fasta=lambda wildcards: join("input", f"{wildcards.nb}.{fa_map[wildcards.nb]}"),
fasta=lambda wildcards: join("input", f"{wildcards.nb}.{FA_MAP[wildcards.nb]}"),
log:
join(out_dir, "features", "log", "{nb}.log"),
output:
Expand Down

0 comments on commit 649fecb

Please sign in to comment.