nFragments
determines number of fragments /entry within range of 'sizeRa' (numeric,length=2) when cutting after 'cutAt'
nFragments(protSeq, cutAt, sizeRa)
numeric vector with number of fragments for each entry 'protSeq' (names are 'protSeq')
(character) text to be cut
(character) position to cut
(numeric,length=2) min and max size to consider
cutAtMultSites
, simple version {nFragments0}
(no size-range)
tmp <- "MSVSREDSCELDLVYVTERIIAVSFPSTANEENFRSNLREVAQMLKSKHGGNYLLFNLSERRPDITKLHAKVLEFGWPDLHTPALEKI"
nFragments(c(tmp,"ojioRij"),c("R","K"),c(4,31))
Run the code above in your browser using DataLab