Skip to content

Commit

Permalink
make snakefile configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Jun 20, 2024
1 parent b1ef78d commit e531930
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/depiction_targeted_preproc/workflow/snakemake_invoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

@dataclass
class SnakemakeInvoke:
snakefile_name: str = "Snakefile"
use_subprocess: bool = True
continue_on_error: bool = False

Expand All @@ -20,7 +21,7 @@ def invoke(self, work_dir: Path, result_files: list[Path], n_cores: int = 1) ->

@property
def snakefile_path(self) -> Path:
return Path(__file__).parents[1] / "workflow" / "experimental.smk"
return Path(__file__).parents[1] / "workflow" / self.snakefile_name

@property
def workflow_dir(self) -> Path:
Expand Down

0 comments on commit e531930

Please sign in to comment.