Skip to content

Commit

Permalink
simplify code, add fs text
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimens committed Jun 7, 2024
1 parent ab63aac commit f6fa4d3
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/harpy/hpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def generic():
Using a scheduler requires installing an additional Snakemake plugin. If you haven't already, install the `generic-cluster` plugin with:
```bash
mamba install -c bioconda -c conda-forge snakemake-executor-plugin-cluster-generic
mamba install bioconda::snakemake-executor-plugin-cluster-generic
```
"""))
with open(outfile, "w", encoding = "utf-8") as yml:
Expand All @@ -59,6 +59,7 @@ def generic():
yml.write("# [optional] command for sidecar process\n")
yml.write("cluster-generic-sidecar-cmd VALUE\n")
yml.write("\n# This section is for advanced copying into a scratch directory #\n")
yml.write("## requires snakemake-storage-plugin-fs, which can be installed via conda\n")
yml.write("#default-storage-provider: fs\n")
yml.write("#local-storage-prefix: /home2/$USER\n")
yml.write("#shared-fs-usage:\n")
Expand All @@ -78,7 +79,7 @@ def lsf():
Using a scheduler requires installing an additional Snakemake plugin. If you haven't already, install the `lsf` plugin with:
```bash
mamba install -c bioconda -c conda-forge snakemake-executor-plugin-lsf
mamba install bioconda::snakemake-executor-plugin-lsf
```
"""))
with open(outfile, "w", encoding = "utf-8") as yml:
Expand All @@ -94,6 +95,7 @@ def lsf():
yml.write("latency-wait: 60\n")
yml.write("retries: 1\n")
yml.write("\n# This section is for advanced copying into a scratch directory #\n")
yml.write("## requires snakemake-storage-plugin-fs, which can be installed via conda\n")
yml.write("#default-storage-provider: fs\n")
yml.write("#local-storage-prefix: /home2/$USER\n")
yml.write("#shared-fs-usage:\n")
Expand All @@ -113,7 +115,7 @@ def htcondor():
Using a scheduler requires installing an additional Snakemake plugin. If you haven't already, install the `htcondor` plugin with:
```bash
mamba install -c bioconda -c conda-forge snakemake-executor-plugin-htcondor
mamba install bioconda::snakemake-executor-plugin-htcondor
```
"""))
with open(outfile, "w", encoding = "utf-8") as yml:
Expand All @@ -128,6 +130,7 @@ def htcondor():
yml.write("latency-wait: 60\n")
yml.write("retries: 1\n")
yml.write("\n# This section is for advanced copying into a scratch directory #\n")
yml.write("## requires snakemake-storage-plugin-fs, which can be installed via conda\n")
yml.write("#default-storage-provider: fs\n")
yml.write("#local-storage-prefix: /home2/$USER\n")
yml.write("#shared-fs-usage:\n")
Expand All @@ -147,7 +150,7 @@ def slurm():
Using a scheduler requires installing an additional Snakemake plugin. If you haven't already, install the `slurm` plugin with:
```bash
mamba install -c bioconda -c conda-forge snakemake-executor-plugin-slurm
mamba install bioconda::snakemake-executor-plugin-slurm
```
"""))
with open(outfile, "w", encoding = "utf-8") as yml:
Expand All @@ -161,6 +164,7 @@ def slurm():
yml.write("latency-wait: 60\n")
yml.write("retries: 1\n")
yml.write("\n# This section is for advanced copying into a scratch directory #\n")
yml.write("## requires snakemake-storage-plugin-fs, which can be installed via conda\n")
yml.write("#default-storage-provider: fs\n")
yml.write("#local-storage-prefix: /home2/$USER\n")
yml.write("#shared-fs-usage:\n")
Expand All @@ -180,7 +184,7 @@ def googlebatch():
Using a scheduler requires installing an additional Snakemake plugin. If you haven't already, install the `googlebatch` plugin with:
```bash
mamba install -c bioconda -c conda-forge snakemake-executor-plugin-googlebatch
mamba install bioconda::snakemake-executor-plugin-googlebatch
```
"""))
with open(outfile, "w", encoding = "utf-8") as yml:
Expand Down Expand Up @@ -240,4 +244,4 @@ def googlebatch():
hpc.add_command(htcondor)
hpc.add_command(lsf)
hpc.add_command(generic)
hpc.add_command(googlebatch)
hpc.add_command(googlebatch)

0 comments on commit f6fa4d3

Please sign in to comment.