Skip to content

Commit

Permalink
remove df at entropy step
Browse files Browse the repository at this point in the history
  • Loading branch information
shazanfar committed Aug 5, 2024
1 parent d479eba commit e1677e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: SpatialFeatures
Title: Entropy-based subcellular and supercellular features for molecule-resolved spatial omics datasets
Version: 0.0.3
Version: 0.0.4
Authors@R: c(
person("Shila", "Ghazanfar", email = "[email protected]", role = c("aut", "cre", "ctb")),
person("Guan", "Gui", role = "ctb")
Expand Down
4 changes: 3 additions & 1 deletion R/EntropyMatrix_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ matrix_entropy <- function(mat, nCores = 1) {
compute_cell_entropy(cell_segments_mat)
}, mc.cores = nCores)

df_entropy <- as.data.frame(do.call(cbind, results))
# commented out by shila
# df_entropy <- as.data.frame(do.call(cbind, results))
df_entropy <- do.call(cbind, results)
rownames(df_entropy) <- rownames(mat)
colnames(df_entropy) <- cells

Expand Down

0 comments on commit e1677e3

Please sign in to comment.