stitch_remove_prefixes: Remove the prefixes from STITCH identifiers

View source: R/stitch.R

stitch_remove_prefixesR Documentation

Remove the prefixes from STITCH identifiers

Description

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.

Usage

stitch_remove_prefixes(d, ..., remove = TRUE)

Arguments

d

Data frame, typically the output of stitch_links or stitch_actions.

...

Names of columns to remove prefixes from. NSE is supported.

remove

Logical: remove the prefixes? If FALSE, this function does nothing.

Value

Data frame with prefixes removed in the specified columns.

See Also

  • stitch_actions

  • stitch_links

  • stitch_network

Examples

stitch_remove_prefixes(
    data.frame(a = c('9606.ENSP00000170630', 'CIDs00012345')),
    a
)


saezlab/OmnipathR documentation built on Nov. 10, 2024, 11:02 p.m.