calculateCentroids | R Documentation |
Calculate spatial centroids for the clusters or the subclusters.
calculateCentroids( object, assay.type = "ST", sample.name = "Sample1", cluster.column, cluster.type = c("Cluster", "Subcluster") ) ## S4 method for signature 'CellRouter' calculateCentroids( object, assay.type = "ST", sample.name = "Sample1", cluster.column, cluster.type = c("Cluster", "Subcluster") )
object |
the CellRouter object. |
assay.type |
character; the type of data to use. |
sample.name |
character; the name of the tissue sample. |
cluster.column |
character; the name of the column where the clustering information is stored. |
cluster.type |
character; the column where the clusters are indicated. It could be either 'Cluster' or 'Subcluster'. |
list; the centroids dataframe for each tissue sample. Each dataframe has the columns cluster, row, col, imagerow, imagecol. The row and col are the centroid coordinates while the imagerow and imagecol are the coordinates for plotting, as scaled in the bcs list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.