powered by
Make full random decoy mass vector (mimick pepTab)
randMassByStochastic( xChar, nRepeat = 5, negAvoid = TRUE, setSeed = NULL, silent = FALSE, debug = TRUE, callFrom = NULL )
This function returns a matrix with additional column 'decoyMass', or if 'sepCol'=FALSE as additional lines
(numeric vector) characterize main data, must conatain elements 'n','minV','maxV'
(integer) number of time whole randomization process should be repeated
(logical) if TRUE try avoiding 0 or negative random mass in result
(integer) seed for random number generation set.seed()
(logical) suppress messages
(logical) additional messages and objects exportet to current session for debugging
(character) allow easier tracking of messages produced
Uniform, randMassByMut, convToNum
Uniform
randMassByMut
convToNum
rand <- randMassByStochastic(c(n=10, minV=2, maxV=7)) summary(rand)
Run the code above in your browser using DataLab