forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathas.R
34 lines (30 loc) · 729 Bytes
/
as.R
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
#' @include conversion.R
NULL
#' @rdname Convert
#' @export as.seurat
#' @aliases as.seurat
#'
as.seurat <- function(from) {
UseMethod(generic = 'as.seurat', object = from)
}
#' @rdname Convert
#' @export
#' @method as.seurat SingleCellExperiment
#'
as.seurat.SingleCellExperiment <- function(from) {
return(Convert(from = from, to = 'seurat'))
}
#' @rdname Convert
#' @export as.SingleCellExperiment
#' @aliases as.SingleCellExperiment
#'
as.SingleCellExperiment <- function(from) {
UseMethod(generic = 'as.SingleCellExperiment', object = from)
}
#' @rdname Convert
#' @export
#' @method as.SingleCellExperiment seurat
#'
as.SingleCellExperiment.seurat <- function(from) {
return(Convert(from = from, to = 'sce'))
}