calculateDistanceMatrix | R Documentation |
Calculate distance matrix for the clusters in each tissue sample.
calculateDistanceMatrix( object, assay.type = "ST", sample.name = "Sample1", cluster.type = c("Cluster", "Subcluster"), spot_distance = 100, normalize = TRUE ) ## S4 method for signature 'CellRouter' calculateDistanceMatrix( object, assay.type = "ST", sample.name = "Sample1", cluster.type = c("Cluster", "Subcluster"), spot_distance = 100, normalize = TRUE )
object |
the CellRouter object. |
assay.type |
character; the type of data to use. |
sample.name |
character; the name of the tissue sample. |
cluster.type |
character; the column where the clusters are indicated. It could be either 'Cluster' or 'Subcluster'. |
spot_distance |
numeric; the distance between the center of the spots. The default is 100 micrometers. If this parameters is 1, the distance matrix will be relative to the rows and columns of the spots. |
normalize |
boolean; normalize the distances dividing by the total size of the tissue. |
the CellRouter object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.