{ "info": { "author": "Guanliang MENG", "author_email": "mengguanliang@genomics.cn", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Bio-Informatics" ], "description": "# taxonomy-ranks\n\n## 1 Introduction\nTo get taxonomy ranks information with ETE3 Python3 module (`http://etetoolkit.org/`)\n\n## 2 Installation\n\nMake sure your `pip` is from Python3\n\n\t$ which pip\n\t/Users/mengguanliang/soft/miniconda3/bin/pip\n\t\nthen type\n\n $ pip install taxonomy_ranks\n\nThere will be a command `taxaranks` created under the same directory where your `pip` command located.\n\n\nIf you want to learn more about Python3 and `pip`, please refer to `https://www.python.org/` and `https://docs.python.org/3/tutorial/venv.html?highlight=pip`.\n\n## 3 Usage\n\t\n\t$ taxaranks\n\n\ttaxaranks \n\t\n\tThe 'taxonomy_list' file can be a list of ncbi taxa id or species names (or higher ranks, e.g. Family, Order), or a mixture of them.\n\t\n\tete3 package will automatically download the NCBI Taxonomy database during the first time using of this program.\n\t\n\t\nOnce the NCBI Taxonomy database has been installed, there is no need to connect to the network any more, unless you want to update the database after a period of time, for this case, please go to `http://etetoolkit.org/docs/latest/tutorial/tutorial_ncbitaxonomy.html` for more details.\n\n### using as a module\n\nA taxa_name may have more than one potential_taxid.\n\n\t\t>>>from taxonomy_ranks import TaxonomyRanks\n\t >>>rank_taxon = TaxonomyRanks(taxa_name)\n\t >>>rank_taxon.get_lineage_taxids_and_taxanames()\n\t >>>ranks = ('user_taxa', 'taxa_searched', 'superkingdom', 'kingdom', 'superphylum', 'phylum', 'subphylum', 'superclass', 'class', 'subclass', 'superorder', 'order', 'suborder', 'superfamily', 'family', 'subfamily', 'genus', 'subgenus', 'species')\n\t >>>for rank in ranks:\n\t >>> print(rank, rank_taxon.lineages[potential_taxid][rank])\n\n## 4 Example\n\nrun \n\n\t$ taxaranks test.taxa test.taxa.out\n\nInput file `test.taxa`content:\n\t\n\tSpodoptera litura\n\tPieris rapae\n\tLocusta migratoria\n\tFrankliniella occidentalis\n\tMarsupenaeus japonicus\n\tPenaeus monodon\n\nResult file `test.taxa.out` content:\n\n\tsuperkingdom\tkingdom\tsuperphylum\tphylum\tsubphylum\tsuperclass\tclass\tsubclass\tsuperorder\tordersuborder\tsuperfamily\tfamily\tsubfamily\tgenus\tsubgenus\tspecies\n\tEukaryota\tMetazoa\tNA\tArthropoda\tHexapoda\tNA\tNA\tPterygota\tNA\tLepidoptera\tGlossata\tNoctuoidea\tNoctuidae\tAmphipyrinae\tSpodoptera\tNA\tSpodoptera litura\n\tEukaryota\tMetazoa\tNA\tArthropoda\tHexapoda\tNA\tNA\tPterygota\tNA\tLepidoptera\tGlossata\tPapilionoidea\tPieridae\tPierinae\tPieris\tNA\tPieris rapae\n\tEukaryota\tMetazoa\tNA\tArthropoda\tHexapoda\tNA\tNA\tPterygota\tNA\tOrthoptera\tCaelifera\tAcridoidea\tAcrididae\tOedipodinae\tLocusta\tNA\tLocusta migratoria\n\tEukaryota\tMetazoa\tNA\tArthropoda\tHexapoda\tNA\tNA\tPterygota\tNA\tThysanoptera\tTerebrantia\tThripoidea\tThripidae\tThripinae\tFrankliniella\tNA\tFrankliniella occidentalis\n\tEukaryota\tMetazoa\tNA\tArthropoda\tCrustacea\tMulticrustacea\tNA\tEumalacostraca\tEucarida\tDecapoda\tDendrobranchiata\tPenaeoidea\tPenaeidae\tNA\tMarsupenaeus\tNA\tMarsupenaeus japonicus\n\tEukaryota\tMetazoa\tNA\tArthropoda\tCrustacea\tMulticrustacea\tNA\tEumalacostraca\tEucarida\tDecapoda\tDendrobranchiata\tPenaeoidea\tPenaeidae\tNA\tPenaeus\tNA\tPenaeus monodon\n\n## 5 Problems\n### Your HOME directory runs out of space when downloading and installing the NCBI Taxonomy database during the first time using of this program.\n\nThe error message can be:\n\t\n\tsqlite3.OperationalEoor: disk I/O error\n\nThis is caused by `ete3` which will create a directory `~/.etetoolkit` to store the databse (ca. 500M), however, your HOME directory does not have enough space left.\n\n*Solutions:* \nThe solution is obvious. \n\n1. create a directory somewhere else that have enough space left:\n\n\t\t$ mkdir /other/place/myetetoolkit\n\n\n2. remove the directory `~/.etetoolkit` created by `ete3`:\n\n\t\t$ rm -rf ~/.etetoolkit\n\t\n\n3. link your new directory to the HOME directory:\n\n\t\t$ ln -s /other/place/myetetoolkit ~/.etetoolkit\n\t\t\n4. run the program again:\n\n\t\t$ taxaranks my_taxonomy_list outfile\n\nThis way, ete3 should work as expected.\n\n\n### Update the NCBI taxonomy database\nFor more details, refer to `http://etetoolkit.org/docs/latest/tutorial/tutorial_ncbitaxonomy.html`.\n\n1. open a console, and type\n\t\n\t\t$ python3\n\n\tYou will enter the Python3 command line status.\n\n2. excute following commands in Python3\n\t\t\n\t\t>from ete3 import NCBITaxa\n\t\t>ncbi = NCBITaxa()\n\t\t>ncbi.update_taxonomy_database()\n\n\n## 6 Citations\nCurrently, I have no plan to publish `taxonomy-ranks`.\n\nHowever, since `taxonomy-ranks` makes use of the `ete3` toolkit, you should cite it if you use `taxonomy-ranks` in your publications. \n\n\tETE 3: Reconstruction, analysis and visualization of phylogenomic data.\n\tJaime Huerta-Cepas, Francois Serra and Peer Bork. \n\tMol Biol Evol 2016; doi: 10.1093/molbev/msw046\n\nPlease go to `http://etetoolkit.org/` for more details.\n\n## 7 Author\n\nGuanliang MENG. \n\nlinzhi2012 at gmail.com", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://mengguanliang.com", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "taxonomy-ranks", "package_url": "https://pypi.org/project/taxonomy-ranks/", "platform": "", "project_url": "https://pypi.org/project/taxonomy-ranks/", "project_urls": { "Homepage": "http://mengguanliang.com" }, "release_url": "https://pypi.org/project/taxonomy-ranks/0.0.7/", "requires_dist": null, "requires_python": ">=3", "summary": "To get taxonomy ranks information with ETE3 from NCBI Taxonomy database.", "version": "0.0.7" }, "last_serial": 4348727, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "2069441c35c806d8a8b35d96d9d0a9c8", "sha256": "649d15c08623edff8485f05a8c66953cc6737610dfeda67f233d0766f8575cb6" }, "downloads": -1, "filename": "taxonomy_ranks-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2069441c35c806d8a8b35d96d9d0a9c8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 15558, "upload_time": "2018-07-04T01:15:57", "url": "https://files.pythonhosted.org/packages/d3/3f/a83ead37caa7d90898960ab355de63f8b1a9d33afc8db65f03009793b40f/taxonomy_ranks-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "dfbb9423ccbc6e4e2fc5c74d9fc0b4e2", "sha256": "768123fd8ea6792932951b26da0dfeb58f0a160da36ab7abee531ce52857e10d" }, "downloads": -1, "filename": "taxonomy_ranks-0.0.2.tar.gz", "has_sig": false, "md5_digest": "dfbb9423ccbc6e4e2fc5c74d9fc0b4e2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 15621, "upload_time": "2018-07-04T01:39:18", "url": "https://files.pythonhosted.org/packages/1c/eb/4f22e615191babf5fdc27fa779c48e57ea0a292e8d7d0d78d0d8d18cc1a4/taxonomy_ranks-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "662c33ee82caf589b394e7791073c454", "sha256": "d716ccc370cf00aa42ee2432ca1baf56fbff6bc113ff485b950f1368b990bdc4" }, "downloads": -1, "filename": "taxonomy_ranks-0.0.3.tar.gz", "has_sig": false, "md5_digest": "662c33ee82caf589b394e7791073c454", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 15618, "upload_time": "2018-07-04T01:42:05", "url": "https://files.pythonhosted.org/packages/23/dc/a891afd0ac6dcc07f997658737942f893261f81091f76a8bd09927844472/taxonomy_ranks-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "820c7c5091547dd0f7cc93eb699e9f3a", "sha256": "e0b251c964d4dfb93b084533099c0597e2aa141a947a22efef9ee17ba3b582fc" }, "downloads": -1, "filename": "taxonomy_ranks-0.0.4.tar.gz", "has_sig": false, "md5_digest": "820c7c5091547dd0f7cc93eb699e9f3a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 19404, "upload_time": "2018-07-26T03:53:48", "url": "https://files.pythonhosted.org/packages/5b/8c/f53017093341939ceeec74eddd44af7100d2403fd807f20080ecb519972a/taxonomy_ranks-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "4bc135fde7eaf0af6fc202f930286cd3", "sha256": "0f2abc6112db5d1efa2a836fdcbfb884477aeeb9d2fb25500df8d4c2f0bf7671" }, "downloads": -1, "filename": "taxonomy_ranks-0.0.5.tar.gz", "has_sig": false, "md5_digest": "4bc135fde7eaf0af6fc202f930286cd3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 19596, "upload_time": "2018-10-07T03:39:05", "url": "https://files.pythonhosted.org/packages/1c/bc/9ce57f9c72e57b8feb3d57952390436ec40044b06a6aad17c5e510089af0/taxonomy_ranks-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "95fd2a9b56b3cfce1cfc7ccc49389037", "sha256": "bec195fb4d7a2907dad9633bc03799c78c48ce0c037e0d3445eabdfa354ea6f8" }, "downloads": -1, "filename": "taxonomy_ranks-0.0.6.tar.gz", "has_sig": false, "md5_digest": "95fd2a9b56b3cfce1cfc7ccc49389037", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 19851, "upload_time": "2018-10-07T06:29:59", "url": "https://files.pythonhosted.org/packages/2a/7b/31ad65533148165268960ebf9cd6133b7542e227ec17650e98b73bb3ef52/taxonomy_ranks-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "e45d9691acdd8ef0523d62114686200b", "sha256": "4e89a428dcfd92b51e936ed948fadd047558d207b889833ba13cddbad193f5e0" }, "downloads": -1, "filename": "taxonomy_ranks-0.0.7.tar.gz", "has_sig": false, "md5_digest": "e45d9691acdd8ef0523d62114686200b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 19975, "upload_time": "2018-10-07T07:08:59", "url": "https://files.pythonhosted.org/packages/01/b5/6200657acb02eabeb4a80542ff7e650208cb406f52ee94be81efd758f114/taxonomy_ranks-0.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e45d9691acdd8ef0523d62114686200b", "sha256": "4e89a428dcfd92b51e936ed948fadd047558d207b889833ba13cddbad193f5e0" }, "downloads": -1, "filename": "taxonomy_ranks-0.0.7.tar.gz", "has_sig": false, "md5_digest": "e45d9691acdd8ef0523d62114686200b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 19975, "upload_time": "2018-10-07T07:08:59", "url": "https://files.pythonhosted.org/packages/01/b5/6200657acb02eabeb4a80542ff7e650208cb406f52ee94be81efd758f114/taxonomy_ranks-0.0.7.tar.gz" } ] }