strip_ens: Strip version IDs from ENSEMBL identifiers

View source: R/utils.R

strip_ensR Documentation

Strip version IDs from ENSEMBL identifiers

Description

This function is simply a wrapper arond gsub for removing trailing IDs from ENSEMBL identifiers. All entries must start with 'ENS'. NAs are tolerated.

Usage

strip_ens(x)

Arguments

x

character vector containing ENSEMBL IDs

Value

character vector with trailing IDs removed

Examples


ids <- c("ENSG0000001.12", "ENSMUSG00021.3", "ENST00000556.2")
strip_ens(ids)


jcalendo/coriell documentation built on March 5, 2025, 5:42 a.m.