πΎSimple utility to register versioned toil container pipelines in a bin directory.
674
πΎ Register versioned toil containerβ pipelines or other commands in singularity containers.
This package is available at PyPiβ :
pip install register_toil
β οΈ WARNING: This package only works with singularity 2.4+
register_toil will install toil containerβ pipelines in separate virtual environmentsβ , pull a singularity image from the dockerhub and create executables that call the pipeline with the right parameters:
register_toil \
--bindir /example/bin \
--optdir /example/opt \
--tmpvar $TMP \
--pypi_name toil_disambiguate \
--pypi_version v0.1.2 \
--volumes /ifs /ifs
Given this call, the following directory structure is created:
/example/
βββ bin
βΒ Β βββ toil_disambiguate_v0.1.2 -> /example/opt/toil_disambiguate/v0.1.2/toil_disambiguate
βββ opt
βββ toil_disambiguate
βββ v0.1.2
βββ toil_disambiguate
βββ toil_disambiguate-v0.1.2.simg
And the executables look like this:
cat /example/bin/toil_disambiguate
#!/bin/bash
/path/to/.virtualenvs/production__toil_disambiguate__v0.1.2/bin/toil_disambiguate $@ \
--singularity /example/opt/toil_disambiguate/v0.1.2/toil_disambiguate-v0.1.2.simg \
--volumes /ifs /ifs \
--workDir $TMP_DIR
Similar usage is provided to register regular commands that will run inside a container, see register_singularity.
Contributions are welcome, and they are greatly appreciated, check our contributing guidelinesβ !
This package was created using Cookiecutterβ and the leukgen/cookiecutter-toilβ project template.
Content type
Image
Digest
Size
248.5 MB
Last updated
almost 8 years ago
docker pull leukgen/register_toil