-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release
0.1.1
Minor updates / bug fixes + Adding containers
- Loading branch information
Showing
14 changed files
with
256 additions
and
65 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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Usage: | ||
# ** Step 1 ** Build the docker image: | ||
# docker build -f cli.Dockerfile -t viprs-cli . | ||
# ** Step 2** Run the docker container in interactive shell mode: | ||
# docker run -it viprs-cli /bin/bash | ||
# ** Step 3** Test viprs fit: | ||
# viprs_fit -h | ||
|
||
FROM python:3.11-slim-buster | ||
|
||
LABEL authors="Shadi Zabad" | ||
LABEL version="0.1" | ||
LABEL description="Docker image containing all requirements to run the commandline scripts in the VIPRS package" | ||
|
||
# Install system dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
unzip \ | ||
wget \ | ||
pkg-config \ | ||
g++ gcc \ | ||
libopenblas-dev \ | ||
libomp-dev | ||
|
||
# Download and setup plink2: | ||
RUN mkdir -p /software && \ | ||
wget https://s3.amazonaws.com/plink2-assets/alpha5/plink2_linux_avx2_20240105.zip -O /software/plink2.zip && \ | ||
unzip /software/plink2.zip -d /software && \ | ||
rm /software/plink2.zip | ||
|
||
# Download and setup plink1.9: | ||
RUN mkdir -p /software && \ | ||
wget https://s3.amazonaws.com/plink1-assets/plink_linux_x86_64_20231211.zip -O /software/plink.zip && \ | ||
unzip /software/plink.zip -d /software && \ | ||
rm /software/plink.zip | ||
|
||
# Add plink1.9 and plink2 to PATH: | ||
RUN echo 'export PATH=$PATH:/software' >> ~/.bashrc | ||
|
||
# Install viprs package from PyPI | ||
RUN pip install --upgrade pip viprs | ||
|
||
# Test the installation | ||
RUN viprs_fit -h |
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,53 @@ | ||
# Usage: | ||
# ** Step 1 ** Build the docker image: | ||
# docker build -f ../vemPRS/containers/jupyter.Dockerfile -t viprs-jupyter . | ||
# ** Step 2 ** Run the docker container (pass the appropriate port): | ||
# docker run -p 8888:8888 viprs-jupyter | ||
# ** Step 3 ** Open the link in your browser: | ||
# http://localhost:8888 | ||
|
||
|
||
FROM python:3.11-slim-buster | ||
|
||
LABEL authors="Shadi Zabad" | ||
LABEL version="0.1" | ||
LABEL description="Docker image containing all requirements to run the VIPRS package in a Jupyter Notebook" | ||
|
||
# Install system dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
unzip \ | ||
wget \ | ||
pkg-config \ | ||
g++ gcc \ | ||
libopenblas-dev \ | ||
libomp-dev | ||
|
||
# Download and setup plink2: | ||
RUN mkdir -p /software && \ | ||
wget https://s3.amazonaws.com/plink2-assets/alpha5/plink2_linux_avx2_20240105.zip -O /software/plink2.zip && \ | ||
unzip /software/plink2.zip -d /software && \ | ||
rm /software/plink2.zip | ||
|
||
# Download and setup plink1.9: | ||
RUN mkdir -p /software && \ | ||
wget https://s3.amazonaws.com/plink1-assets/plink_linux_x86_64_20231211.zip -O /software/plink.zip && \ | ||
unzip /software/plink.zip -d /software && \ | ||
rm /software/plink.zip | ||
|
||
# Add plink1.9 and plink2 to PATH: | ||
RUN echo 'export PATH=$PATH:/software' >> ~/.bashrc | ||
|
||
# Install viprs package from PyPI | ||
RUN pip install --upgrade pip viprs jupyterlab | ||
|
||
# Expose the port Jupyter Lab will be served on | ||
EXPOSE 8888 | ||
|
||
# Set the working directory | ||
WORKDIR /viprs_dir | ||
|
||
# Copy the current directory contents into the container at /app | ||
COPY . /viprs_dir | ||
|
||
# Run Jupyter Lab | ||
CMD ["jupyter", "lab", "--ip=0.0.0.0", "--allow-root", "--NotebookApp.token=''"] |
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
Oops, something went wrong.