swh:1:snp:0da231f3ffdb3226650880f1b61d5d5cdcbd749b
Raw File
Tip revision: 656fc8b562d53e5d0cedda9e09d9dda81e8c00e9 authored by David Collins on 29 February 2024, 13:44:33 UTC
Merge pull request #8550 from satijalab/develop
Tip revision: 656fc8b
MixingMetric.Rd
% 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}
back to top