makeVCFFromGA4GHResponse: makeVCFFromGA4GHResponse function

Description Usage Arguments Value See Also Examples

View source: R/makeVCFFromGA4GHResponse.R

Description

Convert DataFrame output from searchVariants and getVariant functions to VCF class.

Usage

1

Arguments

variants

DataFrame generated by searchVariants.

Value

VCF object.

See Also

searchVariants, getVariant, VCF, DataFrame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
host <- "http://1kgenomes.ga4gh.org/"
## Not run: 
datasetId <- searchDatasets(host, nrows = 1)$id
variantSetId <- searchVariantSets(host, datasetId, nrows = 1)$id
variants <- searchVariants(host, variantSetId, referenceName = "1",
    start = 15000, end = 16000)
variants

makeVCFFromGA4GHResponse(variants)

## End(Not run)

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