getRegionsScores: Get region scores

View source: R/BasicTopicOperations.R

getRegionsScoresR Documentation

Get region scores

Description

Get region scores per topic

Usage

getRegionsScores(object, method = "Z-score", scaled = TRUE)

Arguments

object

Initialized cisTopic object, after the object@selected.model has been filled.

method

Select the method for processing the region assignments: 'Z-score','Probability' or 'NormTop'.

rescale

Whether feature scaling should be performed within the topics. By default, it is set to true.

Details

'Z-score' computes the Z-score for each topic assingment per cell/region. 'Probability' divides the topic assignments by the total number of assignments in the cell/region in the last iteration plus alpha. If using 'NormTop', regions are given an score defined by: \beta_{w, k} (\log \beta_{w,k} - 1 / K \sum_{k'} \log \beta_{w,k'}).

Value

Returns the region scores per topic in object@region.data.


aertslab/cisTopic documentation built on April 6, 2024, 9:31 p.m.