Skip to content

Commit

Permalink
Modify DESCRIPTION and fix couple of BiocCheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nturaga committed Apr 14, 2024
1 parent f88d2a7 commit 215b6ee
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
8 changes: 6 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ Imports:
scater,
SummarizedExperiment,
BiocGenerics,
S4Vectors
S4Vectors,
stats,
utils
Suggests:
AUCell,
BiocStyle,
Expand All @@ -44,10 +46,12 @@ Suggests:
scran,
scRNAseq,
SingleR,
celldex
celldex,
testthat (>= 3.0.0)
VignetteBuilder:
knitr
biocView: SingleCell, Software
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.1
Config/testthat/edition: 3
4 changes: 2 additions & 2 deletions R/calculatePairwiseDistancesAndPlotDensity.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ calculatePairwiseDistancesAndPlotDensity <-
## Extract the distances or correlations for the different pairwise comparisons
num_query_cells <- nrow(query_mat)
num_ref_cells <- nrow(ref_mat)
dist_query_query <- dist_matrix[1:num_query_cells, 1:num_query_cells]
dist_query_query <- dist_matrix[seq_len(num_query_cells), seq_len(num_query_cells)]
dist_ref_ref <- dist_matrix[(num_query_cells + 1):(num_query_cells + num_ref_cells),
(num_query_cells + 1):(num_query_cells + num_ref_cells)]
dist_query_ref <- dist_matrix[1:num_query_cells,
dist_query_ref <- dist_matrix[seq_len(num_query_cells),
(num_query_cells + 1):(num_query_cells + num_ref_cells)]

## Create data frame for plotting
Expand Down
2 changes: 1 addition & 1 deletion R/outlierDetection.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,5 @@ calculateOutlierScore <- function(sce,

S4Vectors::metadata(sce)$isotree_model <- isotree_res$model

return(sce)
sce
}
1 change: 0 additions & 1 deletion R/visualizeCellTypeMDS.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
#' mdata = mdata,
#' cell_type_colors = cell_type_colors,
#' legend_order = legend_order)
#' print(plot)
#'
#' @importFrom stats cmdscale cor
#' @importFrom ggplot2 ggplot scale_color_manual guides guide_legend
Expand Down
12 changes: 12 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is part of the standard setup for testthat.
# It is recommended that you do not modify it.
#
# Where should you do additional test configuration?
# Learn more about the roles of various files in:
# * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
# * https://testthat.r-lib.org/articles/special-files.html

library(testthat)
library(scDiagnostics)

test_check("scDiagnostics")

0 comments on commit 215b6ee

Please sign in to comment.