{ "info": { "author": "Jakub Bartoszewicz", "author_email": "bartoszewiczj@rki.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Bio-Informatics" ], "description": "\n\n# DeePaC\n\nDeePaC is a python package and a CLI tool for predicting labels (e.g. pathogenic potentials) from short DNA sequences (e.g. Illumina \nreads) with reverse-complement neural networks. For details, see our preprint on bioRxiv: \n.\n\nDocumentation can be found here:\n.\n\n\n## Installation\n\n### Recommended: virtual environment\n\nWe recomment setting up an isolated `conda` environment:\n```\nconda create -n my_env\nconda activate my_env\n```\n\nor a `virtualenv`:\n```\nvirtualenv --system-site-packages my_env\nsource my_env/bin/activate\n```\n\n\n### With conda\n [![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat)](http://bioconda.github.io/recipes/deepac/README.html)\n\nYou can install DeePaC with `bioconda`. Set up the [bioconda channel](\n) first, and then:\n```\nconda install deepac\n```\n\n### With pip\n\nYou can also install DeePaC with `pip`:\n```\npip install deepac\n```\n\n### GPU support\n\nTo use GPUs, you need to install the GPU version of TensorFlow. In conda, install tensorflow-gpu from the `defaults` channel before deepac:\n```\nconda remove tensorflow\nconda install -c defaults tensorflow-gpu \nconda install deepac\n```\n\nIf you're using `pip`, you need to install CUDA and CuDNN first (see TensorFlow installation guide for details). Then\nyou can do the same as above:\n```\npip uninstall tensorflow\npip install tensorflow-gpu\n```\n\n### Optional: run tests\nOptionally, you can run explicit tests of your installation. Note that it may take some time on a CPU.\n```\ndeepac test \n# Test using a GPU\ndeepac test -g 1\n```\n\n### Help\n\nTo see help, just use\n```\ndeepac --help\ndeepac predict --help\ndeepac train --help\n# Etc.\n```\n\n## Prediction\n\nYou can predict pathogenic potentials with one of the built-in models out of the box:\n```\n# A rapid CNN (trained on IMG/M data)\ndeepac predict -r input.fasta\n# A sensitive LSTM (trained on IMG/M data)\ndeepac predict -s input.fasta\n# With GPU support\ndeepac predict -s -g 1 input.fasta\n```\n\nThe rapid and the sensitive models are trained to predict pathogenic potentials of novel bacterial species.\nFor details, see .\n\nTo quickly filter your data according to predicted pathogenic potentials, you can use:\n```\ndeepac predict -r input.fasta\ndeepac filter input.fasta input_predictions.npy -t 0.5\n```\nNote that after running `predict`, you can use the `input_predictions.npy` to filter your fasta file with different\nthresholds. You can also add pathogenic potentials to the fasta headers in the output files:\n```\ndeepac filter input.fasta input_predictions.npy -t 0.75 -p -o output-75.fasta\ndeepac filter input.fasta input_predictions.npy -t 0.9 -p -o output-90.fasta\n```\n\n## Preprocessing\n\nFor more complex analyzes, it can be useful to preprocess the fasta files by converting them to binary numpy arrays. Use:\n```\ndeepac preproc preproc_config.ini\n```\nSee the `config_templates` directory of the GitLab repository (https://gitlab.com/rki_bioinformatics/DeePaC/) for a sample configuration file.\n\n## Training\nYou can use the built-in architectures to train a new model:\n```\ndeepac train -r -g 1 -T train_data.npy -t train_labels.npy -V val_data.npy -v val_labels.npy\ndeepac train -s -g 1 -T train_data.npy -t train_labels.npy -V val_data.npy -v val_labels.npy\n\n```\n\nTo train a new model based on you custom configuration, use\n```\ndeepac train -c nn_train_config.ini\n```\n\nIf you train an LSTM on a GPU, a CUDNNLSTM implementation will be used. To convert the resulting model to be \nCPU-compatible, use `deepac convert`. You can also use it to save the weights of a model, or recompile a model \nfrom a set of weights to use it with a different Python binary.\n\n## Evaluation\n\nTo evaluate a trained model, use\n```\n# Read-by-read performance\ndeepac eval -r eval_config.ini\n# Species-by-species performance\ndeepac eval -s eval_species_config.ini\n# Ensemble performance\ndeepac eval -e eval_ens_config.ini\n```\nSee the configs directory for sample configuration files. Note that `deepac eval -s` requires precomputed predictions \nand a csv file with a number of DNA reads for each species in each of the classes.\n\n## Supplementary data and scripts\n\nIn the supplement_paper directory you can find the R scripts and data files used in the paper for dataset preprocessing and benchmarking.\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/rki_bioinformatics/DeePaC", "keywords": "deep learning DNA sequencing synthetic biology pathogenicity prediction", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "deepac", "package_url": "https://pypi.org/project/deepac/", "platform": "", "project_url": "https://pypi.org/project/deepac/", "project_urls": { "Homepage": "https://gitlab.com/rki_bioinformatics/DeePaC" }, "release_url": "https://pypi.org/project/deepac/0.9.3/", "requires_dist": [ "keras (>=2.2.4)", "tensorflow", "biopython", "scikit-learn", "matplotlib", "numpy", "h5py", "psutil" ], "requires_python": ">=3", "summary": "Predicting pathogenic potentials of novel DNA with reverse-complement neural networks.", "version": "0.9.3" }, "last_serial": 5262267, "releases": { "0.9": [ { "comment_text": "", "digests": { "md5": "ab08bb1a2619b4045f3fd88d95a35775", "sha256": "02aae2a5acc16449f0e38835ff47eb790507b0a1a5daf12a0cf1e1db26070744" }, "downloads": -1, "filename": "deepac-0.9-py3-none-any.whl", "has_sig": false, "md5_digest": "ab08bb1a2619b4045f3fd88d95a35775", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 34749201, "upload_time": "2019-04-03T08:52:55", "url": "https://files.pythonhosted.org/packages/2c/c3/cacfedc55f3c53d9ee441f1e8f38563da8f9fe338705d47a3edf49c11de4/deepac-0.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fe077056d05e6625bab023e6d097da9f", "sha256": "32d637e734a680f6ee1d18dbccdf30ef48c37afe21f224f65734b0ac91db5be7" }, "downloads": -1, "filename": "deepac-0.9.tar.gz", "has_sig": false, "md5_digest": "fe077056d05e6625bab023e6d097da9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34744763, "upload_time": "2019-04-03T08:53:39", "url": "https://files.pythonhosted.org/packages/4c/8b/2518639c2278de7ea88f51cdc045fc7f14bdf9802298ed5b1d362db25e36/deepac-0.9.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "41facb6a517f92243732d95443ce60fe", "sha256": "b1d502a4e52c5388cc4b4a35e98b2a44681e3e683d18f870c3b9bd3d784a5129" }, "downloads": -1, "filename": "deepac-0.9.1-py3-none-any.whl", "has_sig": false, "md5_digest": "41facb6a517f92243732d95443ce60fe", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 34749823, "upload_time": "2019-04-11T22:47:35", "url": "https://files.pythonhosted.org/packages/33/38/090b7be1f7741b0e0168fce96a828a0b3eacbff92d070ad3358f3d83af72/deepac-0.9.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "736b6037a65c3914c82095f3f7f1b9f2", "sha256": "dc6976b26bb46d8b1f725ab1202e3862ea405d3c664df4cc3a487d4f66d6cdd8" }, "downloads": -1, "filename": "deepac-0.9.1.tar.gz", "has_sig": false, "md5_digest": "736b6037a65c3914c82095f3f7f1b9f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34745696, "upload_time": "2019-04-11T22:48:22", "url": "https://files.pythonhosted.org/packages/1b/a3/846d8f6c77beabf246642cbb6bbf370dc785529f810fe82c9e19b779c488/deepac-0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "0f56dfce87628d4a94205204b2fc9212", "sha256": "02293b8cc7af5728743857b491ccff3fc134a72614c9faa9c1f8a8b917f788d4" }, "downloads": -1, "filename": "deepac-0.9.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0f56dfce87628d4a94205204b2fc9212", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 34750286, "upload_time": "2019-04-15T20:05:12", "url": "https://files.pythonhosted.org/packages/6f/e4/49759ae0d3ad9c2efbd92d6ff847eb807965d9d638bca7d464ca0c768fd2/deepac-0.9.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b3f94396d6c7593ccc2a9215d101a8ec", "sha256": "eaf429fa5e94c2bd38e465752acd5bd4730df2772316ab08a020dbb500a985ae" }, "downloads": -1, "filename": "deepac-0.9.2.tar.gz", "has_sig": false, "md5_digest": "b3f94396d6c7593ccc2a9215d101a8ec", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 34746416, "upload_time": "2019-04-15T20:05:55", "url": "https://files.pythonhosted.org/packages/23/01/0f8412077944bf2df700a0f8611aa2306ca0305b87e98709bf2d9a058644/deepac-0.9.2.tar.gz" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "0875d7946e909980496ee272b952b521", "sha256": "0d8f419738ecddca0ffe211e17fa16c17a69f1e0d00b4738fd7444f728256ffc" }, "downloads": -1, "filename": "deepac-0.9.3-py3-none-any.whl", "has_sig": false, "md5_digest": "0875d7946e909980496ee272b952b521", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 34756447, "upload_time": "2019-05-13T13:22:00", "url": "https://files.pythonhosted.org/packages/a9/05/1bd8d43ac2f4ed8bfb8e5b4b71d0f40ed85790c582c27f833344178b8642/deepac-0.9.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9d8c1a01e25f1f950ed43685a9348767", "sha256": "c65a5135d58e90ee50d2843b8bc0bba66116e629482afe73eac437a8a1d9a3e9" }, "downloads": -1, "filename": "deepac-0.9.3.tar.gz", "has_sig": false, "md5_digest": "9d8c1a01e25f1f950ed43685a9348767", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 34750594, "upload_time": "2019-05-13T13:22:50", "url": "https://files.pythonhosted.org/packages/0e/ca/2c50cf3d8130c22370323af021964333bc21997c950d417f250667f8934e/deepac-0.9.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0875d7946e909980496ee272b952b521", "sha256": "0d8f419738ecddca0ffe211e17fa16c17a69f1e0d00b4738fd7444f728256ffc" }, "downloads": -1, "filename": "deepac-0.9.3-py3-none-any.whl", "has_sig": false, "md5_digest": "0875d7946e909980496ee272b952b521", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 34756447, "upload_time": "2019-05-13T13:22:00", "url": "https://files.pythonhosted.org/packages/a9/05/1bd8d43ac2f4ed8bfb8e5b4b71d0f40ed85790c582c27f833344178b8642/deepac-0.9.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9d8c1a01e25f1f950ed43685a9348767", "sha256": "c65a5135d58e90ee50d2843b8bc0bba66116e629482afe73eac437a8a1d9a3e9" }, "downloads": -1, "filename": "deepac-0.9.3.tar.gz", "has_sig": false, "md5_digest": "9d8c1a01e25f1f950ed43685a9348767", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 34750594, "upload_time": "2019-05-13T13:22:50", "url": "https://files.pythonhosted.org/packages/0e/ca/2c50cf3d8130c22370323af021964333bc21997c950d417f250667f8934e/deepac-0.9.3.tar.gz" } ] }