| .parCombinateAllAndSum | R Documentation |
This function combines all variants and sums them
.parCombinateAllAndSum(
uniqCo,
massModV,
nProc = NULL,
firstOfRepeated = NULL,
parRegDefault = TRUE,
silent = FALSE,
debug = FALSE,
callFrom = NULL
)
uniqCo |
(matrix) number of modifications to be considered for each peptide |
massModV |
(named numeric) mass modification values (names must match colnames of |
nProc |
(integer) number of processors to be used |
firstOfRepeated |
(character) |
parRegDefault |
(logical) - argument currently not in use |
silent |
(logical) suppress messages |
debug |
(logical) additional messages for debugging |
callFrom |
(character) allows easier tracking of messages produced |
This function requires the packages 'parallel' and 'BiocParallel' (from Bioconductor) Note : The function may work only on some Windows systems or may give warnings on Windows
This functions returns a list with single and combined mass-modifications (PTMs) for each peptide
convToNum
uniqCo <- matrix(c(1,1,1,0,1,1), nrow=2, dimnames=list(c("PTI","KPE"),c("d","p","h")) )
massModV <- c(d=-18.01056, p=79.96633, h=-18.01056)
chPa <- c(requireNamespace("parallel", quietly=TRUE),
requireNamespace("BiocParallel", quietly=TRUE), "windows" %in% .Platform$OS.type)
## Note : the function may work only on some windows systems
if(all(chPa)) if(parallel::detectCores() >1) {
.parCombinateAllAndSum(uniqCo, massModV, nProc=2)}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.