View source: R/weightStardust.R
weightStardust | R Documentation |
This function calls Seurat clustering feature, passing a custom distance matrix that integrates both transcriptional similarity and spatial information through a space weight parameter.
weightStardust( countMatrix, spotPositions, spaceWeight = 1, pcaDimensions = 10, res = 0.8 )
countMatrix, |
dataframe with spots id as columns and genes id as rows |
spotPositions, |
dataframe with x and y spot coordinates as columns and spots id as rows |
spaceWeight, |
double in [0,1]. Weight for the linear transformation of spot distance 1 means spot distance weight as much as profile distance, 0 means spot distance doesn't contribute at all in the overall distance measure |
pcaDimensions, |
number of PCA dimension to include in the distance computation |
res, |
double resolution for Louvain algorithm |
Seurat object with cluster identifications for each spot under active.ident slot.
Eva Viesi, eva [dot] viesi [at] univr [dot] it, University of Verona
Simone Avesani, simone [dot] avesani [at] univr [dot] it, University of Verona
Giovanni Motterle, giovanni [dot] motterle [at] univr [dot] it, University of Verona
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.