Code Monkey home page Code Monkey logo

Comments (4)

guokai8 avatar guokai8 commented on August 30, 2024

Hi @zznx,
I think you may have an extremely sparse matrix which means you had too much zeros in you data. You can do some trimming which may help you. Or you can run your analysis on a lager machine which may have enough memory. Hopes this will help
Kai

from scgsva.

zznx avatar zznx commented on August 30, 2024

When I run the code,it finally works!

Seurat.object=subset(x = Seurat.object, features = VariableFeatures(object = Seurat.object)
library(scGSVA)
hsko<-buildAnnot(species="human",keytype="SYMBOL",anntype="KEGG")
res<-scgsva(pbmcs,hsko)

I think there might be something wrong, and when I run the code I get an error

library(scGSVA)
Seurat.object=subset(x = Seurat.object, features = VariableFeatures(object = Seurat.object)
Error in `[[<-`(`*tmp*`, dimreduc, value = tryCatch(expr = subset.DimReduc(x = x[[dimreduc]],  : 
  [[<- defined for objects of type "S4" only for subclasses of environment

from scgsva.

guokai8 avatar guokai8 commented on August 30, 2024

Hi @zznx,
I guess you may need to load the Seurat package before you do subsetting.
Kai

from scgsva.

zznx avatar zznx commented on August 30, 2024

Hi @guokai8
I have loaded the Seurat package but I still have the above problem.
Jx

from scgsva.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.