├── .bumpversion.cfg ├── .gitignore ├── .travis.yml ├── Dockerfile ├── LICENSE ├── README.md ├── deepimpute ├── __init__.py ├── deepImpute.py ├── maskedArrays.py ├── multinet.py ├── parser.py └── util.py ├── examples ├── notebook_example.ipynb └── test.csv ├── makefile ├── setup.py ├── tests ├── deepImpute_test.py ├── maskedArrays_test.py ├── multinet_test.py ├── test_data.py └── util_test.py └── tox.ini /.bumpversion.cfg: -------------------------------------------------------------------------------- 1 | [bumpversion] 2 | files = ./setup.py 3 | commit = True 4 | tag = True 5 | current_version = 1.2 6 | 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *#* 2 | *.egg-info* 3 | dist 4 | *.pyc 5 | .coverage 6 | .vscode 7 | __pycache__ 8 | htmlcov/ 9 | ignore/ 10 | run 11 | .idea/ 12 | .cache/ 13 | .tox/ 14 | .ipynb_checkpoints 15 | ignore/ -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: python 2 | python: 3 | - "3.6" 4 | install: 5 | - pip install . 6 | script: 7 | - pytest 8 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tensorflow/tensorflow 2 | 3 | MAINTAINER Breck Yunits 4 | 5 | RUN apt-get update && apt-get install -y git 6 | 7 | RUN git clone https://github.com/lanagarmire/deepimpute && cd deepimpute && pip install --user . -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Garmire group 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DeepImpute: an accurate and efficient deep learning method for single-cell RNA-seq data imputation 2 | 3 | [![Build Status](https://travis-ci.org/lanagarmire/deepimpute.svg?branch=master)](https://travis-ci.org/lanagarmire/deepimpute) 4 | 5 | Arisdakessian, Cedric, Olivier Poirion, Breck Yunits, Xun Zhu, and Lana Garmire. 6 | "DeepImpute: an accurate, fast and scalable deep neural network method to impute single-cell RNA-Seq data.", *Genome biology* 20.1 (2019): 211" 7 | https://genomebiology.biomedcentral.com/articles/10.1186/s13059-019-1837-6?fbclid=IwAR2wkwBbp_rQBv0muKEYlt-MDZGlJF6sej1sbKJOP58jvXX1XdD98aGuauo 8 | 9 | DeepImpute has been implemented in Python2 and Python3. The recommended version is Python3. 10 | 11 | ## Getting Started 12 | 13 | These instructions will get you a copy of the project up and running on your local machine. 14 | 15 | ### Installing 16 | 17 | You can install DeepImpute's latest release using pip with the following command: 18 | 19 | ```bash 20 | pip install deepimpute 21 | ``` 22 | 23 | To install the latest GitHub version, you can also clone this directory and 24 | install it: 25 | 26 | ```bash 27 | git clone https://github.com/lanagarmire/deepimpute 28 | cd deepimpute 29 | pip install --user . 30 | ``` 31 | 32 | ### Usage 33 | 34 | DeepImpute can be used either on the command line or as a Python package. 35 | 36 | Command line: 37 | 38 | ``` 39 | usage: deepImpute [-h] [-o OUTPUT] [--cores CORES] 40 | [--cell-axis {rows,columns}] [--limit LIMIT] 41 | [--minVMR MINVMR] [--subset SUBSET] 42 | [--learning-rate LEARNING_RATE] [--batch-size BATCH_SIZE] 43 | [--max-epochs MAX_EPOCHS] [--hidden-neurons HIDDEN_NEURONS] 44 | [--dropout-rate DROPOUT_RATE] 45 | [--output-neurons OUTPUT_NEURONS] [--n_pred N_PRED] 46 | [--policy POLICY] 47 | inputFile 48 | 49 | scRNA-seq data imputation using DeepImpute. 50 | 51 | positional arguments: 52 | inputFile Path to input data. 53 | 54 | optional arguments: 55 | -h, --help show this help message and exit 56 | -o OUTPUT, --output OUTPUT 57 | Path to output data counts. Default: ./imputed.csv 58 | --cores CORES Number of cores. Default: all available cores 59 | --cell-axis {rows,columns} 60 | Cell dimension in the matrix. Default: rows 61 | --limit LIMIT Genes to impute (e.g. first 2000 genes). Default: auto 62 | --minVMR MINVMR Min Variance over mean ratio for gene exclusion. Gene 63 | with a VMR below ${minVMR} are discarded. Used if 64 | --limit is set to 'auto'. Default: 0.5 65 | --subset SUBSET Cell subset to speed up training. Either a ratio 66 | (0