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:                                        
相关推荐
TDengine (老段)21 分钟前
TDengine 数学函数 DEGRESS 用户手册
大数据·数据库·sql·物联网·时序数据库·iot·tdengine
TDengine (老段)24 分钟前
TDengine 数学函数 GREATEST 用户手册
大数据·数据库·物联网·时序数据库·iot·tdengine·涛思数据
安当加密1 小时前
云原生时代的数据库字段加密:在微服务与 Kubernetes 中实现合规与敏捷的统一
数据库·微服务·云原生
爱喝白开水a1 小时前
LangChain 基础系列之 Prompt 工程详解:从设计原理到实战模板_langchain prompt
开发语言·数据库·人工智能·python·langchain·prompt·知识图谱
想ai抽1 小时前
深入starrocks-多列联合统计一致性探查与策略(YY一下)
java·数据库·数据仓库
武子康1 小时前
Java-152 深入浅出 MongoDB 索引详解 从 MongoDB B-树 到 MySQL B+树 索引机制、数据结构与应用场景的全面对比分析
java·开发语言·数据库·sql·mongodb·性能优化·nosql
longgyy2 小时前
5 分钟用火山引擎 DeepSeek 调用大模型生成小红书文案
java·数据库·火山引擎
ytttr8732 小时前
C# 仿QQ聊天功能实现 (SQL Server数据库)
数据库·oracle·c#
盒马coding3 小时前
第18节-索引-Partial-Indexes
数据库·postgresql
不剪发的Tony老师3 小时前
CloudDM:一站式数据库开发管理工具
数据库