Mercurial > repos > galaxy-australia > dorado
comparison README.md @ 0:63d8ecfcfab1 draft
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
author | galaxy-australia |
---|---|
date | Fri, 28 Jun 2024 03:39:11 +0000 |
parents | |
children | fc5b6491cf78 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:63d8ecfcfab1 |
---|---|
1 | |
2 ## Tool versions | |
3 | |
4 Dorado is distributed on | |
5 [DockerHub](https://hub.docker.com/r/nanoporetech/dorado/tags) by nanoporetech. | |
6 The containers are identified by sha256 hash, but not tagged with a version. | |
7 | |
8 We can still use the containers and display the dorado version by hard-coding | |
9 both dorado version and container hash into the wrapper (see `macros.xml`). | |
10 Unfortunately you have to pull a >6 GB container and run `dorado --version` just | |
11 to check the tool version. This also prevents auto-updates of this wrapper. | |
12 | |
13 You can update the list of models at the same time (see | |
14 below). **You must do this when you update the wrapper**. | |
15 | |
16 ## Basecalling models | |
17 | |
18 The models are bundled in the container at `/models` and made available by the | |
19 `dorado_models.loc` file. | |
20 | |
21 The columns are `value`, `container_hash`, `name` and `path`. | |
22 | |
23 To update the list, modify `tool-data/dorado_models.loc.sample`. | |
24 | |
25 Because models can be added and removed, models are listed **per container** in | |
26 the loc file. | |
27 | |
28 Here's some code to **append** the models from the container with hash | |
29 `1c65eb070a9fc1d88710c4dc09b06541f96fdd28` to the loc file. | |
30 | |
31 ```bash | |
32 export DORADO_HASH="1c65eb070a9fc1d88710c4dc09b06541f96fdd28" | |
33 | |
34 apptainer exec "docker://nanoporetech/dorado:sha${DORADO_HASH}" \ | |
35 ls /models | \ | |
36 awk -v hash="${DORADO_HASH}" '{print hash "_" $0 "\t" hash "\t" $0 "\t/models/" $0}' \ | |
37 >> tool-data/dorado_models.loc.sample | |
38 ``` | |
39 | |
40 The loc file doesn't have a header, so you can keep it sorted. | |
41 | |
42 ```bash | |
43 cp tool-data/dorado_models.loc.sample \ | |
44 tool-data/dorado_models.loc.sample.old && | |
45 sort -t$'\t' -k1,1V tool-data/dorado_models.loc.sample.old \ | |
46 > tool-data/dorado_models.loc | |
47 ``` | |
48 |