Analyze a Hotspot object using built in methods such such as local correlation, signature overlap, etc. Necessary to run this function for Hotspot functionality in viewer to work.

analyzeHotspotObjectVision(object, hs, tree = FALSE)

Arguments

object

the VISION object

hs

the Hotspot python object loaded by Reticulate

tree

whether to use tree as latent space. If TRUE, object should have a tree

Value

the modified VISION object with the following slots filled: Populates the modData, HotspotModuleScores, ModuleSignatureEnrichment and HotspotObject slots of object, as well as recalculates signature scores for new modules.