Skip to content

Commit b09ee6f

Browse files
fix: deprecate run_jobby_* scripts (#123)
* chore: deprecate run_jobby_... scripts fixes #119 * docs: run_jobby_* scripts are deprecated * chore: update CHANGELOG.md
1 parent 0d99786 commit b09ee6f

6 files changed

Lines changed: 33 additions & 8 deletions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Tools development version
22

33
- Use miniforge3 installation on biowulf. (#124, @kelly-sovacool)
4+
- The `run_jobby_on_*` scripts are now deprecated in favor of using `jobby` directly. (#123, @kelly-sovacool)
45

56
## Tools 0.4.4
67

docs/scripts.qmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ title: "External scripts"
55
Additional standalone scripts for various common tasks are added to the path when this package is installed.
66
They are less robust than the [CLI Utilities](cli) included in the package and do not have any unit tests.
77

8+
:::{.callout-warning}
9+
The `run_jobby_on_*` scripts have been deprecated. Please use `jobby` directly.
10+
:::
11+
812
```{python}
913
#| echo: false
1014
#| output: asis

scripts/run_jobby_on_nextflow_log

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/usr/bin/env bash
2-
nextflowlog=$1
3-
jobby $(awk -F" jobId: " '{print $2}' ${nextflowlog} | awk -F";" '{print $1}' | grep -v "^$" | sort | uniq | tr "\\n" " ") |cut -f2,3,18
2+
SCRIPT=$(basename ${BASH_SOURCE[0]})
3+
echo """ERROR: ${SCRIPT} is deprecated.
4+
Please use jobby instead. For usage information, run:
5+
6+
jobby --help
7+
""" >&2
8+
exit 1
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/usr/bin/env bash
2-
nextflowlog=$1
3-
jobby $(awk -F" jobId: " '{print $2}' ${nextflowlog} | awk -F";" '{print $1}' | grep -v "^$" | sort | uniq | tr "\\n" " ")
2+
SCRIPT=$(basename ${BASH_SOURCE[0]})
3+
echo """ERROR: ${SCRIPT} is deprecated.
4+
Please use jobby instead. For usage information, run:
5+
6+
jobby --help
7+
""" >&2
8+
exit 1

scripts/run_jobby_on_snakemake_log

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/usr/bin/env bash
2-
snakemakelog=$1
3-
jobby $(grep --color=never "^Submitted .* with external jobid" $snakemakelog | awk '{{print $NF}}' | sed "s/['.]//g" | sort | uniq | tr "\\n" " ") |cut -f2,3,18
2+
SCRIPT=$(basename ${BASH_SOURCE[0]})
3+
echo """ERROR: ${SCRIPT} is deprecated.
4+
Please use jobby instead. For usage information, run:
5+
6+
jobby --help
7+
""" >&2
8+
exit 1
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/usr/bin/env bash
2-
snakemakelog=$1
3-
jobby $(grep --color=never "^Submitted .* with external jobid" $snakemakelog | awk '{{print $NF}}' | sed "s/['.]//g" | sort | uniq | tr "\\n" " ")
2+
SCRIPT=$(basename ${BASH_SOURCE[0]})
3+
echo """ERROR: ${SCRIPT} is deprecated.
4+
Please use jobby instead. For usage information, run:
5+
6+
jobby --help
7+
""" >&2
8+
exit 1

0 commit comments

Comments
 (0)