R语言【taxa】——df_ref():有效的 分类信息数据库

Package taxa version 0.4.2


Description

定义可以被 taxon_db 对象使用或使用 taxon_db 对象的有效分类数据库,例如 taxon_id 和 taxon。

使用 db_ref$get 查看数据库的详细信息。

用户可以使用 db_ref$set 创建自定义的数据库,并添加到数据库列表中。

每个数据库都必须包含下列信息:

  • 数据库对应的网站的URL
  • 一段简短的描述
  • 定义有效的类群ID的正则表达式
  • 数据库中有效的分类等级

Usage

R 复制代码
db_ref

Format

一个长度为3的列表对象。


Attribution

此代码基于knitr包中的代码处理选项。


Examples

查看所有的数据库定义:

R 复制代码
db_ref$get()
R 复制代码
<taxon_db_def[8]>
   _____________________ ncbi ______________________
   url:         http://www.ncbi.nlm.nih.gov/taxonomy
   desc:        NCBI Taxonomy Database              
   id_regex:    [0-9]+                              
   rank_levels:                                     

   _____________________________ gbif _____________________________
   url:         http://www.gbif.org/developer/species              
   desc:        GBIF Taxonomic Backbone                            
   id_regex:    [0-9]+                                             
   rank_levels: kingdom < phylum < order < family < genus < species

   _____________________________________ bold _____________________________________
   url:         http://www.boldsystems.org                                         
   desc:        Barcode of Life                                                    
   id_regex:    [0-9]+                                                             
   rank_levels: phylum < class < order < family < subfamily < genus < species < su...

   ___________________ col ___________________
   url:         http://www.catalogueoflife.org
   desc:        Catalogue of Life             
   id_regex:    [a-z0-9]{32}                  
   rank_levels:                               

   ______________ eol ______________
   url:         http://eol.org      
   desc:        Encyclopedia of Life
   id_regex:    [0-9]+              
   rank_levels:                     

   ____________________ nbn ____________________
   url:         https://nbn.org.uk              
   desc:        UK National Biodiversity Network
   id_regex:    [A-Z]{5}[0-9]{10}               
   rank_levels:                                 

   ________________ tps ________________
   url:         http://www.tropicos.org/
   desc:        Tropicos                
   id_regex:    [0-9]+                  
   rank_levels:                         

   _______________________ itis _______________________
   url:         http://www.itis.gov                    
   desc:        Integrated Taxonomic Information System
   id_regex:    [0-9]+                                 
   rank_levels:                                        

自定义数据库:

R 复制代码
db_ref$set(
  name = "my_new_database",
  url = "http://www.my_tax_database.com",
  desc = "I just made this up",
  id_regex = ".*"
)

db_ref$get()
R 复制代码
<taxon_db_def[9]>
   _____________________ ncbi ______________________
   url:         http://www.ncbi.nlm.nih.gov/taxonomy
   desc:        NCBI Taxonomy Database              
   id_regex:    [0-9]+                              
   rank_levels:                                     

   _____________________________ gbif _____________________________
   url:         http://www.gbif.org/developer/species              
   desc:        GBIF Taxonomic Backbone                            
   id_regex:    [0-9]+                                             
   rank_levels: kingdom < phylum < order < family < genus < species

   ________________________________________ bold _________________________________________
   url:         http://www.boldsystems.org                                                
   desc:        Barcode of Life                                                           
   id_regex:    [0-9]+                                                                    
   rank_levels: phylum < class < order < family < subfamily < genus < species < subspecies

   ___________________ col ___________________    ______________ eol ______________
   url:         http://www.catalogueoflife.org    url:         http://eol.org      
   desc:        Catalogue of Life                 desc:        Encyclopedia of Life
   id_regex:    [a-z0-9]{32}                      id_regex:    [0-9]+              
   rank_levels:                                   rank_levels:                     

   ____________________ nbn ____________________    ________________ tps ________________
   url:         https://nbn.org.uk                  url:         http://www.tropicos.org/
   desc:        UK National Biodiversity Network    desc:        Tropicos                
   id_regex:    [A-Z]{5}[0-9]{10}                   id_regex:    [0-9]+                  
   rank_levels:                                     rank_levels:                         

   _______________________ itis _______________________    _____________ my_new_database _____________
   url:         http://www.itis.gov                        url:         http://www.my_tax_database.com
   desc:        Integrated Taxonomic Information System    desc:        I just made this up           
   id_regex:    [0-9]+                                     id_regex:    .*                            
   rank_levels:                                            rank_levels:                               

恢复默认设置:

R 复制代码
db_ref$reset()

db_ref$get()
R 复制代码
<taxon_db_def[8]>
   _____________________ ncbi ______________________
   url:         http://www.ncbi.nlm.nih.gov/taxonomy
   desc:        NCBI Taxonomy Database              
   id_regex:    [0-9]+                              
   rank_levels:                                     

   _____________________________ gbif _____________________________
   url:         http://www.gbif.org/developer/species              
   desc:        GBIF Taxonomic Backbone                            
   id_regex:    [0-9]+                                             
   rank_levels: kingdom < phylum < order < family < genus < species

   ________________________________________ bold _________________________________________
   url:         http://www.boldsystems.org                                                
   desc:        Barcode of Life                                                           
   id_regex:    [0-9]+                                                                    
   rank_levels: phylum < class < order < family < subfamily < genus < species < subspecies

   ___________________ col ___________________    ______________ eol ______________
   url:         http://www.catalogueoflife.org    url:         http://eol.org      
   desc:        Catalogue of Life                 desc:        Encyclopedia of Life
   id_regex:    [a-z0-9]{32}                      id_regex:    [0-9]+              
   rank_levels:                                   rank_levels:                     

   ____________________ nbn ____________________    ________________ tps ________________
   url:         https://nbn.org.uk                  url:         http://www.tropicos.org/
   desc:        UK National Biodiversity Network    desc:        Tropicos                
   id_regex:    [A-Z]{5}[0-9]{10}                   id_regex:    [0-9]+                  
   rank_levels:                                     rank_levels:                         

   _______________________ itis _______________________
   url:         http://www.itis.gov                    
   desc:        Integrated Taxonomic Information System
   id_regex:    [0-9]+                                 
   rank_levels:                                        
相关推荐
要一起看日出1 分钟前
MVCC-多版本并发控制
数据库·mysql·mvcc
Hx__2 分钟前
MySQL InnoDB 的 MVCC 机制
数据库·mysql
速易达网络3 分钟前
ASP.NET MVC 连接 MySQL 数据库查询示例
数据库·asp.net·mvc
玉衡子40 分钟前
MySQL基础架构全面解析
数据库·后端
梦中的天之酒壶42 分钟前
Redis Stack扩展功能
数据库·redis·bootstrap
GreatSQL1 小时前
GreatSQL分页查询优化案例实战
数据库
Leo.yuan1 小时前
不同数据仓库模型有什么不同?企业如何选择适合的数据仓库模型?
大数据·数据库·数据仓库·信息可视化·spark
麦兜*1 小时前
MongoDB 6.0 新特性解读:时间序列集合与加密查询
数据库·spring boot·mongodb·spring·spring cloud·系统架构
没有梦想的咸鱼185-1037-16632 小时前
基于R语言机器学习方法在生态经济学领域中的实践技术应用
开发语言·机器学习·数据分析·r语言
chat2tomorrow2 小时前
数据采集平台的起源与演进:从ETL到数据复制
大数据·数据库·数据仓库·mysql·低代码·postgresql·etl