Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in UseMethod("family"): no applicable method for 'family' applied to an object of class "NULL" #64

Open
MohammadIzadi opened this issue Oct 19, 2024 · 1 comment

Comments

@MohammadIzadi
Copy link

Hi,
Thanks for developing scDesign3. I have SingleCellExperiment object. I want to simiulate it with scDesign3. but i get this error.

example_simu <- scdesign3(

  • sce = data,
    
  • assay_use = "counts",
    
  • celltype = "celltype",
    
  • pseudotime = NULL,
    
  • spatial = NULL,
    
  • other_covariates = NULL,
    
  • mu_formula = "celltype",
    
  • sigma_formula = "celltype",
    
  • family_use = "gaussian",
    
  • n_cores = 1,
    
  • corr_formula = "celltype",
    
  • )

Input Data Construction Start
Input Data Construction End
Start Marginal Fitting
Marginal Fitting End
Start Copula Fitting
Convert Residuals to Multivariate Gaussian
Error: BiocParallel errors
1 remote errors, element index: 1
5 unevaluated and other errors
first remote error:
Error in UseMethod("family"): no applicable method for 'family' applied to an object of class "NULL".

Can you help me to fix it please?

@SONGDONGYUAN1994
Copy link
Owner

Hi,

Could you check the format of your input data? I saw you used assay_use = 'counts' (count data rather than log transformed data), which usually means family_use should be nb or poisson rather than gaussian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants