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

Description Usage Arguments Value Examples

View source: R/bmc_utils.R

Description

Search for gene sequences available for a species from NCBI.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## 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)

## End(Not run)

fulltext documentation built on June 12, 2021, 9:06 a.m.