entrez_post: Post IDs to Eutils for later use

Description Usage Arguments References See Also Examples

View source: R/entrez_post.r

Description

Post IDs to Eutils for later use

Usage

1
entrez_post(db, id = NULL, web_history = NULL, config = NULL, ...)

Arguments

db

character Name of the database from which the IDs were taken

id

vector with unique ID(s) for records in database db.

web_history

A web_history object. Can be used to add to additional identifiers to an existing web environment on the NCBI

config

vector of configuration options passed to httr::GET

...

character Additional terms to add to the request, see NCBI documentation linked to in references for a complete list

References

https://www.ncbi.nlm.nih.gov/books/NBK25499/#_chapter4_EPost_

See Also

config for available httr configurations

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)
first <- entrez_fetch(db="nuccore", rettype="fasta", web_history=upload,
                      retmax=10)
second <- entrez_fetch(db="nuccore", file_format="fasta", web_history=upload,
                       retstart=10, retmax=10)

## End(Not run)

rentrez documentation built on Nov. 11, 2020, 1:07 a.m.