Skip to content

Commit

Permalink
helper script to run the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Jul 23, 2024
1 parent b29275c commit 73f583e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/depiction_cluster_sandbox/run_cluster_sandbox.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
from pathlib import Path

from depiction_targeted_preproc.workflow.snakemake_invoke import SnakemakeInvoke

work_dir = Path(__file__).parent / "data-sandbox"


def available_samples() -> list[str]:
return [p.name for p in (work_dir / "raw").glob("*")]


def main():
pass
samples = available_samples()
snakefile_path = Path(__file__).parent / "workflow" / "Snakefile"
snakemake = SnakemakeInvoke(continue_on_error=False, snakefile_name=snakefile_path)
snakemake.invoke(
work_dir=work_dir, result_files=[work_dir / sample / "cluster_kmeans_default.hdf5" for sample in samples]
)


if __name__ == "__main__":
Expand Down

0 comments on commit 73f583e

Please sign in to comment.