makeVCFHeaderFromGA4GHResponse: makeVCFHeaderFromGA4GHResponse function

Description Usage Arguments Value See Also Examples

View source: R/makeVCFHeaderFromGA4GHResponse.R

Description

Convert DataFrame output from getVariantSet function to VCFHeader class.

Usage

1

Arguments

variantSet

DataFrame generated by getVariantSet function.

Value

VCFHeader object.

See Also

getVariantSet, VCFHeader, DataFrame

Examples

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

makeVCFFromGA4GHResponse(variant)

## End(Not run)

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