| ras_read_variant_dictionary | R Documentation |
Reads a table mapping rsID to (chromosome, position, REF, ALT) on ONE genome
build, for use by ras_harmonize_sumstats's dictionary route and
by ras_map_ids_to_rsid. Sources include a dbSNP slice, the All
of Us Variant Annotation Table, or any delimited file with those columns.
ras_read_variant_dictionary(src, cols = list(), build = NA_character_)
src |
data.frame, or a path to a delimited file / VCF. |
cols |
Optional named overrides for the auto-detected columns, e.g.
|
build |
Free-text label recorded on the result for provenance, e.g.
|
A plain VCF is accepted: lines beginning ## are skipped and
#CHROM is used as the header. An ALT field carrying several
comma-separated alleles is expanded to one row per alternate allele, so
multi-allelic sites resolve by their alleles rather than by row order.
A data frame with columns RSID, CHR, BP,
REF, ALT, KEY (the unordered allele-pair key), with
the build label attached as an attribute.
ras_harmonize_sumstats, ras_map_ids_to_rsid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.