This function takes an character vector storing gene ids of interest and returns the biological sequence of the corresponding gene ids.

geneSequence(genes, db)

Arguments

genes

a character vector storing the gene id of a organisms of interest to be queried against the acnucdb database.

db

a character string specifying the database from which the sequence shall be retrieved.

Value

A list of sequences for each corresponding input gene stored as string.

Details

Sequence information is retrieved from the acnucdb database.

Examples

if (FALSE) { # retrieve amino acid sequences from the 'swissprot' database # for gene ids:"AT1G06090" = "Q9LND9" and "AT1G06100" = "Q9LND8" seqs <- geneSequence(c("Q9LND9","Q9LND8"), db = "swissprot") # choose different databases available seqinr::choosebank() }