formatHgvs: Get all HGVS IDs from Vcf object.

Description Usage Arguments Value References See Also Examples

View source: R/readHGVS.R

Description

Read in a Vcf object created by readVcf to extract all HGVS IDs for querying MyVariant.info.

Usage

1
formatHgvs(vcf, variant_type = c("snp", "insertion", "deletion"))

Arguments

vcf

Vcf object created by readVcf.

variant_type

Type of variant HGVS IDs to retrieve from Vcf object. Default c("snp", "insertion", "deletion")

Value

vector

References

https://myvariant.info http://www.hgvs.org/mutnomen/recs-DNA.html

See Also

formatSingleHgvs

Examples

1
2
3
4
## return HGVS IDs for all snps in a Vcf
file.path <- system.file("extdata", "dbsnp_mini.vcf", package="myvariant")
vcf <- readVcf(file.path, genome="hg19")
hgvs <- formatHgvs(vcf, variant_type="snp")


myvariant documentation built on May 20, 2017, 10:41 p.m.
Search within the myvariant package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.