getFeature: getFeature function

Description Usage Arguments Details Value References See Also Examples

View source: R/getFeature.R

Description

Get a feature set by its ID (a line of genomic feature file).

Usage

1
getFeature(host, featureId)

Arguments

host

URL of GA4GH API data server.

featureId

The ID of the feature to be retrieved.

Details

This function requests GET host/features/featureId.

Value

DataFrame object.

References

Official documentation.

See Also

DataFrame, searchFeatures

Examples

1
2
3
4
5
6
7
8
host <- "http://1kgenomes.ga4gh.org/"
## Not run: 
datasetId <- searchDatasets(host, nrows = 1)$id
featureSetId <- searchFeatureSets(host, datasetId, nrows = 1)$id
featureId <- searchFeatures(host, featureSetId, nrows = 1)$id
getFeature(host, featureId)

## End(Not run)

GA4GHclient documentation built on Nov. 8, 2020, 5:47 p.m.