Skip to content

Commit

Permalink
Merge pull request #10 from snakemake-workflows/cleanup-scenarios
Browse files Browse the repository at this point in the history
fix: move scenarios into `workflow/resources`
  • Loading branch information
tedil authored May 12, 2023
2 parents 9d44078 + c0472f8 commit ccd556a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 62 deletions.
59 changes: 0 additions & 59 deletions resources/report-table-formatter.js

This file was deleted.

12 changes: 9 additions & 3 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,17 @@ def scenario_name(wildcards):
def get_scenario(wildcards):
scenario = scenario_name(wildcards)
if scenario == "nanopore_only":
return "resources/scenarios/nanopore_circle_scenario.yaml"
return workflow.source_path(
"../resources/scenarios/nanopore_circle_scenario.yaml"
)
elif scenario == "illumina_only":
return "resources/scenarios/illumina_circle_scenario.yaml"
return workflow.source_path(
"../resources/scenarios/illumina_circle_scenario.yaml"
)
elif scenario == "nanopore_with_illumina_support":
return "resources/scenarios/nanopore_illumina_joint_circle_scenario.yaml"
return workflow.source_path(
"../resources/scenarios/nanopore_illumina_joint_circle_scenario.yaml"
)
else:
raise ValueError(f"Unknown scenario: {scenario}")

Expand Down

0 comments on commit ccd556a

Please sign in to comment.