powered by
This function cuts character vector after 'cutAt' (ie keep the search subtsting 'cutAt', different to strsplit). Used for theoretical enzymatic digestion (eg in proteomics)
strsplit
cutAtMultSites(y, cutAt, silent = FALSE, debug = FALSE, callFrom = NULL)
This function returns a modified (ie cut) character vector
character vector (better if of length=1, otherwise one won't know which fragment stems from which input)
(character) search subtsting, ie 'cutting rule'
(logical) suppress messages
(logical) additional messages for debugging
(character) allow easier tracking of messages produced
strsplit, nFragments0, nFragments
nFragments0
nFragments
tmp <- "MSVSRTMEDSCELDLVYVTERIIAVSFPSTANEENFRSNLREVAQMLKSKHGGNYLLFNLSERRPDITKLHAKVLEFGWPDLHTPALEKI" cutAtMultSites(c(tmp,"ojioRij"),c("R","K"))
Run the code above in your browser using DataLab