Learn R Programming

wrMisc (version 2.0.0)

nFragments: 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
)

Value

This function returns a numeric vector with number of fragments for each entry 'protSeq' (names are 'protSeq')

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

See Also

cutAtMultSites, simple version {nFragments0} (no size-range)

Examples

Run this code
tmp <- "MSVSREDSCELDLVYVTERIIAVSFPSTANEENFRSNLREVAQMLKSKHGGNYLLFNLSERRPDITKLHAKVLEFGWPDLHTPALEKI"
nFragments(c(tmp,"ojioRij"),c("R","K"),c(4,31))

Run the code above in your browser using DataLab