Learn R Programming

fulltext (version 2.0)

bmc_search: Search for gene sequences available for a species from NCBI.

Description

Search for gene sequences available for a species from NCBI.

Usage

bmc_search(query, limit = 10, offset = 1, key = NULL, ...)

Arguments

query

Search terms.

limit

Number of records to return. Default 10.

offset

Record number to start at. Default: 1

...

curl options passed on to crul::HttpClient

Value

A list of length 2

Examples

Run this code
# NOT RUN {
bmc_search(query='ecology')
bmc_search('fire', limit=3)
bmc_search('fire', limit=2, page=1)
bmc_search('fire', limit=2, page=2)

# Search, then get full text
out <- bmc_search('ecology')
(urls <- vapply(out$records$url, "[[", "", 'value'))
browseURL(urls[1])

# curl debugging help
bmc_search('ecology', verbose = TRUE)
# }

Run the code above in your browser using DataLab