rc.cmpd.replace.na: rc.cmpd.replace.na

View source: R/rc.cmpd.replace.na.R

rc.cmpd.replace.naR Documentation

rc.cmpd.replace.na

Description

replaces any NA (and optionally zero) values with small signal (20

Usage

rc.cmpd.replace.na(
  ramclustObj = NULL,
  replace.int = 0.1,
  replace.noise = 0.1,
  replace.zero = TRUE
)

Arguments

ramclustObj

ramclustObj containing SpecAbund dataset

replace.int

default = 0.2. proportion of minimum feature value to replace NA (or zero) values with

replace.noise

default = 0.2. proportion ofreplace.int value by which noise is added via 'jitter'

replace.zero

logical if TRUE, any zero values are replaced with noise as if they were NA values

Details

noise is added by finding for each feature the minimum detected value, multiplying that value by replace.int, then adding (replace.int*replace.noise) noise. abs() is used to ensure no negative values result.

Value

ramclustR object with NA and zero values removed.

Author(s)

Corey Broeckling

References

Broeckling CD, Afsar FA, Neumann S, Ben-Hur A, Prenni JE. RAMClust: a novel feature clustering method enables spectral-matching-based annotation for metabolomics data. Anal Chem. 2014 Jul 15;86(14):6812-7. doi: 10.1021/ac501530d. Epub 2014 Jun 26. PubMed PMID: 24927477.


cbroeckl/RAMClustR documentation built on Sept. 1, 2024, 1:50 a.m.