annotate_ensg: Annotate ENSG IDs with gene names

View source: R/data_loading.r

annotate_ensgR Documentation

Annotate ENSG IDs with gene names

Description

Attempts to convert ENSG IDs to gene names (hgnc_symbol). This is attempting using biomaRt's service and thus requires the optional biomaRt package to be installed.

Usage

annotate_ensg(
  dat,
  column = "exposure",
  gene_name_col = "hgnc_symbol",
  build = "grch37"
)

Arguments

dat

Data.frame of data

gene_name_col

Column to append to 'dat' with converted names (Optional)

build

Genomic build (Optional)

col

Column name containing ENSG IDs (Optional)

Value

Data.frame with appended column for names


jwr-git/mrpipeline documentation built on Oct. 2, 2022, 3:41 p.m.