STITCH adds the NCBI Taxonomy ID as a prefix to Ensembl protein identifiers, e.g. "9606.ENSP00000170630", and "CID" followed by "s" or "m" (stereospecific or merged, respectively) in front of PubChem Compound Identifiers. It also pads the CID with zeros. This function removes these prefixes, leaving only the identifiers.
Arguments
- d
Data frame, typically the output of
stitch_links
orstitch_actions
.- ...
Names of columns to remove prefixes from. NSE is supported.
- remove
Logical: remove the prefixes? If FALSE, this function does nothing.
Examples
stitch_remove_prefixes(
tibble(a = c('9606.ENSP00000170630', 'CIDs00012345')),
a
)
#> Error in tibble(a = c("9606.ENSP00000170630", "CIDs00012345")): could not find function "tibble"