Skip to contents

Pure. vep_variants() returns a key column built this way, so this is what a caller uses to join the result back onto its own variant table.

Usage

vep_key(chrom, pos, ref, alt)

Arguments

chrom

A chromosome, with or without a chr prefix.

pos

A 1-based position.

ref, alt

Reference and alternate alleles.

Value

A single string, chrom-pos-ref-alt.

Examples

vep_key("7", 140753336, "A", "T")
#> [1] "7-140753336-A-T"
vep_key("chr7", 140753336, "a", "t")
#> [1] "7-140753336-A-T"