Skip to content

Commit

Permalink
Refactored read10X
Browse files Browse the repository at this point in the history
  • Loading branch information
mvfki committed Oct 27, 2023
1 parent f2f995f commit 46125fe
Show file tree
Hide file tree
Showing 9 changed files with 698 additions and 467 deletions.
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ export(quantile_norm)
export(rawData)
export(rawPeak)
export(read10X)
export(read10XATAC)
export(read10XOld)
export(read10XRNA)
export(readLiger)
export(readSubset)
export(removeMissing)
Expand Down
27 changes: 14 additions & 13 deletions R/classConversion.R
Original file line number Diff line number Diff line change
Expand Up @@ -244,17 +244,17 @@ as.ligerDataset.SingleCellExperiment <- function(
createLigerDataset(rawData = mat, modal = modal, ...)
}

#' #' @rdname as.ligerDataset
#' #' @export
#' #' @method as.ligerDataset anndata._core.anndata.AnnData
#' as.ligerDataset.anndata._core.anndata.AnnData <- function(
#' object,
#' modal = c("default", "rna", "atac"),
#' ...
#' ) {
#' modal <- match.arg(modal)
#' message("Python object AnnData input. ")
#' }
# #' @rdname as.ligerDataset
# #' @export
# #' @method as.ligerDataset anndata._core.anndata.AnnData
# as.ligerDataset.anndata._core.anndata.AnnData <- function(
# object,
# modal = c("default", "rna", "atac"),
# ...
# ) {
# modal <- match.arg(modal)
# message("Python object AnnData input. ")
# }

#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# From ligerDataset class to other things ####
Expand All @@ -276,8 +276,8 @@ as.ligerDataset.SingleCellExperiment <- function(
# From liger class to other things ####
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

#' Convert between liger and Seurat object
#'
#' @title Convert between liger and Seurat object
#' @description
#' For converting a \linkS4class{liger} object to a Seurat object, the
#' \code{rawData}, \code{normData}, and \code{scaleData} from each dataset,
#' the \code{cellMeta}, \code{H.norm} and \code{varFeatures} slot will be
Expand All @@ -303,6 +303,7 @@ ligerToSeurat <- function(
object,
assay = NULL,
identByDataset = FALSE,
# Rename or defunct
nms = NULL,
renormalize = NULL,
use.liger.genes = NULL,
Expand Down
Loading

0 comments on commit 46125fe

Please sign in to comment.