Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM python:3.7-slim

# Prevents .pyc file generation in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1

# install relevant packages to env (e.g. git)
RUN apt-get -y update \
&& apt-get install --reinstall -y build-essential \
&& apt-get install -y gcc

# Install pip requirements for python
COPY requirements.txt .
RUN python -m pip install --no-cache-dir -r requirements.txt \
&& python -m pip install --no-cache-dir --no-input pconsc4 \
&& rm requirements.txt

CMD ["bash"]
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# PconsC4:
Fast, accurate, and hassle-free contact prediction.

## Installation with Docker
To create a minimal python environment containing pconsc4, run the below command in a directory containing the `Dockerfile` (note, the docker engine must be installed).
```bash
docker build -t pconsc4 .
```

Once created, you can enter a simple shell session using the below command. The installation can be confirmed by running `python3` and importing the `pconsc4` library.
```bash
docker run --rm -it pconsc4
```

## Installation instructions:

pip3 install numpy Cython pythran &&
Expand Down
12 changes: 7 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
numpy
h5py==2.10.0
keras==2.2.4
tensorflow >=1.12,<2.0
pythran==0.9.5
beniget==0.2.1
gast==0.3.3
Cython
scipy
keras
pyGaussDCA
h5py
numpy