You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data.image = Read10X_Image("/home/bao_jingyi/bjyspace/spatial/",
image.name = "tissue_hires_image.png")
data <- Load10X_Spatial(
data.dir = "/home/bao_jingyi/bjyspace/",
filename = "filtered_feature_bc_matrix.h5",
assay = "Spatial",
slice = "LC-156519-BC-swollen2-edge3-liver5",
image = data.image
)
data
An object of class Seurat
18085 features across 203083 samples within 1 assay
Active assay: Spatial (18085 features, 0 variable features)
1 layer present: counts
1 spatial field of view present: LC.156519.BC.swollen2.edge3.liver5
data<- SCTransform(data, assay = "Spatial", verbose = FALSE) vst.flavor is set to 'v2' but could not find glmGamPoi installed.
Please install the glmGamPoi package for much faster estimation.
Could you rename your Spatial assay to "RNA" and try (for now)?
Do you mean to change ‘‘assay = "Spatial"’‘ to ’‘assay = "RNA"’‘?
Like this?
data <- Load10X_Spatial(
data.dir = "/home/bao_jingyi/1120space/bjyspace/",
filename = "filtered_feature_bc_matrix.h5",
assay = "RNA",
slice = "LC-156519-BC-swollen2-edge3-liver5",
image = data.image # 假设 data.img 是之前定义的图像对象
)
Warning messages:
1: Adding image data that isn't associated with any assays
2: Adding image data that isn't associated with any assays
If I do this, it looks like my spatial information can't be read. This is like the example of the warning above
I don't know if my understanding is correct, looking forward to your reply again
`library(Seurat)
library(ggplot2)
library(patchwork)
library(dplyr)
library(hdf5r)
install.packages('BiocManager')
BiocManager::install('glmGamPoi')
Falling back to native (slower) implementation.
Error in make_cell_attr(umi, cell_attr, latent_var, batch_var, latent_var_nonreg, :
cell attribute "log_umi" contains NA, NaN, or infinite value`
I have tried a variety of methods but can't solve this error, please give a solution or suggestion to solve this error, thank you.
The text was updated successfully, but these errors were encountered: