get_cached_rsid_from_position: Get rsid name from position

Description Usage Arguments Value

View source: R/rsid_search.R

Description

This method accesses the NCI's API and queries a position (CHR & POS) and variant (REF & ALT) to obtain a rsid. If it fails, it will attempt to swap REF and ALT before giving up.

Usage

1
2
3
4
5
6
7
8
get_cached_rsid_from_position(
  chrom,
  pos,
  ref,
  alt,
  assembly = valid_references,
  cache = NULL
)

Arguments

chrom

The name of the contig for the SNP

pos

The (1-based) position of the SNP

ref

The reference allele (only SNPs are supported)

alt

The alternate allele (only SNPs are supported)

assembly

Which reference genome to use ("hg18", "hg19", or "hg38")

Value

an rsid identifier of the position provided


richardslab/MRutils documentation built on Dec. 22, 2021, 4 p.m.