get_sequence {primerTree}R Documentation

Retrieves a fasta sequence from NCBI nucleotide database.

Description

Retrieves a fasta sequence from NCBI nucleotide database.

Usage

get_sequence(
  accession,
  start = NULL,
  stop = NULL,
  api_key = Sys.getenv("NCBI_API_KEY")
)

Arguments

accession

nucleotide accession to retrieve.

start

start base to retrieve, numbered beginning at 1. If NULL the beginning of the sequence.

stop

last base to retrieve, numbered beginning at 1. if NULL the end of the sequence.

api_key

NCBI api-key to allow faster sequence retrieval.

Value

an DNAbin object.

See Also

DNAbin


[Package primerTree version 1.0.6 Index]