{ "info": { "author": "Luis Pedro Coelho", "author_email": "luis@luispedro.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering :: Bio-Informatics", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# NGLessPy: NGLess as a Python Embedded Language\n\nThis is a variation of [NGLess](http://ngless.embl.de) as an embedded language\nin Python, thus enabling processing of next generation data through a Python\nAPI. See the example below.\n\n[![Build Status](https://travis-ci.org/luispedro/nglesspy.svg?branch=master)](https://travis-ci.org/luispedro/nglesspy)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/hyperium/hyper/master/LICENSE)\n[![Join the chat at https://gitter.im/luispedro/ngless](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/luispedro/ngless?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\nThis is **very experimental** and can change at any time. Please [get in\ntouch](mailto:coelho@embl.de) if you want to use it in your work. For\nquestions, you can also use the [ngless mailing\nlist](https://groups.google.com/forum/#!forum/ngless).\n\n## Dependencies\n\n- [requests](http://docs.python-requests.org/)\n- [NGLess](http://ngless.embl.de)\n\nNGLesspy can auto-install ngless if it needs to.\n\nNGLesspy is compatible with Python 2.7 and 3.4+.\n\n## Example\n\n\nInside the [bin/](https://github.com/luispedro/nglesspy/tree/master/bin)\ndirectory, you will find several simple scripts exposing NGLess functionality\nas command line tools. These are also simple examples of how NGLessPy can be\nused.\n\nSee the [tutorial](http://ngless.embl.de/nglesspy.html) for a more thorough\nexplanation of what is going on in the example below.\n\n```python\n from ngless import NGLess\n\n sc = NGLess.NGLess('0.8')\n\n sc.import_('mocat', '0.0')\n e = sc.env\n\n e.sample = sc.load_mocat_sample_('testing')\n\n @sc.preprocess_(e.sample, using='r')\n def proc(bk):\n bk.r = sc.substrim_(bk.r, min_quality=25)\n\n e.mapped = sc.map_(e.sample, reference='hg19')\n e.mapped = sc.select_(e.mapped, keep_if=['{mapped}'])\n\n sc.write_(e.mapped, ofile='ofile.sam')\n\n sc.run()\n```\n\nThis is equivalent to the NGLess script\n\n\n ngless '0.8'\n import 'mocat' version '0.0'\n\n sample = load_mocat_sample('testing')\n\n preprocess_(sample) using='r':\n r = substrim(r, min_quality=25)\n\n mapped = map(sample, reference='hg19')\n mapped = select(mapped, keep_if=[{mapped}])\n\n write(mapped, ofile='ofile.sam')", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://ngless.embl.de/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "NGLessPy", "package_url": "https://pypi.org/project/NGLessPy/", "platform": "Any", "project_url": "https://pypi.org/project/NGLessPy/", "project_urls": { "Homepage": "http://ngless.embl.de/" }, "release_url": "https://pypi.org/project/NGLessPy/0.2.2/", "requires_dist": null, "requires_python": "", "summary": "NGLessPy: Python interface to NGLess", "version": "0.2.2" }, "last_serial": 3938858, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b48f8beacdd1a058bca25b2b84f18e62", "sha256": "1d9cf1ef37d49ead5b591668d9b7e140173a6f6a71826ffa15dce8d037056897" }, "downloads": -1, "filename": "NGLessPy-0.1.tar.gz", "has_sig": false, "md5_digest": "b48f8beacdd1a058bca25b2b84f18e62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10860, "upload_time": "2017-10-14T21:34:43", "url": "https://files.pythonhosted.org/packages/d9/d9/400b008737dcfad04f894808c50c7674746beccbf152601960db6963c175/NGLessPy-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "353a6b407cf7dc48c571a7030b39d119", "sha256": "4ab45020802a4989e61f6931fc8cfc7eeb3176501695cb0d7870d863d7792863" }, "downloads": -1, "filename": "NGLessPy-0.2.tar.gz", "has_sig": false, "md5_digest": "353a6b407cf7dc48c571a7030b39d119", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11090, "upload_time": "2018-06-07T08:44:23", "url": "https://files.pythonhosted.org/packages/ec/7e/cd5f1e5b31e178682677adc406db76108556c61edddf0053a2786ac74ea7/NGLessPy-0.2.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "41e150af27c4b917e18d91b46d03205e", "sha256": "42e3e5df393209c3e55d8d9d6e7b0ec20a20e391a43ff8add054a98bcec50290" }, "downloads": -1, "filename": "NGLessPy-0.2.2.tar.gz", "has_sig": false, "md5_digest": "41e150af27c4b917e18d91b46d03205e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11148, "upload_time": "2018-06-07T08:58:28", "url": "https://files.pythonhosted.org/packages/70/1a/96757923b90d659189e9bfbc9ff3a86a0799664ef7029cf275ab708ffc4f/NGLessPy-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "41e150af27c4b917e18d91b46d03205e", "sha256": "42e3e5df393209c3e55d8d9d6e7b0ec20a20e391a43ff8add054a98bcec50290" }, "downloads": -1, "filename": "NGLessPy-0.2.2.tar.gz", "has_sig": false, "md5_digest": "41e150af27c4b917e18d91b46d03205e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11148, "upload_time": "2018-06-07T08:58:28", "url": "https://files.pythonhosted.org/packages/70/1a/96757923b90d659189e9bfbc9ff3a86a0799664ef7029cf275ab708ffc4f/NGLessPy-0.2.2.tar.gz" } ] }