SPOTlight error with Visium data
0
0
Entering edit mode
6 months ago
Hien • 0

Hi, could anyone help to fix the error with SPOTlight command?

I have one reference from single cell experiment (cortex_sc) and one data from h5 file with Visium Spatial transcriptome. I have the gene markers based on clusters from cortex_sc with the tutorial from SPOTlight. Therefore, I would like to see the gene-cell regulation via SPOTlight. The command as:

set.seed(687)

res1 <- SPOTlight(
    x = cortex_sc,
    y = data_sc,
    groups = as.character(cortex_sc$category),
    mgs = cluster_markers_all,
hvg = NULL,
    weight_id = "avg_log2FC",
    group_id = "cluster",
    gene_id = "gene"
)

It shows:

Scaling count matrix
Seeding initial matrices
Training NMF model
Error in cons != .consold : non-conformable arrays
In addition: Warning message:
In asMethod(object) :
  sparse->dense coercion: allocating vector of size 1.5 GiB
Timing stopped at: 0.12 0.04 0.17

Could anyone suggest solutions to fix it? Thank you!

transcriptome R spatial visium SPOTlight • 327 views
ADD COMMENT

Login before adding your answer.

Traffic: 2347 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6