entrez_post: Post IDs to Eutils for later use

Description Usage Arguments Value Examples

View source: R/entrez_post.r

Description

Post IDs to Eutils for later use

Usage

1
  entrez_post(db, id, ...)

Arguments

db

character Name of the database from which the IDs were taken

id

integer ID(s) for which data is being collected

...

character Additional terms to add to the request

Value

QueryKey integer identifier for specific query in webhistory

WebEnv character identifier for session key to use with history

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
so_many_snails <- entrez_search(db="nuccore",
                      "Gastropoda[Organism] AND COI[Gene]", retmax=200)
upload <- entrez_post(db="nuccore", id=so_many_snails$ids)
cookie <- upload$WebEnv
first <- entrez_fetch(db="nuccore", file_format="fasta", WebEnv=cookie,
                      query_key=upload$QueryKey, retend=10)
second <- entrez_fetch(db="nuccore", file_format="fasta", WebEnv=cookie,
                       query_key=upload$QueryKey, retstart=10)

## End(Not run)

rentrez documentation built on May 2, 2019, 6:12 p.m.