variantsToVRanges: Convert variants to VRanges.

Description Usage Arguments Value See Also Examples

Description

Note that the Global Alliance for Genomics and Health API uses a 0-based coordinate system. For more detail, please see GA4GH discussions such as the following:

Usage

1
variantsToVRanges(variants, oneBasedCoord = TRUE, slStyle = "UCSC")

Arguments

variants

A list of R objects corresponding to the JSON objects returned by the GA4GH Variants API.

oneBasedCoord

Convert genomic positions to 1-based coordinates.

slStyle

The style for seqnames (chrN or N or...). Default is UCSC.

Value

VRanges

See Also

Other variants converter functions: variantsToGRanges

Examples

1
2
3
4
variants1 <- searchVariants(converter = variantsToVRanges)
summary(variants1)
variants2 <- variantsToVRanges(searchVariants())
print(identical(variants1, variants2))

adamstruck/ga4ghr documentation built on May 10, 2019, 5:51 a.m.