Retrieves a fasta sequence from NCBI nucleotide database.
get_sequence(
accession,
start = NULL,
stop = NULL,
api_key = Sys.getenv("NCBI_API_KEY")
)
nucleotide accession to retrieve.
start base to retrieve, numbered beginning at 1. If NULL the beginning of the sequence.
last base to retrieve, numbered beginning at 1. if NULL the end of the sequence.
NCBI api-key to allow faster sequence retrieval.
an DNAbin object.