Skip to content

Commit

Permalink
autodock-vina-filter plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ndonyapour committed Dec 23, 2024
1 parent 92d2d65 commit b26e235
Show file tree
Hide file tree
Showing 21 changed files with 974 additions and 0 deletions.
29 changes: 29 additions & 0 deletions utils/autodock-vina-filter-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/autodock_vina_filter/__init__.py]
4 changes: 4 additions & 0 deletions utils/autodock-vina-filter-plugin/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.venv
out
tests
__pycache__
3 changes: 3 additions & 0 deletions utils/autodock-vina-filter-plugin/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pdb filter=lfs diff=lfs merge=lfs -text
*.pdbqt filter=lfs diff=lfs merge=lfs -text
*.txt filter=lfs diff=lfs merge=lfs -text
1 change: 1 addition & 0 deletions utils/autodock-vina-filter-plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
poetry.lock
5 changes: 5 additions & 0 deletions utils/autodock-vina-filter-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CHANGELOG

## 0.1.0

Initial release.
22 changes: 22 additions & 0 deletions utils/autodock-vina-filter-plugin/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM condaforge/mambaforge

ENV EXEC_DIR="/opt/executables"
ENV POLUS_LOG="INFO"
RUN mkdir -p ${EXEC_DIR}


# Work directory defined in the base container
# WORKDIR ${EXEC_DIR}

COPY pyproject.toml ${EXEC_DIR}
COPY VERSION ${EXEC_DIR}
COPY README.md ${EXEC_DIR}
COPY CHANGELOG.md ${EXEC_DIR}

# Install needed packages here

COPY src ${EXEC_DIR}/src

RUN pip3 install ${EXEC_DIR} --no-cache-dir

CMD ["--help"]
26 changes: 26 additions & 0 deletions utils/autodock-vina-filter-plugin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# autodock_vina_filter (0.1.0)

Filters results of the AutoDock Vina software.

## Options

This plugin takes 11 input arguments and 5 output argument:

| Name | Description | I/O | Type | Default |
|---------------|-------------------------|--------|--------|---------|
| input_log_path | Path to the log file, Type: string, File type: output, Accepted formats: log, Example file: https://github.com/bioexcel/biobb_vs/raw/master/biobb_vs/test/reference/vina/ref_output_vina.log | Input | File | File |
| input_log_paths | Path to the log files, Type: string, File type: output, Accepted formats: log, Example file: https://github.com/bioexcel/biobb_vs/raw/master/biobb_vs/test/reference/vina/ref_output_vina.log | Input | File[] | File[] |
| docking_score_cutoff | Cutoff threshold for filtering docking scores, Type: float | Input | float | float |
| max_num_poses_per_ligand | Maximum number of poses per initial ligand, Type: int | Input | int | int |
| max_num_poses_total | Maximum number of poses total, Type: int | Input | int | int |
| input_txt_path | Experimental binding free energy data file (if any) | Input | File | File |
| rescore | Use True if autodock vina was run with --rescore | Input | boolean | boolean |
| input_ligand_pdbqt_path | Path to the input PDBQT ligands, Type: string, File type: input, Accepted formats: pdbqt, Example file: https://github.com/bioexcel/biobb_vs/raw/master/biobb_vs/test/data/vina/vina_ligand.pdbqt | Input | {'type': 'array', 'items': {'type': 'array', 'items': 'File'}} | {'type': 'array', 'items': {'type': 'array', 'items': 'File'}} |
| output_ligand_pdbqt_path | Path to the output PDBQT ligand files, Type: string, File type: output, Accepted formats: pdbqt, Example file: https://github.com/bioexcel/biobb_vs/raw/master/biobb_vs/test/reference/vina/ref_output_vina.pdbqt | Input | string | string |
| input_receptor_pdbqt_path | Path to the input PDBQT receptors, Type: string, File type: input, Accepted formats: pdbqt, Example file: https://github.com/bioexcel/biobb_vs/raw/master/biobb_vs/test/data/vina/vina_ligand.pdbqt | Input | {'type': 'array', 'items': {'type': 'array', 'items': 'File'}} | {'type': 'array', 'items': {'type': 'array', 'items': 'File'}} |
| output_receptor_pdbqt_path | Path to the output PDBQT receptor files, Type: string, File type: output, Accepted formats: pdbqt, Example file: https://github.com/bioexcel/biobb_vs/raw/master/biobb_vs/test/reference/vina/ref_output_vina.pdbqt | Input | string | string |
| output_ligand_pdbqt_path | Path to the output PDBQT file | Output | File[] | File[] |
| output_receptor_pdbqt_path | Path to the output PDBQT file | Output | File[] | File[] |
| docking_scores | Estimated Free Energies of Binding | Output | {'type': 'array', 'items': 'float'} | {'type': 'array', 'items': 'float'} |
| experimental_binding_data | Experimental binding data (if any) | Output | ['null', {'type': 'array', 'items': 'float'}] | ['null', {'type': 'array', 'items': 'float'}] |
| experimental_dGs | Experimental binding free energy dG values (if any) | Output | ['null', {'type': 'array', 'items': 'float'}] | ['null', {'type': 'array', 'items': 'float'}] |
1 change: 1 addition & 0 deletions utils/autodock-vina-filter-plugin/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0
Loading

0 comments on commit b26e235

Please sign in to comment.