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

no slot of name "counts" for this object of class "Assay5" #22

Open
andreyurch opened this issue Jan 25, 2024 · 4 comments
Open

no slot of name "counts" for this object of class "Assay5" #22

andreyurch opened this issue Jan 25, 2024 · 4 comments

Comments

@andreyurch
Copy link

res<-scgsva(pbmc,df,method="ssgsea",useTerm=F)
Error in scgsva(pbmc, df, method = "ssgsea", useTerm = F) :
no slot of name "counts" for this object of class "Assay5"

But if I check:

pbmc
An object of class Seurat
26577 features across 2400 samples within 1 assay
Active assay: RNA (26577 features, 2000 variable features)
3 layers present: counts, data, scale.data
2 dimensional reductions calculated: pca, umap

@guokai8
Copy link
Owner

guokai8 commented Jan 26, 2024

Hi @andreyurch ,
I updated the codes, and it should be fine now. Please install the newest version.
K

@zarnazhadi
Copy link

zarnazhadi commented Mar 6, 2024

Hi,

I'm still having the same error "no slot of name "counts" for this object of class "Assay5"" when using the genes() function. My Seurat object consists of multiple objects joined together using JoinLayers(). When using a single object, genes() seems to work. Is there any way to execute findPathways on a joined/integrated Seurat object?

sample_norm <- readRDS("sample_norm.rds")
sample_norm <- JoinLayers(sample_norm)

res <- scgsva(sample_norm, hsko, method = "ssgsea")

heatmap <- scGSVA::Heatmap(res,group_by="condition", cluster_cols = F, show_colnames = F)

pathways <- findPathway(res, group = "condition")

sig_pathways <- sigPathway(res, group = "condition")

scGSVA::genes(res, features = "Natural.killer.cell.mediated.cytotoxicity", with.expr = F)

Thanks,
Zarnaz

@guokai8
Copy link
Owner

guokai8 commented Apr 22, 2024

Hi @zarnazhadi,
Will check this these two days
K

@guokai8
Copy link
Owner

guokai8 commented Apr 22, 2024

Hi @zarnazhadi ,
Please use the most update version(0.0.21) which fixed the issue.
K

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

3 participants