waveST: waveST Constructor

View source: R/waveSTClass.R

waveSTR Documentation

waveST Constructor

Description

Create a waveST object from an data.frame, matrix, or tibble.

Usage

waveST(data, spatial = NA, input = NA, level = 6)

Arguments

data

an instance of data.frame, matrix, or tibble, representing riginal data, cell(n)-by-gene(p) matrix,

spatial

cell(n)-by-location(2) matrix, representing coordinates of each cell, see "details"

input

location(D^2)-by-gene(2) matrix, representing gene expression over location

level

the scale for the gene expression image after input generation, the size of images for input generation should be 2^level

Details

If spatial is not given, the class assumes the data is generated input: location(D^2)-by-gene(2). The class set input = data, this is useful when we already have location(D^2)-by-gene(2) matrix (like settings in simulations).

     The content of \code{output} depends on whether use wavelet, and the decomposition methods.
     The  \code{output} is NA once created. The values will be updated once called \code{\link{decompse}}.

Value

a waveST object

Examples

res = kOverA_ST(k = 3, A = 7)
viz = res$viz
df = res$df
wave = waveST(data = df, spatial = viz)

OliverXUZY/waveST documentation built on June 9, 2024, 6:18 a.m.