Skip to content

Commit

Permalink
Minor updates to specify variable classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
PratibhaPanwar committed Aug 27, 2024
1 parent 0ffcc55 commit b0c2f90
Show file tree
Hide file tree
Showing 3 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 @@ -18,7 +18,7 @@ Description: clustSIGNAL: clustering of Spatially Informed Gene expression with
License: GPL-2
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
Depends: R (>= 4.0.0), SpatialExperiment, doParallel
Imports: BiocNeighbors, bluster, scater, aricode, distances, cluster, ggplot2, patchwork, BiocStyle
Suugests: knitr, rmarkdown
Expand Down
2 changes: 1 addition & 1 deletion R/clustering.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ nsClustering <- function(spe, dimRed, reclust, ...) {
second = bluster::NNGraphParam(k = 5, cluster.fun = "louvain")))
subclusters_list[[c]] <- setNames(paste0(c, ".", nsClustX), colnames(speX))
}
spe$nsSubcluster <- unlist(subclusters_list)[colnames(spe)]
spe$nsSubcluster <- factor(unlist(subclusters_list)[colnames(spe)])
print(paste("Nonspatial subclustering performed. Subclusters =", length(unique(spe$nsSubcluster)), Sys.time()))

} else if (reclust == TRUE) {
Expand Down
2 changes: 1 addition & 1 deletion R/entropyMeasure.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ entropyMeasure <- function(spe, cells, regXclust, threads) {
} else if (check.NA.values != 0) {
stop("Missing entropy values.")
} else {
spe$entropy <- as.matrix(unlist(regEntropy))
spe$entropy <- as.vector(unlist(regEntropy))
print(paste("Region domainness calculated.", Sys.time()))
}
return(spe)
Expand Down

0 comments on commit b0c2f90

Please sign in to comment.