Skip to content

Commit

Permalink
add colnames when concat
Browse files Browse the repository at this point in the history
  • Loading branch information
shazanfar committed Aug 5, 2024
1 parent 4b24b2d commit d479eba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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.2
Version: 0.0.3
Authors@R: c(
person("Shila", "Ghazanfar", email = "[email protected]", role = c("aut", "cre", "ctb")),
person("Guan", "Gui", role = "ctb")
Expand Down
3 changes: 3 additions & 0 deletions R/EntropySummarizedExperiment.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ EntropySummarizedExperiment <- function(df_list, me, includeCounts = FALSE, conc
} else {

rnames = gsub(".*_", "", rownames(assay_data[[1]]))
cnames = gsub(".*_", "", colnames(assay_data[[1]]))

assay_data <- lapply(assay_data, function(x){
rownames(x) <- rnames
colnames(x) <- cnames
return(x)
})

Expand Down

0 comments on commit d479eba

Please sign in to comment.