Return the sequence(s) for a record(s) from the accession ID(s).

gb_sequence_get(id)

Arguments

id

character, sequence accession ID(s)

Value

named vector of sequences, if no results found NULL

See also

Examples

library(restez) restez_path_set(filepath = tempdir())
#> ... Creating '/var/folders/ps/g89999v12490dmp0jnsfmykm0043m3/T//Rtmp6jFXFa/restez' #> ... Creating '/var/folders/ps/g89999v12490dmp0jnsfmykm0043m3/T//Rtmp6jFXFa/restez/downloads'
#> Remember to run `restez_disconnect()`
(seq <- gb_sequence_get(id = 'demo_1'))
#> demo_1 #> "AATGACAAGG"
(seqs <- gb_sequence_get(id = c('demo_1', 'demo_2')))
#> demo_1 demo_2 #> "AATGACAAGG" "ATCTTATCGA"
# delete demo after example db_delete(everything = TRUE)