nFragments: Number of fragments after cut at specific character(s) within...

View source: R/nFragments.R

nFragmentsR 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))


wrMisc documentation built on Nov. 17, 2023, 5:09 p.m.