getMeanSpotColor: Extracts mean color of spots

View source: R/visium.utilities.R View source: R/.ipynb_checkpoints/visium.utilities-checkpoint.R

getMeanSpotColorR Documentation

Extracts mean color of spots

Description

Extracts mean color of spots

Usage

getMeanSpotColor(vis, scalefactors, image.name = NULL)

Arguments

vis

Seurat object

scalefactors

list of scale factors (see Details)

Details

Seurat version 4.1.0 for stores wrong value for spot size in . So one needs to load scale factors themself using jsonlite::read_json('/spatial/scalefactors_json.json')). Output of read_json can be used as scalefactors parameter.

Value

matrix with three coumns (red, green, blue) and number of rows equal to the number of spots in vis object


iaaka/visutils documentation built on Jan. 17, 2025, 11:29 p.m.