gb_sequence_get | R Documentation |
Return the sequence(s) for a record(s) from the accession ID(s).
gb_sequence_get(id, dnabin = FALSE)
id |
character, sequence accession ID(s) |
dnabin |
Logical vector of length 1; should the sequences be returned using the bit-level coding scheme of the ape package? Default FALSE. |
For more information about the dnabin
format, see ape::DNAbin()
.
named vector of sequences, if no results found NULL
ncbi_acc_get()
Other get:
gb_definition_get()
,
gb_fasta_get()
,
gb_organism_get()
,
gb_record_get()
,
gb_version_get()
library(restez)
restez_path_set(filepath = tempdir())
demo_db_create(n = 5)
(seq <- gb_sequence_get(id = 'demo_1'))
(seqs <- gb_sequence_get(id = c('demo_1', 'demo_2')))
(fasta_dnabin <- gb_sequence_get(id = 'demo_1', dnabin = TRUE))
# 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.