ssc.scale: scale the data

View source: R/utils.R

ssc.scaleR Documentation

scale the data

Description

scale the data

Usage

ssc.scale(
  obj,
  gene.id,
  gene.symbol,
  assay.name = "norm_exprs",
  adjB = NULL,
  do.scale = F,
  block.size = NULL,
  val.padding = 0,
  add.padding = F
)

Arguments

obj

object of singleCellExperiment class

gene.id

should be in rownames(obj); genes to plot

gene.symbol

should be in rowData(obj)[,"display.name"]; genes to plot

assay.name

character; which assay (default: "exprs")

adjB

character; batch column of the colData(obj). (default: NULL)

do.scale

logical; whether scale the data. (default: F)

block.size

integer; block size. To process large matrix, each time a block of [INT] genes is processed (default: NULL)

val.padding

double; padding value. (default: 0)

add.padding

logical; whether assign padding value for genes not in obj. (default: F)

Details

scale the data specified in assay.name, then store the scaled data to $assay.name.scale. One of gene.id and gene.symbol must be provided.


Japrin/sscVis documentation built on March 5, 2025, 10:23 a.m.