do.noise.reduce: Reduce noise by change values below a specified threshold to...

Description Usage Arguments Value Author(s) References Examples

View source: R/do.noise.reduce.R

Description

Reduce noise by change values below a specified threshold to that value, reducing the noise generated by 'negative' values

Usage

1
do.noise.reduce(dat, use.cols, cutoffs)

Arguments

dat

NO DEFAULT. Data table of cells (rows) x features (columns)

use.cols

NO DEFAULT. A vector of column names – specifying which columns will have noise reduction applied to them

cutoffs

NO DEFAULT. A vector of numeric cutoff values for each of the use.cols – values below this threshold will be modified to the threshold value.

Value

Returns a data.table with the noise-reduced data added as new columns, including a 'noiseRed' suffix

Author(s)

Thomas M Ashhurst, thomas.ashhurst@sydney.edu.au

References

https://sydneycytometry.org.au/spectre.

Examples

1
2
3
4
5
min(Spectre::demo.asinh$Ly6G_asinh) # Minimum value of CD11b_asinh should be -5.176318

res <- Spectre::do.noise.reduce(dat = Spectre::demo.asinh,
                                use.cols = names(Spectre::demo.asinh)[c(11:19)],
                                cutoffs = rep(0, 9))

tomashhurst/Spectre documentation built on Dec. 23, 2021, 11:55 a.m.