# deepchem **Repository Path**: gvmfhy/deepchem ## Basic Information - **Project Name**: deepchem - **Description**: Democratizing Deep-Learning for Drug Discovery, Quantum Chemistry, Materials Science and Biology - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-03-13 - **Last Updated**: 2025-03-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DeepChem [![Build Status](https://travis-ci.org/deepchem/deepchem.svg?branch=master)](https://travis-ci.org/deepchem/deepchem) [![Coverage Status](https://coveralls.io/repos/github/deepchem/deepchem/badge.svg?branch=master)](https://coveralls.io/github/deepchem/deepchem?branch=master) [![Anaconda-Server Badge](https://anaconda.org/deepchem/deepchem/badges/version.svg)](https://anaconda.org/deepchem/deepchem) [![PyPI version](https://badge.fury.io/py/deepchem.svg)](https://badge.fury.io/py/deepchem) DeepChem aims to provide a high quality open-source toolchain that democratizes the use of deep-learning in drug discovery, materials science, quantum chemistry, and biology. ### Table of contents: * [Requirements](#requirements) * [Installation](#installation) * [Easy Install with Conda](#easy-install-with-conda) * [Conda Environment](#using-a-conda-environment) * [Docker](#using-a-docker-image) * [FAQ and Troubleshooting](#faq-and-troubleshooting) * [Getting Started](#getting-started) * [Contributing to DeepChem](/CONTRIBUTING.md) * [Code Style Guidelines](/CONTRIBUTING.md#code-style-guidelines) * [Documentation Style Guidelines](/CONTRIBUTING.md#documentation-style-guidelines) * [Gitter](#gitter) * [DeepChem Publications](#deepchem-publications) * [Examples](/examples) * [About Us](#about-us) * [Citing DeepChem](#citing-deepchem) ## Requirements * [pandas](http://pandas.pydata.org/) * [joblib](https://pypi.python.org/pypi/joblib) * [sklearn](https://github.com/scikit-learn/scikit-learn.git) * [numpy](https://store.continuum.io/cshop/anaconda/) * [tensorflow](https://www.tensorflow.org/) ### Soft Requirements DeepChem has a number of "soft" requirements. These are packages which are needed for various submodules of DeepChem but not for the package as a whole. * [rdkit](http://www.rdkit.org/docs/Install.html) * [six](https://pypi.python.org/pypi/six) * [mdtraj](http://mdtraj.org/) ### Super easy install via pip3 ```bash pip3 install joblib pandas sklearn tensorflow pillow deepchem ``` ### Easy Install via Conda ```bash conda install -c deepchem -c rdkit -c conda-forge -c omnia deepchem=2.1.0 ``` **Note:** `Easy Install` installs the latest stable version of `deepchem` and _does not install from source_. If you need to install from source make sure you follow the steps [here](#using-a-conda-environment). ### Using a Docker Image Using a docker image requires an NVIDIA GPU. If you do not have a GPU please follow the directions for [using a conda environment](#using-a-conda-environment) In order to get GPU support you will have to use the [nvidia-docker](https://github.com/NVIDIA/nvidia-docker) plugin. ``` bash # This will the download the latest stable deepchem docker image into your images docker pull deepchemio/deepchem # This will create a container out of our latest image with GPU support nvidia-docker run -i -t deepchemio/deepchem # You are now in a docker container whose python has deepchem installed # For example you can run our tox21 benchmark cd deepchem/examples python benchmark.py -d tox21 # Or you can start playing with it in the command line pip install jupyter ipython import deepchem as dc ``` ### Installing from source in a conda environment You can install deepchem in a new conda environment using the conda commands in scripts/install_deepchem_conda.sh Installing via this script will ensure that you are **installing from the source**. ```bash git clone https://github.com/deepchem/deepchem.git # Clone deepchem source code from GitHub cd deepchem ``` If you don't want GPU support: ``` bash scripts/install_deepchem_conda.sh deepchem # If you don't want GPU support ``` If you want GPU support: ``` gpu=1 bash scripts/install_deepchem_conda.sh deepchem # If you want GPU support ``` Note : `gpu=0 bash scripts/install_deepchem_conda.sh deepchem` will also install CPU supported `deepchem`. ``` source activate deepchem python setup.py install # Manual install nosetests -a '!slow' -v deepchem --nologcapture # Run tests ``` This creates a new conda environment `deepchem` and installs in it the dependencies that are needed. To access it, use the `conda activate deepchem` command (if your conda version >= 4.4) and use `source activate deepchem` command (if your conda version < 4.4). Check [this link](https://conda.io/docs/using/envs.html) for more information about the benefits and usage of conda environments. **Warning**: Segmentation faults can [still happen](https://github.com/deepchem/deepchem/pull/379#issuecomment-277013514) via this installation procedure. ## FAQ and Troubleshooting 1. ```deepchem``` currently supports both Python 2.7 and Python 3.5, and is supported on 64 bit Linux and Mac OSX. Note that DeepChem is not currently maintained for Python 3.6 or with other operating systems. 2. Question: I'm seeing some failures in my test suite having to do with MKL ```Intel MKL FATAL ERROR: Cannot load libmkl_avx.so or libmkl_def.so.``` Answer: This is a general issue with the newest version of `scikit-learn` enabling MKL by default. This doesn't play well with many linux systems. See [BVLC/caffe#3884](https://github.com/BVLC/caffe/issues/3884) for discussions. The following seems to fix the issue ```bash conda install nomkl numpy scipy scikit-learn numexpr conda remove mkl mkl-service ``` 3. Note that when using Ubuntu 16.04 server or similar environments, you may need to ensure libxrender is provided via e.g.: ```bash sudo apt-get install -y libxrender-dev ``` ## Getting Started Two good tutorials to get started are [Graph Convolutional Networks](https://deepchem.io/docs/notebooks/graph_convolutional_networks_for_tox21.html) and [Multitask_Networks_on_MUV](https://deepchem.io/docs/notebooks/Multitask_Networks_on_MUV.html). Follow along with the tutorials to see how to predict properties on molecules using neural networks. Afterwards you can go through other [tutorials](https://deepchem.io/docs/notebooks/index.html), and look through our examples in the `examples` directory. To apply `deepchem` to a new problem, try starting from one of the existing examples or tutorials and modifying it step by step to work with your new use-case. If you have questions or comments you can raise them on our [gitter](https://gitter.im/deepchem/Lobby). ### Benchmarks In depth benchrmarking tables for DeepChem models are available on [MoleculeNet.ai](https://moleculenet.ai) ### Gitter Join us on gitter at [https://gitter.im/deepchem/Lobby](https://gitter.im/deepchem/Lobby). Probably the easiest place to ask simple questions or float requests for new features. ## About Us DeepChem is possible due to notable contributions from many people including Peter Eastman, Evan Feinberg, Joe Gomes, Karl Leswing, Vijay Pande, Aneesh Pappu, Bharath Ramsundar and Michael Wu (alphabetical ordering). DeepChem was originally created by [Bharath Ramsundar](http://rbharath.github.io/) with encouragement and guidance from [Vijay Pande](https://pande.stanford.edu/). DeepChem started as a [Pande group](https://pande.stanford.edu/) project at Stanford, and is now developed by many academic and industrial collaborators. DeepChem actively encourages new academic and industrial groups to contribute! ## Citing DeepChem If you have used DeepChem in the course of your research, we ask that you cite the "Deep Learning for the Life Sciences" book by the DeepChem core team. To cite this book, please use this bibtex entry: ``` @book{Ramsundar-et-al-2019, title={Deep Learning for the Life Sciences}, author={Bharath Ramsundar and Peter Eastman and Patrick Walters and Vijay Pande and Karl Leswing and Zhenqin Wu}, publisher={O'Reilly Media}, note={\url{https://www.amazon.com/Deep-Learning-Life-Sciences-Microscopy/dp/1492039837}}, year={2019} } ``` ## Version 2.1.0