Skip to contents

A function that generates a HTML link for selected identifiers (DBSNP, COSMIC, CLINVAR, ENTREZ)

Usage

generate_annotation_link(
  df,
  vardb = "DBSNP",
  group_by_var = "VAR_ID",
  url_prefix = "http://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?rs=",
  link_key_var = "DBSNPRSID",
  link_display_var = "DBSNPRSID"
)

Arguments

df

data frame

vardb

type of database

group_by_var

variable used for grouping (VAR_ID)

url_prefix

url prefix for link generation

link_key_var

variable used in url for linking

link_display_var

variable used in url for display

Value

df_annotation_links