Skip to main content

General

capanno-utils is a companion tool to manage metadata and workflow language files for bioinformatics tools in the capanno and similar repositories. Usage examples and additional documentation can be found in that repository. It is recommended to start with the Getting Started documentation.

Create the parser using the latest and greatest CWL and schema-salad versions

schema-salad-tool --codegen python https://github.com/common-workflow-language/common-workflow-language/raw/master/v1.0/CommonWorkflowLanguage.yml > capanno_utils/classes/cwl/common_workflow_language.py

or

curl https://raw.githubusercontent.com/common-workflow-language/cwl-utils/main/cwl_utils/parser/cwl_v1_2.py > capanno_utils/classes/cwl/common_workflow_language.py

Add the 10 mixins by hand

perl -p -i -e 'print "from capanno_utils.classes.cwl.common_workflow_language_mixins import CommandLineToolMixin, \\
CommandInputParameterMixin, SchemaDefRequirementMixin, CommandLineBindingMixin, \\
CommandOutputParameterMixin, WorkflowMixin, InputParameterMixin, WorkflowOutputParameterMixin, \\
WorkflowStepMixin, WorkflowStepInputMixin\n" if $. == 1' capanno_utils/classes/cwl/common_workflow_language.py

perl -p -i -e 's/SchemaDefRequirement\(/SchemaDefRequirement(SchemaDefRequirementMixin,/; \
               s/CommandLineBinding\(/CommandLineBinding(CommandLineBindingMixin,/; \
               s/CommandInputParameter\(/CommandInputParameter(CommandInputParameterMixin,/; \
               s/CommandOutputParameter\(/CommandOutputParameter(CommandOutputParameterMixin,/; \
               s/CommandLineTool\(/CommandLineTool(CommandLineToolMixin,/; \
               s/Workflow\(/Workflow(WorkflowMixin,/; \
               s/class InputParameter\(/class InputParameter(InputParameterMixin,/; \
               s/WorkflowOutputParameter\(/WorkflowOutputParameter(WorkflowOutputParameterMixin,/; \
               s/class WorkflowStep\(/class WorkflowStep(WorkflowStepMixin,/; \
               s/class WorkflowStepInput\(/class WorkflowStepInput(WorkflowStepInputMixin,/;' capanno_utils/classes/cwl/common_workflow_language.py

Adding a tool

Usage:

capanno-add tool kallisto 0.45.x --biotoolsID kallisto  #This will initialize a directory for kallisto
tools/
└── kallisto
    └── 0.45.x
        ├── common
        │   └── common-metadata.yaml
        └── kallisto
            ├── instances
            └── kallisto-metadata.yaml

If you don't provide a biotoolsID, capanno-utils will just make a blank template.

capanno-add tool kallisto 0.45.x
tools/
└── kallisto
    └── 0.45.x
        └── common
            └── common-metadata.yaml

Adding a subtool

#remote
capanno-add subtool kallisto 0.45.x index -u --init-cwl https://github.com/common-workflow-library/bio-cwl-tools/raw/release/Kallisto/Kallisto-Index.cwl
#local
capanno-add subtool kallisto 0.45.x index -u --init-cwl bio-cwl-tools-submodule/Kallisto/Kallisto-Index.cwl 
tools/
└── kallisto
    └── 0.45.x
        ├── common
        │   └── common-metadata.yaml
        ├── kallisto
        │   ├── instances
        │   └── kallisto-metadata.yaml
        └── kallisto_index
            ├── instances
            ├── kallisto-index-metadata.yaml
            └── kallisto-index.cwl

If --init_cwl is not provided, no cwl file is initialized and capanno-utils will make a blank template. Can also initialize all subtool directories when first initialize the tool directory but haven't made a way to specify cwl urls to initialize each one doing it that way yet.

capanno-add subtool kallisto 0.45.x index -u
cwl-tools/
└── kallisto
    └── 0.45.x
        ├── common
        │   └── common-metadata.yaml
        └── kallisto_index
            ├── instances
            └── kallisto-index-metadata.yaml

Metadata

Release files for capanno-utils 0.11.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for capanno-utils 0.11.2
File Size Uploaded Provenance Actions
capanno_utils-0.11.2.tar.gz 114.7 kB Without provenance Details for capanno_utils-0.11.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for capanno-utils 0.11.2
File Interpreter ABI Platform Actions
capanno_utils-0.11.2-py3-none-any.whl Python 3 none any Details for capanno_utils-0.11.2-py3-none-any.whl

Total release size: 256.2 kB

Release files / capanno_utils-0.11.2.tar.gz

Download URL capanno_utils-0.11.2.tar.gz
Size 114.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6d92eca2fb9377d50647e0c60d0b1c2a4e855a5c71fc47d81fecfe61b1f7329e
BLAKE2b-256 checksum
How to use checksums
16cc386737fea76c4bd3d786da04fd9f66c672e5ba0159c76a205f25be91be2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.5

Release files / capanno_utils-0.11.2-py3-none-any.whl

Download URL capanno_utils-0.11.2-py3-none-any.whl
Size 141.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7a158751f48d8676371a289245a07f4647399d49210f53f616e35b4ccd2ebb6
BLAKE2b-256 checksum
How to use checksums
f53a66e8ff284937955f4953f23d1d019ebbbe7e0424e7c7fdbc98d6fd7cc647
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.5

Security for capanno-utils 0.11.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.11.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page