View source: R/randMassByMut.R
randMassByMut | R Documentation |
Make full random decoy mass vector (mimick pepTab)
randMassByMut(
pepTab,
randCha,
useCol = "mass",
negAvoid = TRUE,
sepCol = FALSE,
inDel = FALSE,
nAlter = 1,
setSeed = NULL,
silent = FALSE,
debug = FALSE,
callFrom = NULL
)
pepTab |
(matrix) typically table of petides, one column should match 'useCol' for numeric mass values |
randCha |
(numeric) vector of possible mass alterations for random drawing |
useCol |
(character) column from 'pepTab' with mass values to make decoys |
negAvoid |
(logical) if TRUE try avoiding 0 or negative random mass in result |
sepCol |
(character) optional column from 'pepTab' |
inDel |
(logical) switch to make random mass by insertion/deletion of 1 AA |
nAlter |
(integer) number of alterations per peptide |
setSeed |
(character) 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 |
This function returns a matrix with additional column 'decoyMass', or if 'sepCol'=FALSE as additional lines
randMassByStochastic
pepTab1 <- cbind(no=11:12, seq=c("YVVDTS","YVVDTSK"), origNa="test.P000",
ty=c("inter","Cter"),mass=c(681.308997360991,809.403960378691))
randMassByMut(pepTab1, corMutShift())
randMassByMut(pepTab1, corInDelShift(), inDel=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.