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

Seurat V5 and cosg #5

Open
liyanguo520 opened this issue Dec 17, 2023 · 1 comment
Open

Seurat V5 and cosg #5

liyanguo520 opened this issue Dec 17, 2023 · 1 comment

Comments

@liyanguo520
Copy link

Is there any way to solve the problem?

marker_cosg <- cosg(scRNA_object, groups='all',assay='SCT',

  •                 slot='data',mu=1,n_genes_user=100,
    
  •                 remove_lowly_expressed=TRUE,
    
  •                 expressed_pct=0.1)
    

Error in ..subscript.2ary(x, l[[1L]], l[[2L]], drop = drop[1L]) :
NA subscripts in x[i,j] not supported for 'x' inheriting from sparseMatrix
addition: Warning message:
x or y has vectors with all zero; consider setting use_nan = TRUE to set these values to NaN or use_nan = FALSE to suppress this warning

@genecell
Copy link
Owner

Hi,

The above error might be caused by using the SCT assay, which is not sparse after the scTransform normalization. We recommend use the RNA assay with the slot data as the input.
Hope it works!

Best,
Min

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