Skip to content

Commit b5f5c3e

Browse files
committed
Updating tooling docs
1 parent dcd94b0 commit b5f5c3e

3 files changed

Lines changed: 203 additions & 50 deletions

File tree

_data/sidebars/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,20 @@ subitems:
3838
subitems:
3939
- title: Verify CVMFS
4040
url: /tools#cvmfs
41-
- title: Find and install with Bio-Shelley
41+
- title: Find and install with Shelley-Bio
4242
url: /tools#bio-shelley
4343
- title: Load a tool
4444
url: /tools#load-tool
4545
- title: Reference datasets
4646
url: /tools#reference-data
47-
- title: Advanced — manual SHPC
47+
- title: Advanced — manual sHPC
4848
url: /tools#shpc-manual
49+
- title: Older or unlisted versions
50+
url: /tools#older-versions
51+
- title: Troubleshooting
52+
url: /tools#troubleshooting
53+
- title: Further reading
54+
url: /tools#further-reading
4955
- title: Interactive environments
5056
url: /interactive
5157
subitems:

pages/about.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: How to cite this guide, contributor acknowledgements, and reference
77

88
If you use this guide in your research or training, please cite it as:
99

10-
> O'Brien M, Jaya F, Samaha G, Xue W, Al Bkhetan Z, Botting A, Gustafsson J. (2026).
10+
> O'Brien M, Jaya F, Xue W, Al Bkhetan Z, Botting A, Gustafsson J. Samaha G (2026).
1111
> **BioShell how-to guide**. Australian BioCommons.
1212
> [AUTHOR TO SUPPLY — Zenodo DOI once minted]
1313
@@ -19,15 +19,15 @@ If you use this guide in your research or training, please cite it as:
1919

2020
## Contributors {#contributors}
2121

