Skip to content

Commit

Permalink
🎨 rename snakemake workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma committed Jan 29, 2024
1 parent 798d594 commit a6f7f52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion snk/cli/workflow.py → snk/cli/snakemake_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import os


def create_workflow(
def create_snakemake_workflow(
snakefile,
cache=None,
lint=None,
Expand Down
4 changes: 2 additions & 2 deletions snk/cli/subcommands/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import typer

from snk.cli.dynamic_typer import DynamicTyper
from snk.cli.workflow import create_workflow
from snk.cli.snakemake_workflow import create_snakemake_workflow
from snk.workflow import Workflow
from rich.console import Console
from rich.syntax import Syntax
Expand All @@ -28,7 +28,7 @@ def __init__(
self.snakemake_config = snakemake_config
self.snakefile = snakefile
self.configfile = get_config_from_workflow_dir(self.workflow.path)
self.snakemake_workflow = create_workflow(
self.snakemake_workflow = create_snakemake_workflow(
self.snakefile,
config=self.snakemake_config,
configfiles=[self.configfile] if self.configfile else None,
Expand Down
4 changes: 2 additions & 2 deletions snk/cli/subcommands/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import typer

from snk.cli.dynamic_typer import DynamicTyper
from snk.cli.workflow import create_workflow
from snk.cli.snakemake_workflow import create_snakemake_workflow
from snk.workflow import Workflow
from rich.console import Console
from rich.syntax import Syntax
Expand Down Expand Up @@ -117,7 +117,7 @@ def run(
cmd = [executor, str(script_path)] + args
if env:
env_path = self._get_conda_env_path(env)
workflow = create_workflow(
workflow = create_snakemake_workflow(
self.snakefile,
config=self.snakemake_config,
configfiles=[self.configfile] if self.configfile else None,
Expand Down

0 comments on commit a6f7f52

Please sign in to comment.