Skip to contents

given a bar-delimited string as produced for dbXrefs in gene_info, extract the value associated with a given tag

Usage

processDbx(x, tag = "Ensembl:")

Arguments

x

character(1)

tag

substring to use to find desired value

Examples

dem = "MIM:611221|HGNC:HGNC:23690|Ensembl:ENSG00000073605|AllianceGenome:HGNC:23690"
processDbx(dem, tag="MIM:")
#> [1] "611221"