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

This function determines number of fragments /entry within range of 'sizeRa' (numeric,length=2) when cutting after 'cutAt'

Usage

nFragments(
  protSeq,
  cutAt,
  sizeRa,
  silent = FALSE,
  debug = FALSE,
  callFrom = NULL
)

Arguments

protSeq

(character) text to be cut

cutAt

(character) position to cut

sizeRa

(numeric,length=2) min and max size to consider

silent

(logical) suppress messages if TRUE

debug

(logical) additional messages for debugging

callFrom

(character) allows easier tracking of messages produced

Value

This function returns a 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 March 9, 2026, 5:07 p.m.