Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Hafemeister committed Oct 13, 2022
1 parent 154da8d commit cf63b42
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions R/demultiplexing.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@
#' input column names, 'neg', or 'multi'
#'
#' @section Details:
#' Barcode-based demultiplexing using Gaussian finite mixture model (GMM) that
#' identifies per pair of barcodes four groups of cells:
#' G1) positive for barcode 1,
#' G2) positive for barcode 2,
#' G3) negative for both barcodes, and
#' G4) positive for both barcodes.
#' For each cell and barcode pair, we calculate the mean and relative differences
#' (difference over the mean) of log10-transformed counts (pseudo-count added).
#' In a first iteration, we use a 1-dimensional mixture model
#' (mclust package; MClustSSC method; parameters: modelNames=”E”, G = 3) with
#' relative differences as input and the following training data: the 50 cells
#' with highest/lowest relative difference as positives for G1 and G2, 50 cells
#' closest to the mean of G1 and G2 as G3. Based on the resulting classification
#' we generate synthetic G4 training data by sampling cells assigned to
#' G1 and G2 and combining their barcode counts (barcode 1 from G1 cells,
#' barcode 2 from G2 cells). These synthetic doublet cells are added to the
#' training data and a final 2-dimensional mixture model (parameters:
#' modelNames=”VVV”, G = 4) with relative difference and mean as input is used
#' for classification.
#'
#' @export
#'
Expand Down
19 changes: 19 additions & 0 deletions man/cb_demux_gmm.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cf63b42

Please sign in to comment.