22-
| Name | GitHub | ORCID |
23-
|------|--------|-------|
24-
| Mitchell O'Brien | [@Mitchob](https://github.com/Mitchob) | [0000-0003-0662-9101](https://orcid.org/0000-0003-0662-9101) |
25-
| Fred Jaya | [@fredjaya](https://github.com/fredjaya) | [0000-0002-4019-7026](https://orcid.org/0000-0002-4019-7026) |
26-
| Georgina Samaha | [@georgiesamaha](https://github.com/georgiesamaha) | [0000-0003-0419-1476](https://orcid.org/0000-0003-0419-1476) |
27-
| Wenjing Xue | [@eileen-xue](https://github.com/eileen-xue) ||
28-
| Ziad Al Bkhetan | [@ziadbkh](https://github.com/ziadbkh) | [0000-0002-4032-5331](https://orcid.org/0000-0002-4032-5331) |
29-
| Andy Botting | [@andybotting](https://github.com/andybotting) ||
30-
| Johan Gustafsson | [@supernord](https://github.com/supernord) | [0000-0002-2977-5032](https://orcid.org/0000-0002-2977-5032) |
22+
| Name | GitHub | ORCID |
23+
| ---------------- | -------------------------------------------------- | ------------------------------------------------------------ |
24+
| Mitchell O'Brien | [@Mitchob](https://github.com/Mitchob) | [0000-0003-0662-9101](https://orcid.org/0000-0003-0662-9101) |
25+
| Fred Jaya | [@fredjaya](https://github.com/fredjaya) | [0000-0002-4019-7026](https://orcid.org/0000-0002-4019-7026) |
26+
| Georgina Samaha | [@georgiesamaha](https://github.com/georgiesamaha) | [0000-0003-0419-1476](https://orcid.org/0000-0003-0419-1476) |
27+
| Wenjing Xue | [@eileen-xue](https://github.com/eileen-xue) | |
28+
| Ziad Al Bkhetan | [@ziadbkh](https://github.com/ziadbkh) | [0000-0002-4032-5331](https://orcid.org/0000-0002-4032-5331) |
29+
| Andy Botting | [@andybotting](https://github.com/andybotting) | |
30+
| Johan Gustafsson | [@supernord](https://github.com/supernord) | [0000-0002-2977-5032](https://orcid.org/0000-0002-2977-5032) |
3131

3232
---
3333

pages/tools.md

Lines changed: 185 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
---
22
title: Tools and reference data
3-
description: How to find, install, and load bioinformatics tools and reference datasets in BioShell using CVMFS, Bio-Shelley, and SHPC.
3+
description: How to find, install, and load bioinformatics tools and reference datasets in BioShell using CVMFS, Shelley-Bio, and sHPC.
44
---
55

66
BioShell gives you access to thousands of bioinformatics tools and reference datasets through
7-
[CernVM-FS (CVMFS)](https://cvmfs.readthedocs.io/en/stable/), a read-only shared file system
8-
that delivers containerised tools and reference data on demand. Rather than downloading or
9-
installing software yourself, you load tools as modules — they are pulled from CVMFS only when
10-
you need them.
7+
two underlying systems — **CVMFS** and **sHPC** — and a built-in assistant called
8+
**Shelley-Bio** that automates working with both.
119

12-
Through CVMFS, BioShell connects to three repositories:
10+
[CernVM-FS (CVMFS)](https://cvmfs.readthedocs.io/en/stable/) is a read-only, network-backed
11+
file system that delivers containerised tools and reference data on demand. Rather than
12+
downloading or installing software yourself, you access tools as modules — files are pulled
13+
from CVMFS only when you need them and cached locally.
14+
15+
BioShell mounts three CVMFS repositories automatically:
1316

1417
| Repository | Contents |
1518
|-----------|----------|
16-
| `singularity.galaxyproject.org` | Containerised tools from [BioContainers](https://biocontainers.pro/) |
19+
| `singularity.galaxyproject.org` | 100,000+ containerised tools from [BioContainers](https://biocontainers.pro/) |
1720
| `data.galaxyproject.org` | Reference genome builds and pre-built indexes from the Galaxy Project |
1821
| `data.biocommons.aarnet.edu.au` | [AUTHOR TO SUPPLY — confirm final name and description] |
1922

20-
> **Note:** CVMFS does not download everything in advance. It fetches files only when you
21-
> access them, so the first time you use a tool or dataset it may take a moment to load.
22-
> Subsequent access is faster because the files are cached locally.
23+
> **Recommended approach:** Start with Shelley-Bio. Use the manual CVMFS/sHPC methods only
24+
> if you need finer control or are troubleshooting.
2325
2426
---
2527

@@ -62,17 +64,21 @@ You should see `OK` for each repository. If a repository shows `Failed!`, wait a
6264
try again. Contact [Australian BioCommons support](https://www.biocommons.org.au/helpdesk)
6365
if the problem persists.
6466

67+
> **Note:** CVMFS does not download everything in advance. It fetches files only when you
68+
> access them, so the first time you use a tool or dataset it may take a moment to load.
69+
> Subsequent access is faster because the files are cached locally.
70+
6571
---
6672

67-
## Step 2 — Find and install tools with Bio-Shelley {#bio-shelley}
73+
## Step 2 — Find and install tools with Shelley-Bio {#bio-shelley}
6874

69-
**Bio-Shelley** is BioShell's built-in assistant for finding and installing tools. It indexes
70-
over 700 tools and 118,000 container versions from the BioContainers catalogue so you do not
71-
need to know container paths or SHPC commands.
75+
**Shelley-Bio** is BioShell's built-in assistant for finding and installing tools. It indexes
76+
over 700 tools and 118,000 container versions from the BioContainers catalogue, so you do not
77+
need to know container paths or sHPC commands.
7278

73-
You can use Bio-Shelley in two ways:
79+
You can use Shelley-Bio in two ways:
7480

75-
**Directly from the command line:**
81+
**From the command line:**
7682

7783
```bash
7884
shelley-bio find <tool>
@@ -81,7 +87,7 @@ shelley-bio versions <tool>
8187
shelley-bio build <tool>
8288
```
8389

84-
**Or in interactive mode:**
90+
**In interactive mode:**
8591

8692
```bash
8793
shelley-bio interactive
@@ -93,11 +99,28 @@ shelley-bio interactive
9399
| `search "<function>"` | Search by keyword or function | `shelley-bio search "quality control"` |
94100
| `versions <tool>` | List all available versions | `shelley-bio versions samtools` |
95101
| `build <tool[/version]>` | Install the tool as a loadable module | `shelley-bio build samtools/1.21` |
96-
| `interactive` | Launch Bio-Shelley in interactive mode | `shelley-bio interactive` |
102+
| `interactive` | Launch Shelley-Bio in interactive mode | `shelley-bio interactive` |
97103

98104
The `build` command handles the full installation automatically — it finds the correct
99105
container in CVMFS, generates the module file, and makes the tool ready to load.
100106

107+
### Example: installing `samtools`
108+
109+
```bash
110+
shelley-bio find samtools
111+
# samtools — Tools for manipulating next-generation sequencing data
112+
113+
shelley-bio versions samtools
114+
# samtools/1.21
115+
# samtools/1.20
116+
# samtools/1.19.2
117+
# ...
118+
119+
shelley-bio build samtools/1.21
120+
# Installing samtools/1.21 from CVMFS...
121+
# Module samtools/1.21 was created.
122+
```
123+
101124
![](images/bioshell/SCREENSHOT_NEEDED_bioshelley_build.png)
102125

103126
*Fig 3. Using `shelley-bio build samtools/1.21` to install a tool module.*
@@ -109,7 +132,7 @@ container in CVMFS, generates the module file, and makes the tool ready to load.
109132

110133
## Step 3 — Load a tool {#load-tool}
111134

112-
Once Bio-Shelley has built a module, load it with:
135+
Once Shelley-Bio has built a module, load it with:
113136

114137
```bash
115138
module use ~/shpc/modules
@@ -130,9 +153,9 @@ Verify the tool is ready:
130153
## Reference datasets {#reference-data}
131154

132155
CVMFS also provides access to reference genome builds and pre-built indexes from the Galaxy
133-
Project. You can use these directly in your analyses by referencing their absolute file path.
134-
135-
List the available reference data:
156+
Project. You can browse the full repository at
157+
[datacache.galaxyproject.org](http://datacache.galaxyproject.org) before triggering any
158+
downloads on the VM. On BioShell, the same content is available at:
136159

137160
```bash
138161
ls /cvmfs/data.galaxyproject.org/byhand/
@@ -144,28 +167,35 @@ ls /cvmfs/data.galaxyproject.org/managed/
144167
| `/managed` | Datasets generated with Galaxy Data Manager tools. Organised by index type, then genome build. |
145168
| `/byhand` | Older, manually curated datasets. Organised by genome build, then index type. |
146169

147-
To use a reference file in your analysis, pass its absolute path directly to your tool.
148-
For example, the human CHM13 T2T v2.0 FASTA file is at:
170+
To use a reference file in your analysis, pass its absolute path directly to your tool or
171+
pipeline config. For example, the human CHM13 T2T v2.0 FASTA file is at:
149172

150173
```
151174
/cvmfs/data.galaxyproject.org/byhand/CHM13_T2T_v2.0/seq/CHM13_T2T_v2.0.fa
152175
```
153176

154-
> **Note:** The reference datasets available through CVMFS are those hosted by the Galaxy
155-
> Project and may not be comprehensive. This is not a replacement for your institution's
156-
> primary data access methods.
177+
The T2T genome directory also includes pre-built indexes for common aligners:
178+
179+
```bash
180+
ls /cvmfs/data.galaxyproject.org/byhand/CHM13_T2T_v2.0/
181+
# bowtie2_index/ bwa_mem_index/ bwameth_index/ hisat2_index/ len/ rnastar/ seq/
182+
```
183+
184+
> **Note:** The reference datasets available through CVMFS are maintained by the Galaxy Project
185+
> and may not be comprehensive. This is not a replacement for your institution's primary data
186+
> access methods.
157187
158188
---
159189

160-
## Advanced: manual SHPC commands {#shpc-manual}
190+
## Advanced: manual sHPC commands {#shpc-manual}
161191

162-
If you need to install a tool version that Bio-Shelley cannot find, or you prefer to work
163-
directly with SHPC, use the steps below.
192+
If you need to install a tool version that Shelley-Bio cannot find, or you prefer to work
193+
directly with sHPC, use the steps below. This example uses `plink` throughout.
164194

165-
> **Tip:** Bio-Shelley handles most cases, including older tool versions not in the default
195+
> **Tip:** Shelley-Bio handles most cases, including older tool versions not in the default
166196
> registry. Try `shelley-bio versions <tool>` before attempting manual installation.
167197
168-
**Load SHPC:**
198+
**Load sHPC:**
169199

170200
```bash
171201
module load shpc
@@ -174,24 +204,141 @@ module load shpc
174204
**Search for a tool and view versions:**
175205

176206
```bash
177-
shpc show -f <toolname>
178-
shpc show quay.io/biocontainers/<tool>
207+
shpc show -f plink
208+
shpc show quay.io/biocontainers/plink
179209
```
180210

181211
**Install a module directly from CVMFS:**
182212

183213
```bash
184-
shpc install quay.io/biocontainers/<tool>:<tag> \
185-
/cvmfs/singularity.galaxyproject.org/all/<tool>:<tag> \
214+
shpc install quay.io/biocontainers/plink:1.90b7.7--h18e278d_1 \
215+
/cvmfs/singularity.galaxyproject.org/all/plink:1.90b7.7--h18e278d_1 \
186216
--keep-path
187217
```
188218

219+
The `--keep-path` flag tells sHPC to use the container already present in CVMFS rather than
220+
downloading a fresh copy.
221+
189222
**Make the module available and load it:**
190223

191224
```bash
192225
module use ~/shpc/modules
193-
module load quay.io/biocontainers/<tool>/<tag>
226+
module load quay.io/biocontainers/plink/1.90b7.7--h18e278d_1
227+
plink --version
228+
```
229+
230+
**Or run the container directly without a module:**
231+
232+
```bash
233+
singularity exec \
234+
/cvmfs/singularity.galaxyproject.org/all/plink:1.90b7.7--h18e278d_1 \
235+
plink --version
194236
```
195237

196238
For further documentation see the
197-
[SHPC user guide](https://singularity-hpc.readthedocs.io/en/latest/getting_started/user-guide.html).
239+
[sHPC user guide](https://singularity-hpc.readthedocs.io/en/latest/getting_started/user-guide.html).
240+
241+
---
242+
243+
## Installing older or unlisted versions {#older-versions}
244+
245+
Some older tool versions exist in CVMFS but are not listed in the default sHPC registry.
246+
Shelley-Bio handles this automatically via its `build` command, but if you need to do it
247+
manually, follow these steps.
248+
249+
**1. Check CVMFS for the version:**
250+
251+
```bash
252+
ls /cvmfs/singularity.galaxyproject.org/all/plink:1.90b4*
253+
```
254+
255+
**2. Get its checksum:**
256+
257+
```bash
258+
sha256sum /cvmfs/singularity.galaxyproject.org/all/plink:1.90b4--h0a6d026_2
259+
```
260+
261+
**3. Create a local registry entry:**
262+
263+
```bash
264+
sudo mkdir -p /apps/local/quay.io/biocontainers/plink
265+
266+
# Fetch the existing remote recipe as a base
267+
curl -fsSL \
268+
https://raw.githubusercontent.com/singularityhub/shpc-registry/main/quay.io/biocontainers/plink/container.yaml \
269+
-o /apps/local/quay.io/biocontainers/plink/container.yaml
270+
271+
# Edit the YAML to add the missing version tag and its checksum
272+
```
273+
274+
**4. Register your local registry:**
275+
276+
```bash
277+
sudo shpc config add registry /apps/local
278+
```
279+
280+
Verify your local registry appears first — it must take precedence over the remote registry:
281+
282+
```bash
283+
shpc config get registry
284+
# ['/apps/local', 'https://github.com/singularityhub/shpc-registry']
285+
```
286+
287+
**5. Install from CVMFS:**
288+
289+
```bash
290+
sudo shpc install quay.io/biocontainers/plink:1.90b4--h0a6d026_2 \
291+
/cvmfs/singularity.galaxyproject.org/all/plink:1.90b4--h0a6d026_2 \
292+
--keep-path
293+
```
294+
295+
> **Tip:** If Shelley-Bio recognises the container path but the version is not in the
296+
> registry, `shelley-bio build` handles the local registry creation automatically.
297+
298+
---
299+
300+
## Troubleshooting {#troubleshooting}
301+
302+
**CVMFS probe fails for a repository**
303+
304+
The repository may be temporarily unavailable. Wait a moment and run `cvmfs_config probe`
305+
again. Contact [Australian BioCommons support](https://www.biocommons.org.au/helpdesk) if
306+
the problem persists.
307+
308+
**`shpc show` returns no results**
309+
310+
The default registry may not include every BioContainers tool. Try searching the remote
311+
registry explicitly:
312+
313+
```bash
314+
shpc show quay.io/biocontainers/<tool> \
315+
--registry https://github.com/singularityhub/shpc-registry
316+
```
317+
318+
The official registry is updated nightly.
319+
320+
**Module appears in `module avail` but will not load**
321+
322+
Check that both `shpc` and `singularity` are loaded:
323+
324+
```bash
325+
module list
326+
```
327+
328+
sHPC requires Singularity to execute containers.
329+
330+
**Shelley-Bio cannot find a tool**
331+
332+
Try `search` with different keywords — for example, `shelley-bio search "alignment"` instead
333+
of a specific tool name. If the container exists in CVMFS but Shelley-Bio does not index it,
334+
fall back to the manual sHPC method above.
335+
336+
---
337+
338+
## Further reading {#further-reading}
339+
340+
- [sHPC user guide](https://singularity-hpc.readthedocs.io/en/latest/getting_started/user-guide.html)
341+
- [BioContainers registry](https://biocontainers.pro/registry)
342+
- [Shelley-Bio on GitHub](https://github.com/Sydney-Informatics-Hub/shelley-bio)
343+
- [CVMFS documentation](https://cvmfs.readthedocs.io/en/stable/)
344+
- [Galaxy Project CVMFS repositories](https://galaxyproject.org/admin/cvmfs/)

0 commit comments

Comments
 (0)