Git Product home page Git Product logo

Comments (8)

sqjin avatar sqjin commented on August 26, 2024

@zh-Bian Can you show me several lines of codes before you run this function and how you run this function?

from cellchat.

zh-Bian avatar zh-Bian commented on August 26, 2024

I followed the process of 'Walkthrough - CellChat analysis of cell-cell communication in mouse skin wounds'. Here are my codes.

cellchat <- subsetData(cellchat) # subset the expression data of signaling genes for saving computation cost
future::plan("multiprocess", workers = 15) # do parallel
cellchat <- identifyOverExpressedGenes(cellchat)
cellchat <- identifyOverExpressedInteractions(cellchat)
cellchat <- projectData(cellchat, PPI.mouse) #human/mouse

library(CellChat)

cellchat <- computeCommunProb(cellchat)
cellchat <- computeCommunProbPathway(cellchat)
cellchat <- aggregateNet(cellchat)

When it run to 'cellchat <- computeCommunProb(cellchat) ', it failed with " 'there is no package called ‘CellChat’ ". Then I used the source code to test and I found the error occured in function computeExpr_complex(). @sqjin

data.complex = my.sapply(
X = 1:nrow(Rsubunits),
FUN = function(x) {
RsubunitsV <- unlist(Rsubunits[x,], use.names = F)
RsubunitsV <- RsubunitsV[RsubunitsV != ""]
return(geometricMean(data.use[RsubunitsV,]))
}
)

from cellchat.

sqjin avatar sqjin commented on August 26, 2024

@zh-Bian I have no idea on this error for now. I searched the similar issue online, and you might can try library.path <- .libPaths() library("cellchat", lib.loc = library.path). Please check here. If it does not work, can you share your cellchat object with me or your colleague?

from cellchat.

sqjin avatar sqjin commented on August 26, 2024

@zh-Bian library.path <- .libPaths(); library("CellChat", lib.loc = library.path)

from cellchat.

zh-Bian avatar zh-Bian commented on August 26, 2024

Hello, Thank you for your advice. I tried your method but it didn't work. And I noticed an interesting detail: when I first open my Rstudio, 'cellchat <- computeCommunProb(cellchat)' works fine, however the second is the same wrong. I think whether the function needs to access some resources online, so it sometimes works and sometimes not. @sqjin

from cellchat.

sqjin avatar sqjin commented on August 26, 2024

@zh-Bian I will take a look and fix this issue. For now, please just run this function only one time.

from cellchat.

zh-Bian avatar zh-Bian commented on August 26, 2024

OK. The way for me to use the package is interesting, and the package is useful. Thank you very much for answering my questions.

from cellchat.

sqjin avatar sqjin commented on August 26, 2024

@zh-Bian Hello, just let you know that I have no issue to rerun cellchat <- computeCommunProb(cellchat) in the same Rstudio.

from cellchat.

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.