CreateSimulationObject {scSpatialSIM}R Documentation

Create a spatial simulation object.

Description

This function creates a SpatSimObj for spatial simulations. The object contains information about the simulation window, the number of simulations to perform, and lists of cells, Tissue1/Tissue2, holes, and spatial files.

Usage

CreateSimulationObject(window = NULL, sims = NULL, cell_types = 1)

Arguments

window

An object of class owin representing the simulation window. If NULL, defaults to a rectangular window of size (0,10) in both x and y directions.

sims

The number of simulations to perform. If NULL or l ess than 1, defaults to 3.

cell_types

The number of cell types. Defaults to 1.

Details

The simulation window is represented by an object of class owin, which specifies the extent and shape of the spatial domain in which the simulations will be performed. If no window is provided, the function creates a rectangular window of size (0,10) in both x and y directions.

The sims argument specifies the number of simulations to perform. If it is set to NULL or less than 1, the function defaults to 3.

The cell_types argument specifies the number of cell types to include in the simulation. By default, the function creates a single cell type, represented by an object of class Cell.

The SpatSimObj is composed of the following classes:

Value

A SpatSimObj containing the simulation window, the number of simulations to perform, and lists of cells, Tissue1/Tissue2, holes, and spatial files.

Examples

CreateSimulationObject()

[Package scSpatialSIM version 0.1.3.3 Index]