Mercurial > repos > gene > raptor_seqan3
annotate README.md @ 0:bbdc3fdf5298 draft default tip
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
| author | gene |
|---|---|
| date | Mon, 04 Oct 2021 09:54:45 +0000 |
| parents | |
| children |
| rev | line source |
|---|---|
|
0
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
1 # raptor-galaxy |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
2 |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
3 This readme explains how to add a tool to bioconda and galaxy (by using planemo). |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
4 |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
5 ## Bioconda |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
6 Bioconda has so called recipes for every available tool which are saved in their git repo https://github.com/bioconda/bioconda-recipes . |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
7 To get your tool into bioconda you have to create a PR with a recipe for your tool. |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
8 You can use the recipe of raptor as a template: https://github.com/bioconda/bioconda-recipes/tree/master/recipes/raptor |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
9 |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
10 ## Install and setup of planemo |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
11 The next 3 steps will install planemo into the directory `.venv-planemo`. |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
12 ``` |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
13 $ virtualenv .venv-planemo; source .venv-planemo/bin/activate |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
14 $ pip install "pip>=7" |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
15 $ pip install planemo |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
16 ``` |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
17 Each time you open a new console and want to use planemo, it is needed to activate the planemo environment: |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
18 ``` |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
19 $ source .venv-planemo/bin/activate |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
20 ``` |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
21 For more information on how to install planemo checkout the project https://github.com/galaxyproject/planemo . |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
22 |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
23 |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
24 ## Account on the toolshed |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
25 There exists the normal toolshed at https://toolshed.g2.bx.psu.edu/ and the test toolshed at https://testtoolshed.g2.bx.psu.edu/. |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
26 The steps for both are the same. We will show here how to use the testtoolshed. |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
27 - create an account on https://testtoolshed.g2.bx.psu.edu |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
28 - run `$ planemo config_init` to create a planemo config |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
29 - insert shed_username and api key into ~/.planemo.yml |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
30 |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
31 ## Creating a new description for a tool |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
32 Lets assume you want to add a new subcommand to raptor called `newsubcommand`. |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
33 - copy raptor-build.xml to raptor-newsubcommand.xml |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
34 - adjust the xml file to own needs |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
35 - run `$ planemo test raptor-newsubcommand.xml` to check tests |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
36 - run `$ planemo lint raptor-newsubcommand.xml` to lint |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
37 |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
38 ## Publishing your tool |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
39 Make sure to bump the version number of the tool for every new release (see xml tag <tool version="..."> ). |
|
bbdc3fdf5298
"planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty"
gene
parents:
diff
changeset
|
40 - run `$ planemo shed_update --shed_target testtoolshed path/to/this/repo` to publish the tools of this repository |
