cleanParallel: Cleans up with spawned slave processes after use

View source: R/xsAnnotate.R

cleanParallelR Documentation

Cleans up with spawned slave processes after use

Description

The spawned slaves processes, which are created within the parallel mode, are closed explicit.

Usage

  cleanParallel(object)

Arguments

object

xsAnnotate object

Details

The function needs a xsAnnotate object after groupCorr or groupFWHM. The resulting object is a artificial xcmsSet, where the peaks with the specific neutral loss are stored in xcmsSet@peaks.

Author(s)

Carsten Kuhl <ckuhl@ipb-halle.de>

Examples

## Not run:   library(CAMERA)
  file <- system.file('mzML/MM14.mzML', package = "CAMERA")
  xs   <- xcmsSet(file, method="centWave", ppm=30, peakwidth=c(5,10))
  an   <- xsAnnotate(xs, polarity="positive", nSlaves=2)
  an   <- groupFWHM(an)
  an   <- findAdducts(an)
  cleanParallel(an)

## End(Not run)

sneumann/CAMERA documentation built on April 5, 2024, 2:33 a.m.