generate_spot: Generate pseudo spot st_data

View source: R/methods.R

generate_spotR Documentation

Generate pseudo spot st_data

Description

Generate pseudo spot st_data with single-cell st_data

Usage

generate_spot(st_data, st_meta, x_min, x_res, x_max, y_min, y_res, y_max)

Arguments

st_data

A data.frame or matrix or dgCMatrix containing counts of spatial transcriptomics, each column representing a cell, each row representing a gene.

st_meta

A data.frame containing coordinate of spatial transcriptomics with three columns, 'cell', 'x', 'y', and celltype.

x_min

Min value of x axis.

x_res

Resolution of x coordinate.

x_max

Max value of x axis.

y_min

Min value of y axis.

y_res

Resolution of y coordinate.

y_max

Max value of y axis.

Value

A list of spot st_data and st_meta


ZJUFanLab/SpaTalk documentation built on Jan. 21, 2025, 3:13 p.m.