genbank(...,disp=c("data","browser"), type=c("accession","uid"), pmaddress=.efetch("gene", disp, type))
WARNING: The powers that be at NCBI have been known to ban the IP addresses of users who abuse their servers (currently defined as less then 2 seconds between queries). Do NOT put this function in a tight loop or you may find your access revoked.
pubmed
, xmlTreeParse
## Use UIDs to get data in both browser & data forms
if ( interactive() ) {
disp <- c("data","browser")
} else {
disp <- "data"
}
for (dp in disp)
genbank("12345","9997",disp=dp,type="uid")
## Use accession numbers to retrieve browser info
if ( interactive() )
genbank("U03397","AF030427",disp="browser")
Run the code above in your browser using DataLab