is_in_db | R Documentation |
Determine whether an id(s) is/are present in a database.
is_in_db(id, db = "nucleotide")
id |
character, sequence accession ID(s) |
db |
character, database name |
named vector of booleans
Other database:
count_db_ids()
,
db_create()
,
db_delete()
,
db_download()
,
demo_db_create()
,
list_db_ids()
library(restez)
# set the restez path to a temporary dir
restez_path_set(filepath = tempdir())
# create demo database
demo_db_create(n = 5)
# in the demo, IDs are 'demo_1', 'demo_2' ...
ids <- c('thisisnotanid', 'demo_1', 'demo_2')
(is_in_db(id = ids))
# delete demo after example
db_delete(everything = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.