ParseProteinNum | R Documentation |
Given a string like "#1,45,72#", parse into a character vector of c("1", "45", "72"). Consecutive commas are collapsed into one, and spaces are treated as commas.
ParseProteinNum(x, type)
x |
A string in the format of "#1#" or "#1,2,3#" or "<1,3>". |
type |
Either "protein" or "reference". |
A string, or a vector of strings of protein numbers.
brendaDb:::ParseProteinNum("#1,2,3#", "protein") # [1] "1,2,3" brendaDb:::ParseProteinNum("<123>", "reference") # [1] "123"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.