add_to_rowAnn: Make a custom row annotation column

View source: R/utils.R

add_to_rowAnnR Documentation

Make a custom row annotation column

Description

Make new rowAnn column of expression level (low, int, high) of a specific continuos variable in ds$rowAnn or ds$vals

Usage

add_to_rowAnn(ds, col_name, n_quantiles = 3)

Arguments

ds

A dataset object (a list with vals, rowAnn, colAnn, comparison, name).

col_name

A column name of a continuous numeric variable in either ds$rowAnn or ds$vals.

n_quantiles

Number of quantiles/levels to separate custom column by. Default 3.

Value

A list of 2 elements named: 1) rowAnn1 = new row annotation column name, 2) rowAnn = new ds$rowAnn with the rowAnn1 column


kazeera/hourglass documentation built on April 5, 2025, 7:18 a.m.