-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor tests * linting * tweak dockerfile * rename test folder * Update Dockerfile and add working directory
- Loading branch information
1 parent
0b36b71
commit 8b07bbb
Showing
109 changed files
with
2,791 additions
and
442 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#============================================================================================== | ||
FROM python:3.6 as base | ||
FROM python:3.8 as base | ||
|
||
LABEL author="Rodrigo V. Honorato <[email protected]>" | ||
|
||
|
@@ -10,18 +10,16 @@ RUN apt-get update && \ | |
&& \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /opt/software | ||
|
||
# Install Whiscy | ||
RUN git clone https://github.com/haddocking/whiscy.git && \ | ||
cd whiscy && \ | ||
git checkout tags/v1.1.1 && \ | ||
cd /opt/software/whiscy/bin/protdist && \ | ||
sh compile.sh | ||
# Copy Whiscy | ||
WORKDIR /opt/software/whiscy | ||
COPY . . | ||
|
||
# install BioPython | ||
RUN pip install biopython==1.79 | ||
|
||
WORKDIR /opt/software/whiscy/bin | ||
# Build protdist | ||
WORKDIR /opt/software/whiscy/bin/protdist | ||
RUN sh compile.sh | ||
|
||
# Build Muscle | ||
WORKDIR /opt/software/whiscy/muscle3.8.1551 | ||
|
@@ -30,7 +28,7 @@ RUN curl https://drive5.com/muscle/muscle_src_3.8.1551.tar.gz | tar xzv && \ | |
mv muscle /opt/software/whiscy/bin/muscle3.8.1551 && \ | ||
sed -i "s/\/Users\/bjimenez\/bin\/muscle\/muscle3.8.31_i86darwin64/\/opt\/software\/whiscy\/bin\/muscle3.8.1551/g" /opt/software/whiscy/etc/local.json | ||
|
||
# Install hsspconv | ||
# Build hsspconv | ||
RUN wget https://github.com/cmbi/hssp/archive/3.1.5.tar.gz && \ | ||
tar -zxvf 3.1.5.tar.gz && \ | ||
cd hssp-3.1.5 && \ | ||
|
@@ -41,7 +39,7 @@ RUN wget https://github.com/cmbi/hssp/archive/3.1.5.tar.gz && \ | |
sed -i "s/\/Users\/bjimenez\/bin\/hssp\/hsspconv/\/opt\/software\/whiscy\/bin\/hsspconv/g" /opt/software/whiscy/etc/local.json | ||
|
||
|
||
# Install freesasa | ||
# Build freesasa | ||
RUN wget https://github.com/mittinatten/freesasa/releases/download/2.0.3/freesasa-2.0.3.tar.gz && \ | ||
tar -zxvf freesasa-2.0.3.tar.gz && \ | ||
cd freesasa-2.0.3 && \ | ||
|
@@ -50,9 +48,16 @@ RUN wget https://github.com/mittinatten/freesasa/releases/download/2.0.3/freesa | |
|
||
# WHISCY exports | ||
ENV WHISCY_PATH=/opt/software/whiscy | ||
ENV PYTHONPATH="{$PYTHONPATH}:${WHISCY_PATH}" | ||
ENV PYTHONPATH="${PYTHONPATH}:${WHISCY_PATH}" | ||
ENV WHISCY_BIN="${WHISCY_PATH}/whiscy.py" | ||
ENV PATH="${WHISCY_PATH}:${WHISCY_PATH}/bin/freesasa/bin:${PATH}" | ||
|
||
WORKDIR /data | ||
|
||
############################################################################################### | ||
# No entrypoint here because Whiscy runs multiple commands | ||
############################################################################################### | ||
|
||
#============================================================================================== | ||
|
||
FROM base AS test | ||
|
@@ -61,6 +66,5 @@ RUN pip install pytest coverage pytest pytest-cov hypothesis | |
|
||
WORKDIR /opt/software/whiscy | ||
|
||
COPY test/ tests/ | ||
|
||
#============================================================================================== |
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
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import subprocess | ||
import os | ||
import subprocess | ||
|
||
|
||
def calculate_accessibility(pdb_file_name, output_file_name): | ||
|
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
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
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
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.