extract-efetch: EFetch accessors

Description Usage Arguments Value Examples

Description

Extract XML nodes from an efetch object.

Usage

1
2
3
4
5
## S4 method for signature 'efetch,character,missing'
x[i, j]

## S4 method for signature 'efetch,character'
x[[i]]

Arguments

x

An efetch object containing XML data.

i

An XPath expression specifying the XML nodes to extract.

j

Ignored.

Value

An XML node set.

Examples

1
2
3
4
5
## Not run: 
p <- efetch("195055", "protein", "gp", "xml")
p['//GBFeature[GBFeature_key="mat_peptide"]//GBQualifier_value']

## End(Not run)

Example output

Warning: CurlError: Failed to connect to eutils.ncbi.nlm.nih.gov port 443: Connection refused
NULL

reutils documentation built on May 1, 2019, 9:15 p.m.