Skip to content

Commit

Permalink
BugFix: paths for snakedeploy (fix: #147)
Browse files Browse the repository at this point in the history
- "function.sh" script path:
  when running directly from github, caching path logic is different
  and causes a 404 when run from main Snakefile
- cache input that could be fetched from resources/ gene GFF
  • Loading branch information
DrYak committed Jul 26, 2023
1 parent 8518546 commit a901a80
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
7 changes: 0 additions & 7 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ LOGGER.info("VPIPE_BASEDIR = %s", VPIPE_BASEDIR)
include: "rules/common.smk"


functions = cachepath(
"scripts/functions.sh",
executable=True,
localsource=True,
)


# DUMMY RULES
rule all:
input:
Expand Down
11 changes: 11 additions & 0 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -948,3 +948,14 @@ def temp_prefix(p):

def temp_with_prefix(p):
return temp(temp_prefix(p))


###############
# Globals #
###############

functions = cachepath(
"../scripts/functions.sh",
executable=True,
localsource=True,
)
2 changes: 1 addition & 1 deletion workflow/rules/consensus.smk
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ rule frameshift_deletions_checks:
BAM=alignment_wildcard,
#REF_majority_dels="{dataset}/references/ref_majority_dels.fasta",
REF_majority_dels="{dataset}/references/consensus.bcftools.fasta",
GENES_GFF=(config.input["genes_gff"] if config.input["genes_gff"] else []),
GENES_GFF=(cachepath(config.input["genes_gff"]) if config.input["genes_gff"] else []),
output:
FRAMESHIFT_DEL_CHECK_TSV="{dataset}/references/frameshift_deletions_check.tsv",
params:
Expand Down

0 comments on commit a901a80

Please sign in to comment.