Skip to content

Commit

Permalink
fix names(mols)
Browse files Browse the repository at this point in the history
  • Loading branch information
alikhuseynov authored Oct 18, 2023
1 parent a02f821 commit 17d315b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/read.R
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,11 @@ formatTxSpots <- function(file, dest = c("rowGeometry", "colGeometry"),
names(mols) <- names_use
} else if (!is.null(file_out)) {
names(mols) <- paste0(basename(file_dir), "_z", names(mols))
} else {
names(mols) <-
file_path_sans_ext(file) |>
basename() |>
paste0("_z", names(mols))
}
} else {
mols <- .mols2geo_split(mols, dest, spatialCoordsNames, gene_col, cell_col,
Expand Down

0 comments on commit 17d315b

Please sign in to comment.