rowNormScale: Normalize and scale data per row

rowNormScaleR Documentation

Normalize and scale data per row

Description

Normalize and scale data per row

Usage

rowNormScale(
  x,
  from = 0,
  to = 1,
  naValue = NA,
  low = NULL,
  high = NULL,
  singletMethod = "min",
  col_range = NULL,
  ...
)

Arguments

x, from, to, naValue, singletMethod

arguments passed to jamba::normScale(). Note that the default ⁠low,high⁠ values use the column range defined by col_range.

low

numeric value or NULL, passed to jamba::normScale() for each row in x. When low is NULL, it uses the minimum value in col_range for each row.

high

numeric value or NULL, passed to jamba::normScale() for each row in x. When high is NULL, it uses the maximum value in col_range for each row.

col_range

integer vector referring to column numbers in the input x matrix to use in jamba::normScale(). When col_range is NULL, it uses all columns in x.

...

additional arguments are passed to jamba::normScale().

Details

This function essentially calls jamba::normScale() on each row of a numeric matrix. By default, it scales values to a fixed numeric range from 0 to 1, where the minimum value is set to 0 and the maximum value is set to 1. It is much more configurable, see jamba::normScale() help docs.

See Also

Other jam utility functions: cardinality(), color_complement(), convert_PD_df_to_SE(), convert_imputed_assays_to_na(), curate_se_colData(), curate_to_df_by_pattern(), design2layout(), get_numeric_transform(), handle_df_args(), merge_proteomics_se(), rmd_tab_iterator()

Examples

m <- matrix(1:9, ncol=3);
m;

rowNormScale(m);
rowNormScale(m, from=0, to=10);


jmw86069/platjam documentation built on May 21, 2024, 2:26 a.m.