forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMixingMetric.Rd
46 lines (39 loc) · 1.18 KB
/
MixingMetric.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
37
38
39
40
41
42
43
44
45
46
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/integration.R
\name{MixingMetric}
\alias{MixingMetric}
\title{Calculates a mixing metric}
\usage{
MixingMetric(
object,
grouping.var,
reduction = "pca",
dims = 1:2,
k = 5,
max.k = 300,
eps = 0,
verbose = TRUE
)
}
\arguments{
\item{object}{Seurat object}
\item{grouping.var}{Grouping variable for dataset}
\item{reduction}{Which dimensionally reduced space to use}
\item{dims}{Dimensions to use}
\item{k}{Neighbor number to examine per group}
\item{max.k}{Maximum size of local neighborhood to compute}
\item{eps}{Error bound on the neighbor finding algorithm (from RANN)}
\item{verbose}{Displays progress bar}
}
\value{
Returns a vector of values of the mixing metric for each cell
}
\description{
Here we compute a measure of how well mixed a composite dataset is. To
compute, we first examine the local neighborhood for each cell (looking at
max.k neighbors) and determine for each group (could be the dataset after
integration) the k nearest neighbor and what rank that neighbor was in the
overall neighborhood. We then take the median across all groups as the mixing
metric per cell.
}
\concept{integration}