{ "info": { "author": "Luca Cappelletti", "author_email": "cappelletti.luca94@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3" ], "description": "crr_labels\n=========================================================================================\n|travis| |sonar_quality| |sonar_maintainability| |codacy| |code_climate_maintainability| |pip| |downloads|\n\nPython package wrapping over FANTOM and Roadmap labels for cis-regulatory regions.\n\nHow do I install this package?\n----------------------------------------------\nAs usual, just download it using pip:\n\n.. code:: shell\n\n pip install crr_labels\n\nTests Coverage\n----------------------------------------------\nSince some software handling coverages sometimes get slightly different results, here's three of them:\n\n|coveralls| |sonar_coverage| |code_climate_coverage|\n\nUsage examples\n-----------------------------------------------\nCurrently, we support `FANTOM CAGE data `_ and `Roadmap `_ but in the future an additional\ncis-regulatory dataset based on open chromatin data will be added.\n\nFANTOM\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nTo retrieve the FANTOM promoters and enhancers you can proceed as follows:\n\n.. code:: python\n\n from crr_labels import fantom\n\n enhancers, promoters = fantom(\n cell_lines=[\"HelaS3\", \"GM12878\"], # list of cell lines to be considered.\n window_size=200, # window size to use for the various regions.\n genome = \"hg19\", # considered genome version. Currently supported only \"hg19\".\n center_enhancers = \"peak\", # how to center the enhancer window, either around \"peak\" or the \"center\" of the region.\n enhancers_threshold = 0, # activation threshold for the enhancers.\n promoters_threshold = 5, # activation threshold for the promoters.\n drop_always_inactive_rows = True, # whether to drop the rows where no activation is detected for every row.\n binarize = True, # whether to return the data binary-encoded, zero for inactive, one for active.\n nrows = None # the number of rows to read, useful when testing pipelines for creating smaller datasets.\n )\n\nThe library will download and parse the fantom project raw data and return two DataFrames for the required cell lines.\nConsider reading the method docstring for more in-depth information about the method.\n\nThe main steps are the following:\n\n- The raw files are retrieved from the fantom dataset from the link specified in the `fantom_data.json file `_\n- The window for the enhancers and promoters are expanded or compressed to the given window size. In particular:\n\n - The enhancers' window can either be centered on the region center with the \"center\" mode or around the \"peak\" with the \"peak\" mode.\n - The promoters' window is upstream in the positive strand from the end of the promoter and downstream on the negative strand from the start of the promoter.\n- When multiple experiments are present for a cell line, for instance for \"HelaS3\", an average of the activation peaks is executed.\n- Optionally (and by default) the rows that are always inactive for the chosen cell lines are dropped. You can specify this behaviour using the parameter \"drop_always_inactive_rows\".\n\n\nRoadmap\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\nTo retrieve the Roadmap promoters and enhancers you can proceed as follows:\n\n.. code:: python\n\n from crr_labels import roadmap\n\n enhancers, promoters = roadmap(\n cell_lines = [\"HelaS3\", \"GM12878\"], # List of cell lines to be considered.\n window_size = 200, # Window size to use for the various regions.\n genome = \"hg19\", # Considered genome version. Currently supported only \"hg19\".\n states = 18, # Number of the states of the model to consider. Currently supported only \"15\" and \"18\".\n enhancers_labels = (\"7_Enh\", \"9_EnhA1\", \"10_EnhA2\"), # Labels to encode as active enhancers.\n promoters_labels = (\"1_TssA\",), # Labels to enode as active promoters.\n nrows = None # the number of rows to read, useful when testing pipelines for creating smaller datasets.\n )\n\nConsider reading the method docstring for more in-depth information about the method.\n\nRendered datasets\n----------------------------------\nThe following two datasets have labels for 7 common cell lines (GM12878, HelaS3, HepG2, K562, A549, H1, H9) and for various other that were not available in the other dataset.\n\nFANTOM\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nThe following datasets contain data for the cell lines GM12878, HelaS3, HepG2, K562, A549, H1, H9, JURKAT, MCF7, HEK293, Caco2, HL60 and PC3.\n\nTODO: Render the datasets\n\nRoadmap\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nThe following datasets contain data for the cell lines GM12878, HelaS3, HepG2, K562, A549, H1, H9, DND41, HUES48, HUES6, HUES64 and IMR90.\n\nTODO: The updated processed labels will be added as soon as we decide on the new states to be used.\n\n.. |travis| image:: https://travis-ci.org/LucaCappelletti94/crr_labels.png\n :target: https://travis-ci.org/LucaCappelletti94/crr_labels\n :alt: Travis CI build\n\n.. |sonar_quality| image:: https://sonarcloud.io/api/project_badges/measure?project=LucaCappelletti94_crr_labels&metric=alert_status\n :target: https://sonarcloud.io/dashboard/index/LucaCappelletti94_crr_labels\n :alt: SonarCloud Quality\n\n.. |sonar_maintainability| image:: https://sonarcloud.io/api/project_badges/measure?project=LucaCappelletti94_crr_labels&metric=sqale_rating\n :target: https://sonarcloud.io/dashboard/index/LucaCappelletti94_crr_labels\n :alt: SonarCloud Maintainability\n\n.. |sonar_coverage| image:: https://sonarcloud.io/api/project_badges/measure?project=LucaCappelletti94_crr_labels&metric=coverage\n :target: https://sonarcloud.io/dashboard/index/LucaCappelletti94_crr_labels\n :alt: SonarCloud Coverage\n\n.. |coveralls| image:: https://coveralls.io/repos/github/LucaCappelletti94/crr_labels/badge.svg?branch=master\n :target: https://coveralls.io/github/LucaCappelletti94/crr_labels?branch=master\n :alt: Coveralls Coverage\n\n.. |pip| image:: https://badge.fury.io/py/crr-labels.svg\n :target: https://badge.fury.io/py/crr-labels\n :alt: Pypi project\n\n.. |downloads| image:: https://pepy.tech/badge/crr-labels\n :target: https://pepy.tech/badge/crr-labels\n :alt: Pypi total project downloads \n\n.. |codacy| image:: https://api.codacy.com/project/badge/Grade/c0a7e110045a4d25933c65fe2014a33c\n :target: https://www.codacy.com/manual/LucaCappelletti94/crr_labels?utm_source=github.com&utm_medium=referral&utm_content=LucaCappelletti94/crr_labels&utm_campaign=Badge_Grade\n :alt: Codacy Maintainability\n\n.. |code_climate_maintainability| image:: https://api.codeclimate.com/v1/badges/7c18ec5176f2ebebef96/maintainability\n :target: https://codeclimate.com/github/LucaCappelletti94/crr_labels/maintainability\n :alt: Maintainability\n\n.. |code_climate_coverage| image:: https://api.codeclimate.com/v1/badges/7c18ec5176f2ebebef96/test_coverage\n :target: https://codeclimate.com/github/LucaCappelletti94/crr_labels/test_coverage\n :alt: Code Climate Coverate", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/LucaCappelletti94/crr_labels", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "crr-labels", "package_url": "https://pypi.org/project/crr-labels/", "platform": "", "project_url": "https://pypi.org/project/crr-labels/", "project_urls": { "Homepage": "https://github.com/LucaCappelletti94/crr_labels" }, "release_url": "https://pypi.org/project/crr-labels/1.1.1/", "requires_dist": null, "requires_python": "", "summary": "Python package wrapping over FANTOM and Roadmap labels for cis regulatory regions.", "version": "1.1.1", "yanked": false, "yanked_reason": null }, "last_serial": 10537380, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "a418e176f7a4e4627b01b8d5d6cad5ca", "sha256": "07f3946f905f4caa2cba5f86d220172c6e98af61aa2cf89e60004ea0a7c50fcf" }, "downloads": -1, "filename": "crr_labels-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a418e176f7a4e4627b01b8d5d6cad5ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9189, "upload_time": "2019-10-30T16:58:54", "upload_time_iso_8601": "2019-10-30T16:58:54.303891Z", "url": "https://files.pythonhosted.org/packages/e7/35/4ffbb339a23fb8c8aa85c49b4388cbb8e9b5f2a41c6206322eaef3998557/crr_labels-1.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "03b217aec17bad216fb8d839b2146c87", "sha256": "0ed75e1c75791d952e9996fd85d2d1e8e26df954b7e51d1252cd2def3cd275d1" }, "downloads": -1, "filename": "crr_labels-1.0.1.tar.gz", "has_sig": false, "md5_digest": "03b217aec17bad216fb8d839b2146c87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13001, "upload_time": "2019-11-01T13:54:21", "upload_time_iso_8601": "2019-11-01T13:54:21.539316Z", "url": "https://files.pythonhosted.org/packages/66/95/5e84e43dddf63237faf5b4a0730f5d6dcf98abfb7109eb0678c1e1fd51f4/crr_labels-1.0.1.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "f1ed380613500e6341ad65478297e18e", "sha256": "7591241f4afe550cf2b22243168e3902a7b6657c44bf47a9b94b2f33857e5712" }, "downloads": -1, "filename": "crr_labels-1.0.2.tar.gz", "has_sig": false, "md5_digest": "f1ed380613500e6341ad65478297e18e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11915, "upload_time": "2019-11-03T11:11:37", "upload_time_iso_8601": "2019-11-03T11:11:37.003601Z", "url": "https://files.pythonhosted.org/packages/e7/db/9a8afcf1f6e066e6f73b46f207239fd638ec1548a2da15f8f60ee598ddda/crr_labels-1.0.2.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "e6d1c419cc29d1d1bbafade501537ac9", "sha256": "3418b7b014442640d306c248d42296a6a7a3aec731affdd0fc2342db9c76368f" }, "downloads": -1, "filename": "crr_labels-1.0.3.tar.gz", "has_sig": false, "md5_digest": "e6d1c419cc29d1d1bbafade501537ac9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12280, "upload_time": "2019-11-03T11:31:31", "upload_time_iso_8601": "2019-11-03T11:31:31.482692Z", "url": "https://files.pythonhosted.org/packages/06/d4/e5bf9401f6140cded26972d47d4d22733d64ef35cb1501aba281be3be4d6/crr_labels-1.0.3.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "4cd93412810a1fdf25ce5751dba291c5", "sha256": "9a4d5f54f4a8876a8515217ef10a52cd4db6957e9c30a6910edb28d4276a59ed" }, "downloads": -1, "filename": "crr_labels-1.0.4.tar.gz", "has_sig": false, "md5_digest": "4cd93412810a1fdf25ce5751dba291c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12806, "upload_time": "2019-11-07T16:07:09", "upload_time_iso_8601": "2019-11-07T16:07:09.079850Z", "url": "https://files.pythonhosted.org/packages/ed/f2/79ce071e8133be9ba310659e2f039c2cc9535ac4d86439428c6df18ea0b0/crr_labels-1.0.4.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "4b208308f3cd624b8baf473862a92657", "sha256": "30d7ae587e313b2bb88d45a7dfcdb96650b8c1b05e7c4167482f828323bf8a1e" }, "downloads": -1, "filename": "crr_labels-1.0.5.tar.gz", "has_sig": false, "md5_digest": "4b208308f3cd624b8baf473862a92657", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12788, "upload_time": "2019-11-07T16:10:14", "upload_time_iso_8601": "2019-11-07T16:10:14.787194Z", "url": "https://files.pythonhosted.org/packages/5a/a6/4ea458de1e571ad03eb1bc8e595457440f4483e821ed6c875e5dab77a8ae/crr_labels-1.0.5.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "2ff9999e84d3e690594e048ef60f5e9c", "sha256": "c765288e30bc062dc87a053c964e1e5b25bb01d993ae575d75c700d885585b6a" }, "downloads": -1, "filename": "crr_labels-1.0.6.tar.gz", "has_sig": false, "md5_digest": "2ff9999e84d3e690594e048ef60f5e9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12312, "upload_time": "2020-01-07T16:49:13", "upload_time_iso_8601": "2020-01-07T16:49:13.002109Z", "url": "https://files.pythonhosted.org/packages/28/58/4693a0b021aed326658cf462a06c528c3ac4fc999749220408abb481a61e/crr_labels-1.0.6.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "f1b407b31395acff06295a0cd27c6f98", "sha256": "d0ab1ecdb2d37cf6162da97bc7d7204714460cfdde122b033baf6d659b9cb599" }, "downloads": -1, "filename": "crr_labels-1.0.7.tar.gz", "has_sig": false, "md5_digest": "f1b407b31395acff06295a0cd27c6f98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12368, "upload_time": "2020-03-06T20:19:31", "upload_time_iso_8601": "2020-03-06T20:19:31.914687Z", "url": "https://files.pythonhosted.org/packages/8c/ad/41f2bbf48bd3259478f7af075518a4a7ac0da09ddc28a6ad9c1f4ab6d79e/crr_labels-1.0.7.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "855c9cd41704aba2d0c957e601c2d18d", "sha256": "e19d9db0ad2192872f0dc61694f475e4ec2396f54c9e5cf11f26e2f5d84ef30f" }, "downloads": -1, "filename": "crr_labels-1.0.8.tar.gz", "has_sig": false, "md5_digest": "855c9cd41704aba2d0c957e601c2d18d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12377, "upload_time": "2020-03-18T17:06:42", "upload_time_iso_8601": "2020-03-18T17:06:42.457338Z", "url": "https://files.pythonhosted.org/packages/80/03/4c8549a140831e1babfabae423793eeea4e7a89cfcbf7977b5c22d309e87/crr_labels-1.0.8.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "3465e8a6d058a89b32b2cbab58839a1e", "sha256": "97135be4d08122198ad9143e1796ec6e648db4b0503825975b41c38361ff48e4" }, "downloads": -1, "filename": "crr_labels-1.0.9.tar.gz", "has_sig": false, "md5_digest": "3465e8a6d058a89b32b2cbab58839a1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12479, "upload_time": "2020-07-28T10:32:56", "upload_time_iso_8601": "2020-07-28T10:32:56.430224Z", "url": "https://files.pythonhosted.org/packages/a1/28/6ff463aa48cbcacd39a5748889c0027642460755baafb340452c0bdc252f/crr_labels-1.0.9.tar.gz", "yanked": false, "yanked_reason": null } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "5ba727968222d40c345002d721761528", "sha256": "5c692240a6397d37625c6bd06fb7ed7669c7f634e5ffd237a9f6f8afc61946b1" }, "downloads": -1, "filename": "crr_labels-1.1.0.tar.gz", "has_sig": false, "md5_digest": "5ba727968222d40c345002d721761528", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13151, "upload_time": "2020-11-28T10:19:18", "upload_time_iso_8601": "2020-11-28T10:19:18.550424Z", "url": "https://files.pythonhosted.org/packages/87/45/fa9671911064e2847e80b48ae91b159abc3e64e549ca319e29813047ec53/crr_labels-1.1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "39470bd7b83e9e77ed515d5e849a4a96", "sha256": "c8ae241d058aabc5e737e82f497e375c12bb160073a02934401ff9bf52835d29" }, "downloads": -1, "filename": "crr_labels-1.1.1.tar.gz", "has_sig": false, "md5_digest": "39470bd7b83e9e77ed515d5e849a4a96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12024, "upload_time": "2021-06-02T12:13:09", "upload_time_iso_8601": "2021-06-02T12:13:09.913234Z", "url": "https://files.pythonhosted.org/packages/a9/cb/0fd51b6e8c3a601a3def27c01d3c60c843cbe210407443dcd0886d688aec/crr_labels-1.1.1.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "39470bd7b83e9e77ed515d5e849a4a96", "sha256": "c8ae241d058aabc5e737e82f497e375c12bb160073a02934401ff9bf52835d29" }, "downloads": -1, "filename": "crr_labels-1.1.1.tar.gz", "has_sig": false, "md5_digest": "39470bd7b83e9e77ed515d5e849a4a96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12024, "upload_time": "2021-06-02T12:13:09", "upload_time_iso_8601": "2021-06-02T12:13:09.913234Z", "url": "https://files.pythonhosted.org/packages/a9/cb/0fd51b6e8c3a601a3def27c01d3c60c843cbe210407443dcd0886d688aec/crr_labels-1.1.1.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }