SONGDONGYUAN1994 / scDesign3

scDesign3 generates realistic in silico data for multimodal single-cell and spatial omics
https://songdongyuan1994.github.io/scDesign3/docs/index.html
MIT License
87 stars 24 forks source link

New Count Generation running for too long #66

Open rashikajakhmola opened 3 weeks ago

rashikajakhmola commented 3 weeks ago

Hey Team! Thanks for the package.

I am using it to simulate single cell data. Everything works fast enough (within a minute) before I reach the step to generate new counts.

newcount_null_donor_p1 <- simu_new( sce = sce, mean_mat = para_null_donor_p1$mean_mat, sigma_mat = para_null_donor_p1$sigma_mat, zero_mat = para_null_donor_p1$zero_mat, quantile_mat = NULL, copula_list = donorid_copula$copula_list, n_cores = 2, family_use = "nb", input_data = donorid_data$dat, new_covariate = donorid_data$newCovariate, important_feature = donorid_copula$important_feature, filtered_gene = donorid_data$filtered_gene )

This has been running for > 24 hours now. Should it take this long for 100 genes?

SONGDONGYUAN1994 commented 3 weeks ago

Dear Rashika,

That sounds extremely weird. Usually 100 genes only take a few mins. Did you mean that you have finished all previous steps and got stuck at simu_new? If yes, you may check if mean_mat or sigma_mat have any abnormal values; e.g., a mean expression value is over 10,000 and it looks like a outlier.

rashikajakhmola commented 1 week ago

Thanks, Dongyuan! I did have outliers. Worked pretty quickly post filtering them. Appreciate your help :)