nFragments {wrMisc} | R Documentation |
Number of fragments after cut at specific character(s) within size-range
Description
nFragments
determines number of fragments /entry within range of 'sizeRa' (numeric,length=2) when cutting after 'cutAt'
Usage
nFragments(protSeq, cutAt, sizeRa)
Arguments
protSeq |
(character) text to be cut |
cutAt |
(character) position to cut |
sizeRa |
(numeric,length=2) min and max size to consider |
Value
numeric vector with number of fragments for each entry 'protSeq' (names are 'protSeq')
See Also
cutAtMultSites
, simple version {nFragments0}
(no size-range)
Examples
tmp <- "MSVSREDSCELDLVYVTERIIAVSFPSTANEENFRSNLREVAQMLKSKHGGNYLLFNLSERRPDITKLHAKVLEFGWPDLHTPALEKI"
nFragments(c(tmp,"ojioRij"),c("R","K"),c(4,31))
[Package wrMisc version 1.15.1 Index]