transform_data: Get colours from fitted kinase data

View source: R/ucie_transformations.R

transform_dataR Documentation

Get colours from fitted kinase data

Description

Get colours from fitted kinase data

Usage

transform_data(
  dataset,
  transform_vals,
  LAB_coordinates = FALSE,
  rownames_col = NULL,
  fix = TRUE,
  center = TRUE
)

Arguments

dataset

A data frame or matrix of 3D values.

transform_vals

A numeric vector with 1 scaling, 3 rotation, and 3 translation values, as calculated by fit_transform().

LAB_coordinates

Optional: boolean, whether to return CIELAB coordinates instead of RGB codes.

rownames_col

Optional: name of column to ignore during calculations.

fix

Optional: boolean, whether to force points outside the colour space inside (TRUE) or return NA (FALSE). Default is TRUE.

Details

dataset can be a 2D or 3D matrix or data frame, with optional rownames in the first column or a rownames_col-defined column.

Value

Returns a data frame with names and hex codes in name and colour (or name/L/a/b if LAB_coordinates = TRUE).


casblaauw/phosphocie documentation built on March 30, 2022, 8:28 p.m.