Learn R Programming

wrTopDownFrag (version 1.0.4)

.parCombinateAllAndSum: Multiprocessor Version For Full Combinatorial And Cumulative Values

Description

This function combines all variants and sums them

Usage

.parCombinateAllAndSum(
  uniqCo,
  massModV,
  nProc = NULL,
  firstOfRepeated = NULL,
  parRegDefault = TRUE,
  silent = FALSE,
  debug = FALSE,
  callFrom = NULL
)

Value

This functions returns a list with single and combined mass-modifications (PTMs) for each peptide

Arguments

uniqCo

(matrix) number of modifications to be considered for each peptide

massModV

(named numeric) mass modification values (names must match colnames of uniqCo)

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

Details

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

See Also

convToNum

Examples

Run this code
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)}

Run the code above in your browser using DataLab