getVariantSet: getVariantSet function.

Description Usage Arguments Details Value See Also Examples

View source: R/getVariantSet.R

Description

Get a variant set by its ID.

Usage

1
getVariantSet(host, variantSetId, asVCFHeader = TRUE)

Arguments

host

URL of GA4GH API data server.

variantSetId

The ID of the VariantSet to be retrieved.

asVCFHeader

If TRUE the function will return an VCFHeader object (default), otherwise it will return an DataFrame.

Details

This function requests GET host/variantsets/variantSetId.

Value

DataFrame object. It can be converted into VCFHeader object.

See Also

DataFrame, searchVariantSets, VCFHeader, makeVCFHeaderFromGA4GHResponse

Examples

1
2
3
4
5
6
7
8
9
host <- "http://1kgenomes.ga4gh.org/"
## Not run: 
datasetId <- searchDatasets(host, nrows = 1)$id
variantSetId <- searchVariantSets(host, datasetId, nrows = 1)$id
getVariantSet(host, variantSetId)

getVariantSet(host, variantSetId, asVCF = FALSE)

## End(Not run)

labbcb/GA4GHclient documentation built on May 20, 2019, 7:32 p.m.