-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d5007e
commit 724f813
Showing
18 changed files
with
775 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
utils/pre-process/data-download/pdbbind-generate-conformers-tool/.bumpversion.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/pdbbind_generate_conformers/__init__.py] |
5 changes: 5 additions & 0 deletions
5
utils/pre-process/data-download/pdbbind-generate-conformers-tool/.gitattributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.pdb filter=lfs diff=lfs merge=lfs -text | ||
*.pdbqt filter=lfs diff=lfs merge=lfs -text | ||
*.mol2 filter=lfs diff=lfs merge=lfs -text | ||
*.xlsx filter=lfs diff=lfs merge=lfs -text | ||
*.sdf filter=lfs diff=lfs merge=lfs -text |
5 changes: 5 additions & 0 deletions
5
utils/pre-process/data-download/pdbbind-generate-conformers-tool/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# CHANGELOG | ||
|
||
## 0.1.0 | ||
|
||
Initial release. |
23 changes: 23 additions & 0 deletions
23
utils/pre-process/data-download/pdbbind-generate-conformers-tool/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# docker build -f Dockerfile -t polusai/pdbbind-generate-conformers-tool . | ||
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 | ||
ADD Dockerfile . | ||
|
||
RUN pip3 install ${EXEC_DIR} --no-cache-dir | ||
|
||
CMD ["--help"] |
22 changes: 22 additions & 0 deletions
22
utils/pre-process/data-download/pdbbind-generate-conformers-tool/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# pdbbind_generate_conformers (0.1.0) | ||
|
||
Download the PDBbind refined database and generate conformers from SMILES | ||
|
||
## Options | ||
|
||
This plugin takes 9 input arguments and 3 output argument: | ||
|
||
| Name | Description | I/O | Type | Default | | ||
|---------------|-------------------------|--------|--------|---------| | ||
| input_excel_path | | Input | File | File | | ||
| query | query str to search the dataset, Type: string, File type: input, Accepted formats: txt | Input | string | string | | ||
| output_txt_path | Path to the text dataset file, Type: string, File type: output, Accepted formats: txt | Input | string | string | | ||
| output_sdf_path | Path to the input file, Type: string, File type: input, Accepted formats: sdf | Input | string | string | | ||
| min_row | The row min inex, Type: int | Input | int | int | | ||
| max_row | The row max inex, Type: int | Input | int | int | | ||
| smiles_column | The name of the smiles column, Type: string, File type: output, Accepted formats: txt | Input | string | string | | ||
| binding_data_column | The name of the binding data column, Type: string, File type: output, Accepted formats: txt | Input | string | string | | ||
| convert_Kd_dG | If this is set to true, dG will be calculated | Input | boolean | boolean | | ||
| output_txt_path | Path to the txt file | Output | File | File | | ||
| output_sdf_path | Path to the input file, Type: string, File type: input, Accepted formats: sdf | Output | File[] | File[] | | ||
| experimental_dGs | Experimental Free Energies of Binding | Output | float[] | float[] | |
1 change: 1 addition & 0 deletions
1
utils/pre-process/data-download/pdbbind-generate-conformers-tool/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1.0 |
4 changes: 4 additions & 0 deletions
4
utils/pre-process/data-download/pdbbind-generate-conformers-tool/build-docker.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
version=$(<VERSION) | ||
docker build . -t polusai/pdbbind-generate-conformers-tool:${version} |
10 changes: 10 additions & 0 deletions
10
utils/pre-process/data-download/pdbbind-generate-conformers-tool/environment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: project_env | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python==<3.12,>=3.9 | ||
- pandas==2.2.2 | ||
- rdkit==2024.03.2 | ||
- openpyxl==3.1.2 | ||
- xorg-libxrender==0.9.11 | ||
- pytest==8.2.0 |
123 changes: 123 additions & 0 deletions
123
utils/pre-process/data-download/pdbbind-generate-conformers-tool/ict.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
specVersion: "0.1.0" | ||
name: pdbbind_generate_conformers | ||
version: 0.1.0 | ||
container: generate-conformers-tool | ||
entrypoint: | ||
title: pdbbind_generate_conformers | ||
description: Download the PDBbind refined database and generate conformers from SMILES | ||
author: Brandon Walker, Nazanin Donyapour | ||
contact: [email protected], [email protected] | ||
repository: | ||
documentation: | ||
citation: | ||
|
||
inputs: | ||
- name: input_excel_path | ||
required: true | ||
description: | ||
type: File | ||
format: | ||
uri: edam:format_3620 | ||
- name: query | ||
required: true | ||
description: query str to search the dataset, Type string, File type input, Accepted formats txt | ||
type: string | ||
format: | ||
uri: edam:format_2330 | ||
- name: output_txt_path | ||
required: true | ||
description: Path to the text dataset file, Type string, File type output, Accepted formats txt | ||
type: string | ||
defaultValue: system.log | ||
format: | ||
uri: edam:format_2330 | ||
- name: output_sdf_path | ||
required: true | ||
description: Path to the input file, Type string, File type input, Accepted formats sdf | ||
type: string | ||
format: | ||
uri: edam:format_3814 | ||
- name: min_row | ||
required: true | ||
description: The row min inex, Type int | ||
type: int | ||
format: | ||
uri: edam:format_2330 | ||
- name: max_row | ||
required: true | ||
description: The row max inex, Type int | ||
type: int | ||
format: | ||
uri: edam:format_2330 | ||
- name: smiles_column | ||
required: true | ||
description: The name of the smiles column, Type string, File type output, Accepted formats txt | ||
type: string | ||
format: | ||
uri: edam:format_2330 | ||
- name: binding_data_column | ||
required: true | ||
description: The name of the binding data column, Type string, File type output, Accepted formats txt | ||
type: string | ||
format: | ||
uri: edam:format_2330 | ||
- name: convert_Kd_dG | ||
required: true | ||
description: If this is set to true, dG will be calculated | ||
type: boolean | ||
format: | ||
uri: edam:format_2330 | ||
outputs: | ||
- name: output_txt_path | ||
required: true | ||
description: Path to the txt file | ||
type: File | ||
format: | ||
uri: edam:format_2330 | ||
- name: output_sdf_path | ||
required: true | ||
description: Path to the input file, Type string, File type input, Accepted formats sdf | ||
type: File[] | ||
format: | ||
uri: edam:format_3814 | ||
- name: experimental_dGs | ||
required: true | ||
description: Experimental Free Energies of Binding | ||
type: float[] | ||
ui: | ||
- key: inputs.input_excel_path | ||
title: "input_excel_path: " | ||
description: "" | ||
type: File | ||
- key: inputs.query | ||
title: "query: " | ||
description: "query str to search the dataset, Type string, File type input, Accepted formats txt" | ||
type: string | ||
- key: inputs.output_txt_path | ||
title: "output_txt_path: " | ||
description: "Path to the text dataset file, Type string, File type output, Accepted formats txt" | ||
type: string | ||
- key: inputs.output_sdf_path | ||
title: "output_sdf_path: " | ||
description: "Path to the input file, Type string, File type input, Accepted formats sdf" | ||
type: string | ||
- key: inputs.min_row | ||
title: "min_row: " | ||
description: "The row min inex, Type int" | ||
type: int | ||
- key: inputs.max_row | ||
title: "max_row: " | ||
description: "The row max inex, Type int" | ||
type: int | ||
- key: inputs.smiles_column | ||
title: "smiles_column: " | ||
description: "The name of the smiles column, Type string, File type output, Accepted formats txt" | ||
type: string | ||
- key: inputs.binding_data_column | ||
title: "binding_data_column: " | ||
description: "The name of the binding data column, Type string, File type output, Accepted formats txt" | ||
type: string | ||
- key: inputs.convert_Kd_dG | ||
title: "convert_Kd_dG: " | ||
description: "If this is set to true, dG will be calculated" | ||
type: checkbox |
3 changes: 3 additions & 0 deletions
3
utils/pre-process/data-download/pdbbind-generate-conformers-tool/ligand_0.sdf
Git LFS file not shown
Oops, something went wrong.