Learn R Programming

wrTopDownFrag (version 1.0.4)

randMassByStochastic: Make Decoy Mass By Full Randomization

Description

Make full random decoy mass vector (mimick pepTab)

Usage

randMassByStochastic(
  xChar,
  nRepeat = 5,
  negAvoid = TRUE,
  setSeed = NULL,
  silent = FALSE,
  debug = TRUE,
  callFrom = NULL
)

Value

This function returns a matrix with additional column 'decoyMass', or if 'sepCol'=FALSE as additional lines

Arguments

xChar

(numeric vector) characterize main data, must conatain elements 'n','minV','maxV'

nRepeat

(integer) number of time whole randomization process should be repeated

negAvoid

(logical) if TRUE try avoiding 0 or negative random mass in result

setSeed

(integer) seed for random number generation set.seed()

silent

(logical) suppress messages

debug

(logical) additional messages and objects exportet to current session for debugging

callFrom

(character) allow easier tracking of messages produced

See Also

Uniform, randMassByMut, convToNum

Examples

Run this code
rand <- randMassByStochastic(c(n=10, minV=2, maxV=7))
summary(rand)

Run the code above in your browser using DataLab