Tools actively under development. Documentation will be updated when ready for outside use!
## 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_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
cwl-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
cwl-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
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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/truwl/capanno-utils",
"name": "capanno-utils",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": "",
"keywords": "",
"author": "Karl Sebby",
"author_email": "karl.sebby@truwl.com",
"download_url": "https://files.pythonhosted.org/packages/cc/74/67fd5915bc80e26e0f812d1caa28dbe777f4f8ca954c68460ad61e06b5f4/capanno_utils-0.6.4a1.tar.gz",
"platform": "",
"description": "Tools actively under development. Documentation will be updated when ready for outside use!\n\n## Create the parser using the latest and greatest CWL and schema-salad versions\n```\nschema-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\n```\nor\n```\ncurl https://raw.githubusercontent.com/common-workflow-language/cwl-utils/main/cwl_utils/parser_v1_2.py > capanno_utils/classes/cwl/common_workflow_language.py\n```\n## Add the 10 mixins by hand\n```\nperl -p -i -e 'print \"from capanno_utils.classes.cwl.common_workflow_language_mixins import CommandLineToolMixin, \\\\\nCommandInputParameterMixin, SchemaDefRequirementMixin, CommandLineBindingMixin, \\\\\nCommandOutputParameterMixin, WorkflowMixin, InputParameterMixin, WorkflowOutputParameterMixin, \\\\\nWorkflowStepMixin, WorkflowStepInputMixin\\n\" if $. == 1' capanno_utils/classes/cwl/common_workflow_language.py\n\nperl -p -i -e 's/SchemaDefRequirement\\(/SchemaDefRequirement(SchemaDefRequirementMixin,/; \\\n s/CommandLineBinding\\(/CommandLineBinding(CommandLineBindingMixin,/; \\\n s/CommandInputParameter\\(/CommandInputParameter(CommandInputParameterMixin,/; \\\n s/CommandOutputParameter\\(/CommandOutputParameter(CommandOutputParameterMixin,/; \\\n s/CommandLineTool\\(/CommandLineTool(CommandLineToolMixin,/; \\\n s/Workflow\\(/Workflow(WorkflowMixin,/; \\\n s/class InputParameter\\(/class InputParameter(InputParameterMixin,/; \\\n s/WorkflowOutputParameter\\(/WorkflowOutputParameter(WorkflowOutputParameterMixin,/; \\\n s/class WorkflowStep\\(/class WorkflowStep(WorkflowStepMixin,/; \\\n s/class WorkflowStepInput\\(/class WorkflowStepInput(WorkflowStepInputMixin,/;' capanno_utils/classes/cwl/common_workflow_language.py\n```\n\n## Adding a tool\nUsage:\n```\ncapanno-add tool kallisto 0.45.x --biotoolsID kallisto #This will initialize a directory for kallisto\ncwl-tools/\n\u2514\u2500\u2500 kallisto\n \u2514\u2500\u2500 0.45.x\n \u251c\u2500\u2500 common\n \u2502\u00a0\u00a0 \u2514\u2500\u2500 common-metadata.yaml\n \u2514\u2500\u2500 kallisto\n \u251c\u2500\u2500 instances\n \u2514\u2500\u2500 kallisto-metadata.yaml\n```\nIf you don't provide a `biotoolsID`, capanno-utils will just make a blank template.\n```\ncapanno-add tool kallisto 0.45.x\ncwl-tools/\n\u2514\u2500\u2500 kallisto\n \u2514\u2500\u2500 0.45.x\n \u2514\u2500\u2500 common\n \u2514\u2500\u2500 common-metadata.yaml\n```\n\n\n\n## Adding a subtool\n```\n#remote\ncapanno-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\n#local\ncapanno-add subtool kallisto 0.45.x index -u --init-cwl bio-cwl-tools-submodule/Kallisto/Kallisto-Index.cwl \ncwl-tools/\n\u2514\u2500\u2500 kallisto\n \u2514\u2500\u2500 0.45.x\n \u251c\u2500\u2500 common\n \u2502\u00a0\u00a0 \u2514\u2500\u2500 common-metadata.yaml\n \u251c\u2500\u2500 kallisto\n \u2502\u00a0\u00a0 \u251c\u2500\u2500 instances\n \u2502\u00a0\u00a0 \u2514\u2500\u2500 kallisto-metadata.yaml\n \u2514\u2500\u2500 kallisto_index\n \u251c\u2500\u2500 instances\n \u251c\u2500\u2500 kallisto-index-metadata.yaml\n \u2514\u2500\u2500 kallisto-index.cwl\n```\n\nIf ``--init_cwl`` is not provided, no cwl file is initialized and capanno-utils will make a blank template.\nCan 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.\n```\ncapanno-add subtool kallisto 0.45.x index -u\ncwl-tools/\n\u2514\u2500\u2500 kallisto\n \u2514\u2500\u2500 0.45.x\n \u251c\u2500\u2500 common\n \u2502\u00a0\u00a0 \u2514\u2500\u2500 common-metadata.yaml\n \u2514\u2500\u2500 kallisto_index\n \u251c\u2500\u2500 instances\n \u2514\u2500\u2500 kallisto-index-metadata.yaml\n```\n\n\n\n",
"bugtrack_url": null,
"license": "Apache 2.0",
"summary": "Tool for managing bioinformatics content repositories.",
"version": "0.6.4a1",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "0deeac01ea6ad0d29decf3a8ecbfd547",
"sha256": "950a07a8c201d90b4b0f19d3bf65d0ee2a3784593e61a091ccc11e24d85d797b"
},
"downloads": -1,
"filename": "capanno_utils-0.6.4a1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0deeac01ea6ad0d29decf3a8ecbfd547",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 168260,
"upload_time": "2021-01-14T02:04:04",
"upload_time_iso_8601": "2021-01-14T02:04:04.736400Z",
"url": "https://files.pythonhosted.org/packages/5b/61/33a17f60c3cca374a9ab3490616375b9fed62b244e0036a9b67ca3b3e951/capanno_utils-0.6.4a1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "85c128b9efe44ffab24758ccc715dbf1",
"sha256": "338e41b792e7456513cb62c4c7e965bc84e9e88455382a5a35f075cde4be3f21"
},
"downloads": -1,
"filename": "capanno_utils-0.6.4a1.tar.gz",
"has_sig": false,
"md5_digest": "85c128b9efe44ffab24758ccc715dbf1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 186747,
"upload_time": "2021-01-14T02:04:07",
"upload_time_iso_8601": "2021-01-14T02:04:07.608209Z",
"url": "https://files.pythonhosted.org/packages/cc/74/67fd5915bc80e26e0f812d1caa28dbe777f4f8ca954c68460ad61e06b5f4/capanno_utils-0.6.4a1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2021-01-14 02:04:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": null,
"github_project": "truwl",
"error": "Could not fetch GitHub repository",
"lcname": "capanno-utils"
}