inst/doc/index.R

## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----eval=FALSE---------------------------------------------------------------
#  checkGeneSymbols(x, unmapped.as.na = TRUE, map = NULL, species = "human")

## -----------------------------------------------------------------------------
library(HGNChelper)
human = c("FN1", "tp53", "UNKNOWNGENE","7-Sep", "9/7", "1-Mar", "Oct4", "4-Oct",
      "OCT4-PG4", "C19ORF71", "C19orf71")
checkGeneSymbols(human)

## -----------------------------------------------------------------------------
checkGeneSymbols(c("1-Feb", "Pzp", "A2m", "E430008G22Rik"), species="mouse")

## -----------------------------------------------------------------------------
dim(mouse.table)
dim(hgnc.table)

## -----------------------------------------------------------------------------
checkGeneSymbols("AAVS1", expand.ambiguous = FALSE)
checkGeneSymbols("AAVS1", expand.ambiguous = TRUE)

checkGeneSymbols(c("Cpamd8", "Mug2"), species = "mouse", expand.ambiguous = FALSE)
checkGeneSymbols(c("Cpamd8", "Mug2"), species = "mouse", expand.ambiguous = TRUE)

Try the HGNChelper package in your browser

Any scripts or data that you put into this service are public.

HGNChelper documentation built on June 22, 2024, 7:03 p.m.