View source: R/cutAtMultSites.R
| cutAtMultSites | R Documentation |
This function cuts character vector after 'cutAt' (ie keep the search subtsting 'cutAt', different to strsplit).
Used for theoretical enzymatic digestion (eg in proteomics)
cutAtMultSites(y, cutAt, silent = FALSE, debug = FALSE, callFrom = NULL)
y |
character vector (better if of length=1, otherwise one won't know which fragment stems from which input) |
cutAt |
(character) search subtsting, ie 'cutting rule' |
silent |
(logical) suppress messages |
debug |
(logical) additional messages for debugging |
callFrom |
(character) allow easier tracking of messages produced |
This function returns a modified (ie cut) character vector
strsplit, nFragments0, nFragments
tmp <- "MSVSRTMEDSCELDLVYVTERIIAVSFPSTANEENFRSNLREVAQMLKSKHGGNYLLFNLSERRPDITKLHAKVLEFGWPDLHTPALEKI"
cutAtMultSites(c(tmp,"ojioRij"),c("R","K"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.