cutAtMultSites {wrMisc}R Documentation

Cut character-vector at multiple sites

Description

This function cuts character vector after 'cutAt' (ie keep the search subtsting 'cutAt', different to strsplit). Used for theoretical enzymatic digestion (eg in proteomics)

Usage

cutAtMultSites(y, cutAt)

Arguments

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'

Value

modified (ie cut) character vector

See Also

strsplit, nFragments0, nFragments

Examples

tmp <- "MSVSRTMEDSCELDLVYVTERIIAVSFPSTANEENFRSNLREVAQMLKSKHGGNYLLFNLSERRPDITKLHAKVLEFGWPDLHTPALEKI"
cutAtMultSites(c(tmp,"ojioRij"),c("R","K"))

[Package wrMisc version 1.15.1 Index]