Skip to content

Commit 2427dd9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1a7f939 commit 2427dd9

13 files changed

Lines changed: 0 additions & 24 deletions

R/DOT.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ build_model_dot <- function() {
66
}
77

88

9-
109
#' Deconvolute DOT
1110
#'
1211
#' @param single_cell_obj Single Cell Experiment

R/benchmarking.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ plot_scatter <- function(spe = NULL, value1, value2, spe1 = NULL, spe2 = NULL, l
121121
}
122122

123123

124-
125-
126-
127124
#' Compare Signatures
128125
#'
129126
#' @param signature1 signature

R/cluster.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ cluster <- function(spe,
6666
cli::cli_alert_info(paste("Cluster resolution:", toString(clusres)))
6767

6868

69-
7069
cli::cli_progress_step("Extracting data", msg_done = "Extracted data for clustering")
7170

7271
# create seurat object
@@ -146,7 +145,6 @@ cluster <- function(spe,
146145
}
147146

148147

149-
150148
cli::cli_progress_done()
151149

152150
return(spe)
@@ -200,7 +198,6 @@ get_cluster_features <- function(spe,
200198
clusters <- colData(spe)[, clusterid]
201199

202200

203-
204201
# Scores
205202
if (spmethod == "expression") {
206203
if (is.element("cpm", assayNames(spe)) && !is.null(spe@assays@data$cpm)) {

R/deconvolution_algorithms.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,6 @@ deconvolute <- function(spatial_obj, signature = NULL, single_cell_obj = NULL,
285285
cli::cli_progress_step("testing parameter", msg_done = "parameter OK")
286286

287287

288-
289-
290288
if (is.null(spatial_obj)) {
291289
stop("Parameter 'spatial_obj' is missing or null, but is required.")
292290
}

R/preprocess.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ preprocess <- function(object, min_umi = 500, max_umi = NULL, assay = "counts",
106106
}
107107

108108

109-
110109
cli::cli_progress_step(
111110
msg = "Checking for ENSEMBL Identifiers",
112111
msg_done = "Finished Preprocessing"

R/spatial_correlation.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ spatialcorr <- function(spe,
9696
}
9797

9898

99-
10099
# Select variables of interests
101100
# If variables is not provided but method is specified, the function selects variables based on those available in the dataset that start with the specified method.
102101
if (is.null(variables) && !is.null(method)) {

R/subset.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ subsetSCE <- function(sce, cell_type_col = "celltype_major", scenario = "even",
124124
}
125125

126126

127-
128-
129-
130-
131127
#' Isolate Regions within a SpatialExperiment Object
132128
#'
133129
#' Tailor a `SpatialExperiment` object to focus on specific areas by defining ranges in the spatial coordinates.

R/utils.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ checkENSEMBL <- function(names) {
305305
}
306306

307307

308-
309308
#' Annotate Specific Spots within a SpatialExperiment Object
310309
#'
311310
#' This function allows for the annotation of specified spots within a `SpatialExperiment` object.

R/visualization.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,6 @@ plot_comparison <- function(spe, cell_type_1 = NULL, cell_type_2 = NULL,
479479
}
480480

481481

482-
483482
#' Function to plot gene expression
484483
#'
485484
#' Generate Hex Plot of a SpatialExperiment containing deconvolution results
@@ -728,8 +727,6 @@ make_baseplot <- function(spe, df, to_plot, palette = "Mako", transform_scale =
728727
}
729728

730729

731-
732-
733730
# Check if plot is smoothed
734731
if (smooth) {
735732
smooth_suffix <- "smoothed"

tests/testthat/test-conversion.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ test_that("convert human to mouse with valid gene symbols", {
1111
})
1212

1313

14-
1514
ad <- spe_to_ad(spe, assay = "counts")
1615

1716
test_that("spe_to_ad returns an AnnData object", {

0 commit comments

Comments
 (0)