normTraj: Normalize Trajectory

Description Usage Arguments Value

View source: R/normTraj.R

Description

Returns original dt with an additional column with normalized quantity. The column to be normalised is given by 'in.meas.col'. The name of additional column is the same as in.meas.col but with ".norm" suffix added. Normalisation is based on part of the trajectory; this is defined by in.rt.min and max, and the column with time in.rt.col.#'

Usage

1
2
3
normTraj(in.dt, in.meas.col, in.rt.col = "RealTime", in.rt.min = 10,
  in.rt.max = 20, in.by.cols = NULL, in.robust = TRUE,
  in.type = "z.score")

Arguments

in.dt

Data table in long format

in.meas.col

String with the column name to normalize

in.rt.col

String with the colum name holding time

in.rt.min

Lower bound for time period used for normalization

in.rt.max

Upper bound for time period used for normalization

in.by.cols

String vector with 'by' columns to calculate normalization per group; if NULL, no grouping is done

in.robust

Whether robust measures should be used (median instead of mean, mad instead of sd); default TRUE

in.type

Type of normalization: z.score or mean (i.e. fold change w.r.t. mean); default 'z-score'

Value

Returns original dt with an additional column with normalized quantity.


dmattek/tca-package documentation built on Dec. 10, 2019, 4:10 p.m.