Skip to contents

Monarch's entity route takes HGNC:11998. MyGene returns the bare digits. Exported because a caller assembling its own entity id needs the same rule.

Usage

monarch_hgnc_id(hgnc)

Arguments

hgnc

An HGNC id, bare ("11998") or prefixed ("HGNC:11998").

Value

A single string, or NULL when there is nothing usable.

Examples

monarch_hgnc_id("11998")
#> [1] "HGNC:11998"
monarch_hgnc_id("hgnc:11998")
#> [1] "HGNC:11998"