add_protein_prettyprint_label: add short prettyprint labels to a protein tibble using gene...

View source: R/util_generic.R

add_protein_prettyprint_labelR Documentation

add short prettyprint labels to a protein tibble using gene symbols, if available

Description

add short prettyprint labels to a protein tibble using gene symbols, if available

Usage

add_protein_prettyprint_label(tib, maxlength = 12, shorten_ambiguous = TRUE)

Arguments

tib

tibble with at least a protein_id column, but should also contain a gene_symbols_or_id column for truly pretty-print names

maxlength

max string length for each output value

shorten_ambiguous

replace all ambiguous entries with the first value followed by an asterix. Example; ⁠proteinA;proteinB⁠ becomes ⁠proteinA*⁠

Value

input tibble with resulting values in the label column (overwritten if this column already existed in input)


ftwkoopmans/msdap documentation built on March 5, 2025, 12:15 a.m.