Description Usage Arguments Details Value References See Also Examples
Get a variant by its ID with all call sets for this variant.
1 | getVariant(host, variantId, asVCF = TRUE)
|
host |
URL of GA4GH API data server. |
variantId |
The ID of the Variant to be retrieved. |
asVCF |
If |
This function requests GET host/variants/variantId.
VCF object (when asVCF = TRUE) or
DataFrame object (otherwise).
DataFrame, searchVariants,
searchVariantsByGRanges, VCF,
makeVCFFromGA4GHResponse
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
getVariant(host, variantId)
getVariant(host, variantId, asVCF = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.