kinase2cielab: Get kinase score colours based on reference colourspace

kinase2cielabR Documentation

Get kinase score colours based on reference colourspace

Description

Get kinase score colours based on reference colourspace

Usage

kinase2cielab(data, k = 10, rownames_col = NULL, fix = TRUE)

Arguments

data

A data frame or matrix, with the same columns as the reference kinase scoring dataset (NetPhorest, 61 kinases), and optionally a rownames column (see rownames_col)

k

Number of neighbours to consider.

rownames_col

Optional: name of a column containing rownames, set as true rownames before continuing. Allows usage of tidy data in this matrix-based function.

fix

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

Value

A data frame with columns name and colour. Use colours with ggplot2::scale_color_identity().


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