Python分类工具带

pytaxize的Python项目详细描述


化脓

docstraviscoverageblack

这是R包taxize的一个端口。在这个库的R版本中有很多事情要做,所以在这里获得所有相同的功能需要一段时间。在

为什么?Python版本的taxize的一个显著优势将是对于那些内心深处是pythonists的人。你也可以在Taxing应用程序中引用

python 2/3

pytaxize只在python3中开发和测试

安装

pypi稳定

pip install pytaxize

开发版本

^{pr2}$

分类ID

我已经开始为分类ID开发一个类接口,它将有一堆扩展方法来处理taxon id的各种事情。现在可以得到的只是COL id。在

frompytaxizeimportIdsres=Ids('Poa annua')res.ncbi()res.ids
{'Poa annua':[{'id':'93036','name':'Poa annua','rank':'species','uri':'https://www.ncbi.nlm.nih.gov/taxonomy/93036'}]}

刮取分类名称

out=pytaxize.scrapenames(url='http://www.mapress.com/zootaxa/2012/f/z03372p265f.pdf')out['data'][0:3]
[{'verbatim':'(Hemiptera:','scientificName':'Hemiptera','offsetStart':222,'offsetEnd':233},{'verbatim':'Sternorrhyncha:','scientificName':'Sternorrhyncha','offsetStart':234,'offsetEnd':249},{'verbatim':'Coccoidea:','scientificName':'Coccoidea','offsetStart':250,'offsetEnd':260}]

ITIS低级功能

frompytaxizeimportitisitis.accepted_names(504239){'acceptedName':'Dasiphora fruticosa','acceptedTsn':'836659','author':'(L.) Rydb.'}
itis.comment_detail(tsn=180543)[{'commentDetail':'Status: CITES - Appendix I as U. arctos (Mexico, Bhutan, China, and Mongolia populations) and U. a. isabellinus; otherwise Appendix II. U. S. ESA - Endangered as U. arctos pruinosus, as U. arctos in Mexico, and as U. a. arctos in Italy. Threatened as U. a. ho...','commentId':'18556','commentTimeStamp':'2007-08-20 15:06:38.0','commentator':'Wilson & Reeder, eds. (2005)','updateDate':'2014-02-03'},{'commentDetail':"Comments: Reviewed by Erdbrink (1953), Couturier (1954), Rausch (1963a), Kurtén (1973), Hall (1984) and Pasitschniak-Arts (1993). Ognev (1931) and Allen (1938) recognized U. pruinosus as distinct; not followed by Ellerman and Morrison-Scott (1951), Gao (1987), and Stroganov (1962). Lönnberg (1923b) believed that differences between pruinosus and arctos warranted subgeneric distinction as (Mylarctos) pruinosus; however, this was not supported by Pocock's (1932b) thorough revision. Synonyms allocated a...",'commentId':'18557','commentTimeStamp':'2007-08-20 15:06:38.0','commentator':'Wilson & Reeder, eds. (2005)','updateDate':'2014-02-03'}]
itis.hierarchy_up(tsn=36485){'author':'Raf.','parentName':'Asteraceae','parentTsn':'35420','rankName':'Genus','taxonName':'Agoseris','tsn':'36485'}

生命目录

frompytaxizeimportcolx=col.children(name=["Apis"])x[0][0:3]
[{'id':'7a4a38c5095963949d6d6ec917d471de','name':'Apis andreniformis','rank':'Species'},{'id':'39610a4ceff7e5244e334a3fbc5e47e5','name':'Apis cerana','rank':'Species'},{'id':'e1d4cbf3872c6c310b7a1c17ddd00ebc','name':'Apis dorsata','rank':'Species'}]

解析名称

使用GBIF的解析器API解析名称

frompytaxizeimportgbifgbif.parse(name=['Arrhenatherum elatius var. elatius','Secale cereale subsp. cereale','Secale cereale ssp. cereale','Vanessa atalanta (Linnaeus, 1758)'])
[{'scientificName':'Arrhenatherum elatius var. elatius','type':'SCIENTIFIC','genusOrAbove':'Arrhenatherum','specificEpithet':'elatius','infraSpecificEpithet':'elatius','parsed':True,'parsedPartially':False,'canonicalName':'Arrhenatherum elatius elatius','canonicalNameWithMarker':'Arrhenatherum elatius var. elatius','canonicalNameComplete':'Arrhenatherum elatius var. elatius','rankMarker':'var.'},{'scientificName':'Secale cereale subsp. cereale','type':'SCIENTIFIC',...

变更日志

  • 首次发布到pypi

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java传递实现接口的内部类   java为什么managedbean方法在post请求中的过滤器调用之前调用   java Android应用程序在Android M,O上崩溃,登录A/libc时出错:tid 17938中的致命信号11(SIGSEGV),代码2,故障地址0x343a2944   java JPA存储库。findByAll()返回null,但数据库中存在所有内容   用于发送电子邮件的java Ant脚本   Java小程序HTML页面发生了奇怪的事情   在Postman的请求正文中传递多个JSON数据,并使用Jersy(JXRS)进入Java Rest API   无法强制转换java DAO类   10分钟后重新连接java   正则表达式如何在java中选择字符串直到某个字符   java我的输出有一些问题   Objective中的java时间段   java如何在新屏幕上基于按钮单击在webview中打开url   java哪个selenium版本与Firefox ESR 45.2.0兼容   java无法使用Apache Camel 3.1.0将XML转换为JSON