BootStrap: docker From: centos:8 %environment # PATHS export PATH=/opt/miniconda3/bin:$PATH source activate py37 %post # bind paths mkdir -p /aloy mkdir -p /aloy/home mkdir -p /aloy/data mkdir -p /aloy/scratch mkdir -p /aloy/web_checker mkdir -p /slgpfs # update yum yum update -y # basic packages yum install -y gcc \ gcc-c++ \ gcc-gfortran \ cmake \ make \ git \ wget \ curl \ which \ vim \ bzip2 \ bzip2-devel \ file \ libXrender \ libXext \ postgresql-server \ postgresql-contrib \ epel-release # MS compatible font for plotting yum install -y xorg-x11-font-utils fontconfig libmspack rpm -i http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/c/cabextract-1.5-1.el7.x86_64.rpm rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm # conda mkdir -p /opt/miniconda3 cd /opt/miniconda3 wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh bash Miniconda3-latest-Linux-x86_64.sh -p /opt/miniconda3 -b -f rm Miniconda3-latest-Linux-x86_64.sh export PATH=/opt/miniconda3/bin:$PATH # create and activate conda enviroment conda update conda -y conda create --name=py37 python=3.7 -y source activate py37 # conda-specific packages conda install -y -c rdkit rdkit # Open-Source Cheminformatics Software conda install -y -c openbabel openbabel # chemical toolbox conda install -y mkl-service # change the number of CPU’s MKL is using conda install -y anaconda-client # client that provides an interface to Anaconda Cloud conda install -y -c pytorch faiss-cpu # facebook trick for sparsity conda install -y -c conda-forge hdbscan # clustering # utility packages pip install ipython # interactive python pip install jupyter # jupyter notebooks pip install six # py2/py3 compatibility pip install pytest # unit-testing pip install mock # mocking for unit-testing pip install autologging # logging handler pip install paramiko # ssh client pip install psycopg2-binary # Postgesql driver pip install sqlalchemy # ORM SQL pip install sphinx # to generate docs pip install sphinx_rtd_theme # docs theme. pip install patool # unzipping pip install wget # download library pip install timeout_decorator # method timeout pip install tqdm # handy progress-bar # raw data packages pip install lxml # xml parser pip install xlrd # Extract data from Excel spreadsheets pip install cmapPy # interacting with .gctx and .gct files, and other Connectivity Map resources pip install csvsort # Sort csv # chemistry packages #pip install e3fp # 3D molecular fingreprints pip install pubchempy # Pubchem rest api pip install chemfp # fast fingerprint search (used in TargetMate) pip install standardiser # standardising molecules # numerical packages pip install cython # C extensions pip install numpy # best numerical library ever pip install pandas # handles table-like datastracture pip install scipy # scientific python pip install theano # Optimize evaluate math expressions pip install h5py # HDF5 via python pip install fancyimpute # matrix completion and imputation algorithms pip install protobuf==3.6.1 # Google serialization library #pip install intbitset # sort unsigned integers # graph packages pip install networkx # graph data stracture and algos pip install snap-stanford # Python interface for SNAP # visualization packages pip install matplotlib # chart library :) pip install seaborn # prettier graph built on top of matplotlib pip install datashader # plot huge 2D datasets (projetions) # ML packages pip install scikit-learn # entry level ML in python pip install gensim # topic modelling word2vec pip install tensorflow==1.14.0 # neural network library pip install adanet==0.5.0 # automl for NN pip install keras # NN API # Dimensionality reduction pip install MulticoreTSNE # tSNE algo pip install umap-learn # UMAP algo # install local SBNB devpi packages DEVPI_HOST=gitlabsbnb.irbbarcelona.org DEVPI_PORT=3141 alias sbnb_pip='pip install --index http://$DEVPI_HOST:$DEVPI_PORT/root/dev/ --trusted-host $DEVPI_HOST' sbnb_pip pqkmeans==1.0.4 # slighty modified pqkmeans sbnb_pip pdbe-api # PDBe REST API sbnb_pip pride-api # PRIDE REST API sbnb_pip reactome-api # Reactome REST API sbnb_pip sbnb-dsysmap # access the sbnb-dsysmap database sbnb_pip sbnb-uniprotkb # interface to the local UniprotKB database sbnb_pip sbnb-util # utility code in the SBNB lab # chemical beauty QED curl -LO http://silicos-it.be.s3-website-eu-west-1.amazonaws.com/_downloads/qed-1.0.1.tar.gz mv qed-1.0.1.tar.gz /opt cd /opt tar -xvf qed-1.0.1.tar.gz cd qed-1.0.1 2to3 silicos_it/descriptors/qed.py -w # very minor py3 compatibility issues (prints) python setup.py install # fix until is compatible with python 3.7 cd /opt git clone https://github.com/keiserlab/e3fp.git cd e3fp/ cython e3fp/fingerprint/metrics/_fast.pyx # this is the fix python setup.py build_ext --inplace python setup.py install # APSW stands for Another Python SQLite Wrapper pip install https://github.com/rogerbinns/apsw/releases/download/3.24.0-r1/apsw-3.24.0-r1.zip --global-option=fetch --global-option=--version --global-option=3.24.0 --global-option=--all --global-option=build --global-option=--enable-all-extensions