# HG changeset patch # User gene # Date 1633341285 0 # Node ID bbdc3fdf5298a0d88a4e15408aaedb8383b6214d "planemo upload commit 79f62a93f1c45ae643ce01ff3dcf9662c304c11b-dirty" diff -r 000000000000 -r bbdc3fdf5298 README.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Mon Oct 04 09:54:45 2021 +0000 @@ -0,0 +1,40 @@ +# raptor-galaxy + +This readme explains how to add a tool to bioconda and galaxy (by using planemo). + +## Bioconda +Bioconda has so called recipes for every available tool which are saved in their git repo https://github.com/bioconda/bioconda-recipes . +To get your tool into bioconda you have to create a PR with a recipe for your tool. +You can use the recipe of raptor as a template: https://github.com/bioconda/bioconda-recipes/tree/master/recipes/raptor + +## Install and setup of planemo +The next 3 steps will install planemo into the directory `.venv-planemo`. +``` +$ virtualenv .venv-planemo; source .venv-planemo/bin/activate +$ pip install "pip>=7" +$ pip install planemo +``` +Each time you open a new console and want to use planemo, it is needed to activate the planemo environment: +``` +$ source .venv-planemo/bin/activate +``` +For more information on how to install planemo checkout the project https://github.com/galaxyproject/planemo . + + +## Account on the toolshed +There exists the normal toolshed at https://toolshed.g2.bx.psu.edu/ and the test toolshed at https://testtoolshed.g2.bx.psu.edu/. +The steps for both are the same. We will show here how to use the testtoolshed. +- create an account on https://testtoolshed.g2.bx.psu.edu +- run `$ planemo config_init` to create a planemo config +- insert shed_username and api key into ~/.planemo.yml + +## Creating a new description for a tool +Lets assume you want to add a new subcommand to raptor called `newsubcommand`. +- copy raptor-build.xml to raptor-newsubcommand.xml +- adjust the xml file to own needs +- run `$ planemo test raptor-newsubcommand.xml` to check tests +- run `$ planemo lint raptor-newsubcommand.xml` to lint + +## Publishing your tool +Make sure to bump the version number of the tool for every new release (see xml tag ). +- run `$ planemo shed_update --shed_target testtoolshed path/to/this/repo` to publish the tools of this repository diff -r 000000000000 -r bbdc3fdf5298 raptor-build.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/raptor-build.xml Mon Oct 04 09:54:45 2021 +0000 @@ -0,0 +1,152 @@ + + + Builds an index to be used by `raptor search`. + + + raptor + + files.txt; + #for $i, $s in enumerate($inputs) + ln -s '${s}' genome${i}.fasta; + echo genome${i}.fasta >> files.txt; + #end for + + raptor build files.text + #if $window$ --window ${window} #end if# + --threads ${threads} + --parts ${parts} + --kmer ${kmer} + --size ${size} + --hash ${hash} + ${compressed} + ${compute_minimiser} + ${disable_cutoffs} + --output output.index; + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@Article{Seiler2021, +author={Seiler, Enrico +and Mehringer, Svenja +and Darvish, Mitra +and Turc, Etienne +and Reinert, Knut}, +title={Raptor: A fast and space-efficient pre-filter for querying very large collections of nucleotide sequences}, +journal={iScience}, +year={2021}, +month={Jul}, +day={23}, +publisher={Elsevier}, +volume={24}, +number={7}, +issn={2589-0042}, +doi={10.1016/j.isci.2021.102782}, +url={https://doi.org/10.1016/j.isci.2021.102782} +} + + + diff -r 000000000000 -r bbdc3fdf5298 raptor-search.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/raptor-search.xml Mon Oct 04 09:54:45 2021 +0000 @@ -0,0 +1,103 @@ + + + Queries an index to determine which fasta file the query can be found in. + + + raptor + + + + + + + + + + + + + + + + + + + + + + + + +@Article{Seiler2021, +author={Seiler, Enrico +and Mehringer, Svenja +and Darvish, Mitra +and Turc, Etienne +and Reinert, Knut}, +title={Raptor: A fast and space-efficient pre-filter for querying very large collections of nucleotide sequences}, +journal={iScience}, +year={2021}, +month={Jul}, +day={23}, +publisher={Elsevier}, +volume={24}, +number={7}, +issn={2589-0042}, +doi={10.1016/j.isci.2021.102782}, +url={https://doi.org/10.1016/j.isci.2021.102782} +} + + diff -r 000000000000 -r bbdc3fdf5298 test-data/expected_query_results.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/expected_query_results.txt Mon Oct 04 09:54:45 2021 +0000 @@ -0,0 +1,5 @@ +#0 genome0.fasta +#1 genome1.fasta +#QUERY_NAME USER_BINS +query1 +query2 1 diff -r 000000000000 -r bbdc3fdf5298 test-data/genome0.fasta --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/genome0.fasta Mon Oct 04 09:54:45 2021 +0000 @@ -0,0 +1,2 @@ +>Charmander +ACGTACGT diff -r 000000000000 -r bbdc3fdf5298 test-data/genome1.fasta --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/genome1.fasta Mon Oct 04 09:54:45 2021 +0000 @@ -0,0 +1,2 @@ +>Caterpie +AACCGGTT diff -r 000000000000 -r bbdc3fdf5298 test-data/genome_files.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/genome_files.txt Mon Oct 04 09:54:45 2021 +0000 @@ -0,0 +1,2 @@ +genome0.fasta +genome1.fasta diff -r 000000000000 -r bbdc3fdf5298 test-data/query.fasta --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/query.fasta Mon Oct 04 09:54:45 2021 +0000 @@ -0,0 +1,4 @@ +>query1 +ACGT +>query2 +AACCGGTT diff -r 000000000000 -r bbdc3fdf5298 test-data/test_expected.index Binary file test-data/test_expected.index has changed