Skip to content

Commit

Permalink
small changes per bioc submission
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Totty authored and Michael Totty committed Mar 20, 2024
1 parent 4772ff5 commit c06b93c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
Depends:
R (>= 4.4.0)
R (>= 4.3.0)
Imports:
SpatialExperiment,
SummarizedExperiment,
Expand Down
4 changes: 2 additions & 2 deletions R/findArtifacts.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ findArtifacts <- function(spe, mito_percent="expr_chrM_ratio",
# =========== Artifact annotation ===========

# calculate average local variance of the two clusters
clus1_mean <- mean(colData(spe.temp)[[paste0("k", tmp.name)]][spe.temp$Kmeans==1])
clus2_mean <- mean(colData(spe.temp)[[paste0("k", tmp.name]][spe.temp$Kmeans==2])
clus1_mean <- mean(colData(spe.temp)[[tmp.name]][spe.temp$Kmeans==1])
clus2_mean <- mean(colData(spe.temp)[[tmp.name]][spe.temp$Kmeans==2])

artifact_clus <- which.min(c(clus1_mean, clus2_mean))

Expand Down

0 comments on commit c06b93c

Please sign in to comment.