Skip to content

Commit

Permalink
refactor pdbfixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Duane Walker authored and Brandon Duane Walker committed Jun 10, 2024
1 parent 23fb84d commit e674a37
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 29 deletions.
25 changes: 0 additions & 25 deletions utils/pdbfixer-plugin/Dockerfile

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions utils/pre-process/structure-change/pdbfixer-tool/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# docker build -f Dockerfile -t mrbrandonwalker/pdbfixer-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
# errors installing pdbfixer from poetry so using conda
COPY environment.yml ${EXEC_DIR}
RUN mamba env create -f ${EXEC_DIR}/environment.yml
RUN echo "source activate project_env" > ~/.bashrc
ENV PATH /opt/conda/envs/env/bin:$PATH

COPY src ${EXEC_DIR}/src

ADD Dockerfile .

RUN conda run -n project_env pip install ${EXEC_DIR} --no-cache-dir

CMD ["--help"]
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This plugin takes 9 input arguments and 1 output argument:
| input_helper_pdb_path | Template input PDB path | Input | File | File |
| pdbid | PDB id from RCSB? | Input | string | string |
| url | URL to retrieve PDB from | Input | string | string |
| output_pdb_path | | Input | string | string |
| output_pdb_path | Output protein file path name | Input | string | string |
| add_atoms | What missing atoms to add, all, heavy or none | Input | string | string |
| add_residues | If set to True, adds missing residue | Input | boolean | boolean |
| replace_nonstandard | Replace nonstandard residues with standard equivalents | Input | boolean | boolean |
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
specVersion: 0.1.0
name: labshare/pdbfixer
version: 0.1.0
container: polusai/pdbfixer-plugin:0.1.0
container: polusai/pdbfixer-tool:0.1.0
entrypoint: ""
title: pdbfixer
description: Fix pdbfiles.
author: Data Scientist ([email protected])
author: Brandon Walker, Nazanin Donyapour
contact: [email protected], [email protected]
repository: https://github.com/labshare/mmtools
documentation: https://ncats.nih.gov/preclinical/core/informatics
citation:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ baseCommand: ["python", "-m", "polus.mm.utils.pdbfixer"]

hints:
DockerRequirement:
dockerPull: mrbrandonwalker/pdbfixer
dockerPull: mrbrandonwalker/pdbfixer-tool

inputs:
input_pdb_path:
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit e674a37

Please sign in to comment.