Description Usage Arguments Value Author(s)
View source: R/StardustOnSeurat.R
This function calls Seurat clustering feature, passing a custom distance matrix that integrate both transcriptional similarity and spatial information
1 2 3 4 5 6 | StardustOnSeurat(
countMatrix,
spotPositions,
spaceWeight = 1,
pcaDimensions = 5
)
|
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. |
Seurat object with cluster identifications for each spot under active.ident slot.
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.