histWeighted: Correlation-weighted histogram of massdiff object

Description Usage Arguments Value See Also

View source: R/histWeighted.R

Description

Bin mass differences from a massdiff object produced by massdiff into a histogram, with counts weighted by the correlation estimate. The massdiff object must contain the correlation test results, product of corrPairsMSI or corrPairsMSIchunks functions.

Usage

1
2
histWeighted(diff, widthFunc = "equal", width = 0.01, ncores = NULL,
  ...)

Arguments

diff

massdiff; Output from function massdiff, containing three numeric vectors (A, B, diff) representing mass peaks and their differences, processed with corrPairsMSI which adds columns Estimate, P.value, and Significance

widthFunc

character; function to use to bin mass differences into histogram. (default "equal", other options to be added)

width

numeric; bin width in m/z units (default 0.01)

ncores

integer; number of processors to use for parallelized implementation. If NULL (default) then run with single processor

...

Other options to be passed to hist()

Value

Object of classes hist and massdiffhist

See Also

massdiff to generate the mass difference list

plot.massdiffhist for plotting and annotating the resulting object


kbseah/mass2adduct documentation built on June 9, 2021, 9:20 p.m.