Learn R Programming

rDNAse (version 1.1-1)

getGenbank: Get DNA/RNA Sequences from Genbank by GI ID

Description

Get DNA/RNA Sequences from Genbank by GI ID

Usage

getGenbank(id)

Arguments

id
A character vector, as the GI ID(s).

Value

A list, each component contains one of the DNA/RNA sequences.

Details

This function get DNA/RNA sequences from Genbank by GI ID(s).

See Also

See readFASTA for reading FASTA format files.

Examples

Run this code

# Network latency may slow down this example
# Only test this when your connection is fast enough
require(RCurl)

ids = c(2, 11)
getGenbank(ids)

Run the code above in your browser using DataLab