Skip to content

asSeurat() returns "character" and warning in SPATA2 3.1.4 #237

Description

@jligm-hash

Here’s a concise issue body you can paste and adapt:

Description

asSeurat() does not return a Seurat object in SPATA2 3.1.4. It prints a warning that the function is in development and the returned object has class "character" instead of "Seurat".

Minimal reproducible example

r
library(SPATA2)
library(Seurat)

packageVersion("SPATA2")
# 3.1.4

data("example_data")
object <- example_data$object_UKF275T_diet

seurat_obj <- asSeurat(object)

class(seurat_obj)
# "character"

Console warning:

r
Warning in asSeurat(object): This function is currently in development.
Please raise an issue at github if you require SPATA2 to Seurat conversion.
Expected behavior

asSeurat() should return a valid Seurat object (e.g. class "Seurat") containing the expression matrix, metadata, and spatial information for the SPATA2 object.

Session info

r
sessionInfo()

R version 4.4.1 (2024-06-14)
Platform: x86_64-apple-darwin20
Running under: macOS 26.2

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Asia/Hong_Kong
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets 
[6] methods   base     

other attached packages:
[1] Seurat_5.4.0       SeuratObject_5.3.0
[3] sp_2.2-0           SPATA2_3.1.4   

Additional context

SPATA2 version: packageVersion("SPATA2") → 3.1.4
Seurat version: packageVersion("Seurat") → 5.4.0
OS: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions