forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetCentroids.Rd
36 lines (33 loc) · 1015 Bytes
/
GetCentroids.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spatial.R
\name{GetCentroids}
\alias{GetCentroids}
\title{Get cell centroids}
\usage{
GetCentroids(object, cells.use = NULL, get.exact = TRUE)
}
\arguments{
\item{object}{Seurat object}
\item{cells.use}{Cells to calculate centroids for (default is all cells)}
\item{get.exact}{Get exact centroid (Default is TRUE). If FALSE, identify
the single closest bin.}
}
\value{
Data frame containing the x and y coordinates for each cell
centroid.
}
\description{
Calculate the spatial mapping centroids for each cell, based on previously
calculated mapping probabilities for each bin.
}
\details{
Currently, Seurat assumes that the tissue of interest has an 8x8 bin
structure. This will be broadened in a future release.
}
\examples{
\dontrun{
# Note that the PBMC test example object does not contain spatially restricted
# examples below are only demonstrate code
pmbc_small <- GetCentroids(pbmc_small, [email protected])
}
}