Skip to content

Commit

Permalink
Add examples for as.Seurat and as.loom
Browse files Browse the repository at this point in the history
  • Loading branch information
mojaveazure committed Mar 29, 2019
1 parent 08dc0eb commit 6d361c0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/dimensional_reduction.R
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ RunTSNE.Seurat <- function(
add.iter = add.iter,
dim.embed = dim.embed,
reduction.key = reduction.key,
is_distance = TRUE,
is_distance = TRUE,
...
)
} else if (!is.null(x = dims)) {
Expand Down Expand Up @@ -1501,6 +1501,10 @@ ScoreJackStraw.Seurat <- function(
return(object)
}

#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# Methods for R-defined generics
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# Internal
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down
11 changes: 11 additions & 0 deletions R/objects.R
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,11 @@ as.Graph.matrix <- function(x, ...) {
#' @export
#' @method as.loom Seurat
#'
#' @examples
#' \dontrun{
#' lfile <- as.loom(x = pbmc_small)
#' }
#'
as.loom.Seurat <- function(
x,
assay = NULL,
Expand Down Expand Up @@ -1406,6 +1411,12 @@ as.loom.Seurat <- function(
#' @export
#' @method as.Seurat loom
#'
#' @examples
#' \dontrun{
#' lfile <- as.loom(x = pbmc_small)
#' pbmc <- as.Seurat(x = lfile)
#' }
#'
as.Seurat.loom <- function(
x,
cells = 'CellID',
Expand Down
7 changes: 7 additions & 0 deletions man/as.Seurat.Rd

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

6 changes: 6 additions & 0 deletions man/as.loom.Rd

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

0 comments on commit 6d361c0

Please sign in to comment.