getSubColors: Run single-cell mapping

getSubColorsR Documentation

Run single-cell mapping

Description

Mapping the output of "getSingleCellDeconv()"to the best matching cell from the reference dataset

Usage

getSubColors(
  tab,
  class = "annotation_level_2",
  subclass = "annotation_level_4",
  pal = "Set3",
  max_pal = 12,
  random = T,
  seed = 200,
  into = "#EDEDED",
  add_n = 1
)

Arguments

tab

Input data of the class data.frame

class

Character value; The col containing the main class

subclass

Character value; The col containing the subclass

pal

Character value; Color pal from brewer.pal()

random

Logical. If TRUE random mixing colors from pal

seed

Integer value. set.seed() for constant color alignment

into

Character value; The color for non-classified samples

add_n

Integer value. Adopting the contrast of the subclass colors

Author(s)

Dieter Henrik Heiland


heilandd/SPATAwrappers documentation built on Oct. 2, 2022, 1:40 p.m.