get_colors: Get color palette from input Excel file.

View source: R/get_objects_run_hourglass.R

get_colorsR Documentation

Get color palette from input Excel file.

Description

Get color palette for all rowAnn variables for use by run_hourglass function from input Excel file.

Usage

get_colors(file_xl, sheet = "Colors")

Arguments

file_xl

Excel file (.xlsx) containing user options for hourglass run.

sheet

Name of worksheet in file_xl containing table where column 1 is variables and column 2 is hex code

Value

List of colors, where elements are hex codes and element names are variables. As a result of "cleaning", element names don't have 2 parts, are duplicated, and is white e.g. list("Tumour"="#2f4f4Fff", "Stroma"="#d2691eff")


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