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