Skip to contents

Return the organism name for an accession ID.

Usage

gb_organism_get(id)

Arguments

id

character, sequence accession ID(s)

Value

named vector of definitions, if no results found NULL

Examples

library(restez)
restez_path_set(filepath = tempdir())
#> ... Creating '/tmp/RtmpUsDojX/restez'
#> ... Creating '/tmp/RtmpUsDojX/restez/downloads'
demo_db_create(n = 5)
(org <- gb_organism_get(id = 'demo_1'))
#>              demo_1 
#> "Unreal organism 1" 
(orgs <- gb_organism_get(id = c('demo_1', 'demo_2')))
#>              demo_1              demo_2 
#> "Unreal organism 1" "Unreal organism 2" 


# delete demo after example
db_delete(everything = TRUE)