Skip to content

Commit

Permalink
Merge pull request #593 from satijalab/doc/sampletree
Browse files Browse the repository at this point in the history
Improve documentation for sample.tree
  • Loading branch information
mojaveazure authored Sep 3, 2021
2 parents da9018e + 3c457f1 commit 1d8cb2b
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 32 deletions.
20 changes: 18 additions & 2 deletions R/integration.R
Original file line number Diff line number Diff line change
Expand Up @@ -1271,8 +1271,23 @@ GetTransferPredictions <- function(object, assay = "predictions", slot = "data",
#' query, as the merged object will subsequently contain more cells than was in
#' query, and weights will need to be calculated for all cells in the object.
#' @param sd.weight Controls the bandwidth of the Gaussian kernel for weighting
#' @param sample.tree Specify the order of integration. If NULL, will compute
#' automatically.
#' @param sample.tree Specify the order of integration. Order of integration
#' should be encoded in a matrix, where each row represents one of the pairwise
#' integration steps. Negative numbers specify a dataset, positive numbers
#' specify the integration results from a given row (the format of the merge
#' matrix included in the \code{\link{hclust}} function output). For example:
#' `matrix(c(-2, 1, -3, -1), ncol = 2)` gives:
#'
#' ```
#' [,1] [,2]
#' [1,] -2 -3
#' [2,] 1 -1
#' ```
#'
#' Which would cause dataset 2 and 3 to be integrated first, then the resulting
#' object integrated with dataset 1.
#'
#' If NULL, the sample tree will be computed automatically.
#' @param preserve.order Do not reorder objects based on size for each pairwise
#' integration.
#' @param eps Error bound on the neighbor finding algorithm (from
Expand All @@ -1291,6 +1306,7 @@ GetTransferPredictions <- function(object, assay = "predictions", slot = "data",
#'
#' @export
#' @concept integration
#' @md
#' @examples
#' \dontrun{
#' # to install the SeuratData package see https://github.com/satijalab/seurat-data
Expand Down
68 changes: 40 additions & 28 deletions man/IntegrateData.Rd

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

16 changes: 14 additions & 2 deletions man/IntegrateEmbeddings.Rd

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

0 comments on commit 1d8cb2b

Please sign in to comment.