Skip to content

Commit

Permalink
fix amides plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ndonyapour committed May 7, 2024
1 parent 6d5007e commit 71a19ae
Show file tree
Hide file tree
Showing 13 changed files with 55,633 additions and 0 deletions.
29 changes: 29 additions & 0 deletions utils/fix-amides-plugin/.bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[bumpversion]
current_version = 0.1.0
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<dev>\d+))?
serialize =
{major}.{minor}.{patch}-{release}{dev}
{major}.{minor}.{patch}

[bumpversion:part:release]
optional_value = _
first_value = dev
values =
dev
_

[bumpversion:part:dev]

[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:VERSION]

[bumpversion:file:README.md]

[bumpversion:file:plugin.json]

[bumpversion:file:src/polus/mm/utils/fix_amides/__init__.py]
4 changes: 4 additions & 0 deletions utils/fix-amides-plugin/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.venv
out
tests
__pycache__
1 change: 1 addition & 0 deletions utils/fix-amides-plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
poetry.lock
5 changes: 5 additions & 0 deletions utils/fix-amides-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CHANGELOG

## 0.1.0

Initial release.
14 changes: 14 additions & 0 deletions utils/fix-amides-plugin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# fix_amides (0.1.0)

Fix amide groups from residues.

## Options

This plugin takes 3 input arguments and 1 output argument:

| Name | Description | I/O | Type | Default |
|---------------|-------------------------|--------|--------|---------|
| input_pdb_path | Input PDB file path, Type: string, File type: input, Accepted formats: pdb, Example file: https://github.com/bioexcel/biobb_model/raw/master/biobb_model/test/data/model/5s2z.pdb | Input | File | File |
| output_pdb_path | Output PDB file path, Type: string, File type: output, Accepted formats: pdb, Example file: https://raw.githubusercontent.com/bioexcel/biobb_model/master/biobb_model/test/reference/model/output_amide_pdb_path.pdb | Input | string | string |
| config | Advanced configuration options for biobb_model FixAmides. This should be passed as a string containing a dict. The possible options to include here are listed under 'properties' in the biobb_model FixAmides documentation: https://biobb-model.readthedocs.io/en/latest/model.html#module-model.fix_amides | Input | string | string |
| output_pdb_path | Output PDB file path | Output | File | File |
1 change: 1 addition & 0 deletions utils/fix-amides-plugin/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0
69 changes: 69 additions & 0 deletions utils/fix-amides-plugin/fix_amides.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#!/usr/bin/env cwl-runner
cwlVersion: v1.0

class: CommandLineTool

label: Fix amide groups from residues.

doc: |-
Flip the clashing amide groups to avoid clashes.

baseCommand: fix_amides

hints:
DockerRequirement:
dockerPull: quay.io/biocontainers/biobb_model:4.1.0--pyhdfd78af_0

inputs:
input_pdb_path:
label: Input PDB file path
doc: |-
Input PDB file path
Type: string
File type: input
Accepted formats: pdb
Example file: https://github.com/bioexcel/biobb_model/raw/master/biobb_model/test/data/model/5s2z.pdb
type: File
format: edam:format_1476
inputBinding:
position: 1
prefix: --input_pdb_path

output_pdb_path:
label: Output PDB file path
doc: |-
Output PDB file path
Type: string
File type: output
Accepted formats: pdb
Example file: https://raw.githubusercontent.com/bioexcel/biobb_model/master/biobb_model/test/reference/model/output_amide_pdb_path.pdb
type: string
format: edam:format_1476
inputBinding:
position: 2
prefix: --output_pdb_path
default: system.pdb

config:
label: Advanced configuration options for biobb_model FixAmides
doc: |-
Advanced configuration options for biobb_model FixAmides. This should be passed as a string containing a dict. The possible options to include here are listed under 'properties' in the biobb_model FixAmides documentation: https://biobb-model.readthedocs.io/en/latest/model.html#module-model.fix_amides
type: string?
inputBinding:
prefix: --config

outputs:
output_pdb_path:
label: Output PDB file path
doc: |-
Output PDB file path
type: File
outputBinding:
glob: $(inputs.output_pdb_path)
format: edam:format_1476

$namespaces:
edam: https://edamontology.org/

$schemas:
- https://raw.githubusercontent.com/edamontology/edamontology/master/EDAM_dev.owl
51 changes: 51 additions & 0 deletions utils/fix-amides-plugin/ict.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
specVersion: "0.1.0"
name: fix_amides
version: 0.1.0
container: fix-amides-plugin
entrypoint:
title: fix_amides
description: Fix amide groups from residues.
author: Data Scientist
contact: [email protected]
repository:
documentation:
citation:

inputs:
- name: input_pdb_path
required: true
description: Input PDB file path, Type string, File type input, Accepted formats pdb, Example file https//github.com/bioexcel/biobb_model/raw/master/biobb_model/test/data/model/5s2z.pdb
type: File
format:
uri: edam:format_1476
- name: output_pdb_path
required: true
description: Output PDB file path, Type string, File type output, Accepted formats pdb, Example file https//raw.githubusercontent.com/bioexcel/biobb_model/master/biobb_model/test/reference/model/output_amide_pdb_path.pdb
type: string
defaultValue: system.pdb
format:
uri: edam:format_1476
- name: config
required: true
description: Advanced configuration options for biobb_model FixAmides. This should be passed as a string containing a dict. The possible options to include here are listed under 'properties' in the biobb_model FixAmides documentation https//biobb-model.readthedocs.io/en/latest/model.html#module-model.fix_amides
type: string
outputs:
- name: output_pdb_path
required: true
description: Output PDB file path
type: File
format:
uri: edam:format_1476
ui:
- key: inputs.input_pdb_path
title: "input_pdb_path: "
description: "Input PDB file path, Type string, File type input, Accepted formats pdb, Example file https//github.com/bioexcel/biobb_model/raw/master/biobb_model/test/data/model/5s2z.pdb"
type: File
- key: inputs.output_pdb_path
title: "output_pdb_path: "
description: "Output PDB file path, Type string, File type output, Accepted formats pdb, Example file https//raw.githubusercontent.com/bioexcel/biobb_model/master/biobb_model/test/reference/model/output_amide_pdb_path.pdb"
type: string
- key: inputs.config
title: "config: "
description: "Advanced configuration options for biobb_model FixAmides. This should be passed as a string containing a dict. The possible options to include here are listed under 'properties' in the biobb_model FixAmides documentation https//biobb-model.readthedocs.io/en/latest/model.html#module-model.fix_amides"
type: string
Loading

0 comments on commit 71a19ae

Please sign in to comment.