Skip to content

Commit 7091047

Browse files
Merge pull request #210 from hpages/devel
Resync the package with the most recent developments in packages SparseArray and DelayedArray
2 parents 317a43b + 9a231d5 commit 7091047

7 files changed

+18
-13
lines changed

DESCRIPTION

+6-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Authors@R: c(
1212
person("Leo", "Lahti", role=c("ctb"), email="leo.lahti@utu.fi", comment = c(ORCID = "0000-0001-5537-637X")),
1313
person("Tuomas", "Borman", role = c("ctb"), comment = c(ORCID = "0000-0002-8563-8884"))
1414
)
15-
Version: 1.33.2
16-
Date: 2024-06-21
15+
Version: 1.33.3
16+
Date: 2024-07-16
1717
License: GPL-3
1818
Title: Single-Cell Analysis Toolkit for Gene Expression Data in R
1919
Description: A collection of tools for doing various analyses of
@@ -31,8 +31,9 @@ Imports:
3131
BiocGenerics,
3232
S4Vectors,
3333
SummarizedExperiment,
34-
DelayedArray,
3534
MatrixGenerics,
35+
SparseArray,
36+
DelayedArray,
3637
beachmat,
3738
BiocNeighbors,
3839
BiocSingular,
@@ -49,6 +50,7 @@ Imports:
4950
ggrastr
5051
Suggests:
5152
BiocStyle,
53+
DelayedMatrixStats,
5254
snifter,
5355
densvis,
5456
cowplot,
@@ -66,6 +68,6 @@ biocViews: ImmunoOncology, SingleCell, RNASeq, QualityControl, Preprocessing, No
6668
GeneExpression, Sequencing, Software, DataImport,
6769
DataRepresentation, Infrastructure, Coverage
6870
Encoding: UTF-8
69-
RoxygenNote: 7.3.1
71+
RoxygenNote: 7.3.2
7072
URL: http://bioconductor.org/packages/scater/
7173
BugReports: https://support.bioconductor.org/

NAMESPACE

+5-3
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ import(scuttle)
104104
importClassesFrom(BiocParallel,MulticoreParam)
105105
importClassesFrom(S4Vectors,DataFrame)
106106
importClassesFrom(SingleCellExperiment,SingleCellExperiment)
107+
importClassesFrom(SparseArray,COO_SparseMatrix)
108+
importClassesFrom(SparseArray,SVT_SparseMatrix)
107109
importClassesFrom(SummarizedExperiment,SummarizedExperiment)
108110
importFrom(BiocGenerics,"counts<-")
109111
importFrom(BiocGenerics,colnames)
@@ -123,15 +125,15 @@ importFrom(BiocSingular,runPCA)
123125
importFrom(DelayedArray,DelayedArray)
124126
importFrom(DelayedArray,getAutoBPPARAM)
125127
importFrom(DelayedArray,setAutoBPPARAM)
126-
importFrom(Matrix,colSums)
127-
importFrom(Matrix,rowMeans)
128-
importFrom(Matrix,rowSums)
129128
importFrom(Matrix,t)
130129
importFrom(MatrixGenerics,colQuantiles)
130+
importFrom(MatrixGenerics,colSums)
131131
importFrom(MatrixGenerics,colSums2)
132132
importFrom(MatrixGenerics,colVars)
133+
importFrom(MatrixGenerics,rowMeans)
133134
importFrom(MatrixGenerics,rowMeans2)
134135
importFrom(MatrixGenerics,rowMedians)
136+
importFrom(MatrixGenerics,rowSums)
135137
importFrom(MatrixGenerics,rowSums2)
136138
importFrom(MatrixGenerics,rowVars)
137139
importFrom(S4Vectors,DataFrame)

R/getVarianceExplained.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ NULL
5555

5656
#' @importFrom MatrixGenerics rowVars
5757
#' @importFrom stats model.matrix
58+
#' @importClassesFrom SparseArray COO_SparseMatrix SVT_SparseMatrix
5859
#' @importFrom scuttle fitLinearModel
5960
.get_variance_explained_internal <- function(block, variables) {
60-
if (is(block, "SparseArraySeed")) {
61-
block <- as(block, "dgCMatrix")
61+
if (is(block, "COO_SparseMatrix")) {
62+
block <- as(block, "SVT_SparseMatrix")
6263
}
6364

6465
rsquared_mat <- matrix(NA_real_, nrow(block), ncol(variables), dimnames=list(NULL, colnames(variables)))

R/nexprs.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
NULL
3737

3838
#' @importFrom BiocParallel SerialParam
39-
#' @importFrom Matrix rowSums colSums
39+
#' @importFrom MatrixGenerics rowSums colSums
4040
#' @importFrom DelayedArray getAutoBPPARAM setAutoBPPARAM
4141
.nexprs <- function(x, byrow=FALSE, detection_limit=0, subset_row=NULL, subset_col=NULL, BPPARAM=SerialParam()) {
4242
if (!is.null(subset_row)) {

R/plotGroupedHeatmap.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#'
5151
#' @export
5252
#' @importFrom SummarizedExperiment assay
53-
#' @importFrom Matrix rowMeans
53+
#' @importFrom MatrixGenerics rowMeans
5454
#' @importFrom scuttle summarizeAssayByGroup
5555
plotGroupedHeatmap <- function(object, features, group, block = NULL,
5656
columns=NULL, exprs_values = "logcounts", center = FALSE, scale = FALSE,

R/plotHeatmap.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#' \code{column_annotation_colors}, \code{color_rows_by},
4848
#' \code{row_annotation_colors}.
4949
#' @param exprs_values Alias to \code{assay.type}.
50-
#' @param by_exprs_values Alias to {by.assay.type}.
50+
#' @param by_exprs_values Alias to \code{by.assay.type}.
5151
#'
5252
#' @details
5353
#' Setting \code{center=TRUE} is useful for examining log-fold changes of each cell's expression profile from the average across all cells.

man/plotHeatmap.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)