Skip to content

Commit

Permalink
ensure visium version
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Pickering <[email protected]>
  • Loading branch information
alexvpickering committed Nov 19, 2024
1 parent c05fbd7 commit fac6a68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipeline-runner/R/obj2s-2-load_obj2s_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ reconstruct_seurat_spatial <- function(dataset_fpath) {
image_names <- Seurat::Images(user_scdata)
for (image_name in image_names) {

# TODO: ensure class of image can be handled
# stopifnot(class(image) %in% c('VisiumV2', 'VisiumV1'))

image <- user_scdata@images[[image_name]]

# ensure class of image can be handled
stopifnot(class(image) %in% c('VisiumV2', 'VisiumV1'))

check_type_is_safe(image)
scdata@images[[image_name]] <- image
}
Expand Down

0 comments on commit fac6a68

Please sign in to comment.