gb_version_get: Get version from GenBank

View source: R/gb-get-tools.R

gb_version_getR Documentation

Get version from GenBank

Description

Return the accession version for an accession ID.

Usage

gb_version_get(id)

Arguments

id

character, sequence accession ID(s)

Value

named vector of versions, if no results found NULL

See Also

ncbi_acc_get()

Other get: gb_definition_get(), gb_fasta_get(), gb_organism_get(), gb_record_get(), gb_sequence_get()

Examples

library(restez)
restez_path_set(filepath = tempdir())
demo_db_create(n = 5)
(ver <- gb_version_get(id = 'demo_1'))
(vers <- gb_version_get(id = c('demo_1', 'demo_2')))


# delete demo after example
db_delete(everything = TRUE)



restez documentation built on Sept. 5, 2022, 5:05 p.m.