-
Notifications
You must be signed in to change notification settings - Fork 4
/
README.qmd
99 lines (67 loc) · 2.2 KB
/
README.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
format: gfm
---
<!-- README.md is generated from README.qmd. Please edit that file -->
# CCBR Tools
Utilities for CCBR Bioinformatics Software
[![build](https://github.com/CCBR/Tools/actions/workflows/build-python.yml/badge.svg)](https://github.com/CCBR/Tools/actions/workflows/build-python.yml)
[![docs](https://github.com/CCBR/Tools/actions/workflows/docs-quartodoc.yml/badge.svg)](https://github.com/CCBR/Tools/actions/workflows/docs-quartodoc.yml)
[![codecov](https://codecov.io/gh/CCBR/Tools/graph/badge.svg?token=O73NOR65B3)](https://codecov.io/gh/CCBR/Tools)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.13377166.svg)](https://doi.org/10.5281/zenodo.13377166)
## Installation
On biowulf you can access the latest release of `ccbr_tools` by loading the ccbrpipeliner module:
```sh
module load ccbrpipeliner
```
Outside of biowulf, you can install the package with pip:
```sh
pip install git+https://github.com/CCBR/Tools
```
Or specify a specific tagged version or branch:
```sh
pip install git+https://github.com/CCBR/Tools@v0.1.0
```
## Usage
### CLI
```sh
ccbr_tools --help
```
```{python}
#| echo: false
!ccbr_tools --help
```
### Python
```{python}
import ccbr_tools.pkg_util
print(ccbr_tools.pkg_util.get_version())
```
## CLI Utilities
Command-line utilities in CCBR Tools.
```{python}
#| echo: false
#| output: asis
print("\n".join([f" - `{cmd}`" for cmd in ccbr_tools.pkg_util.get_project_scripts()]))
```
Run a command with `--help` to learn how to use it.
## External Scripts
Additional standalone scripts for various common tasks in [scripts/](scripts/) are added to the path when this package is installed.
They are less robust than the CLI Utilities included in the package and do not have any unit tests.
```{python}
#| echo: false
#| output: asis
from ccbr_tools.pkg_util import get_pyproject_toml
from pathlib import Path
print('\n'.join([f" - `{Path(script).name}`" for script in get_pyproject_toml()['tool']['setuptools']['script-files']]))
```
## Citation
Please cite this software if you use it in a publication:
```{python}
#| echo: false
#| output: asis
!ccbr_tools cite -f apalike | sed -E 's/^/> /g'
```
### Bibtex entry
```{python}
#| echo: false
!ccbr_tools cite -f bibtex
```