CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

Removal of "projectData" function in CellChat

Open AydinHerik opened this issue 1 year ago • 16 comments

Hi, projectData is not included in the current version of the CellChat package:

ls("package:CellChat") [1] "addMeta"
[2] "addReduction"
[3] "aggregateNet"
[4] "barPlot"
[5] "barplot_internal"
[6] "buildSNN"
[7] "CellChat_theme_opts"
[8] "CellChatDB.human"
[9] "CellChatDB.mouse"
[10] "CellChatDB.zebrafish"
[11] "checkGeneSymbol"
[12] "colorRamp3"
[13] "compareInteractions"
[14] "computeAveExpr"
[15] "computeCellDistance"
[16] "computeCommunProb"
[17] "computeCommunProbPathway"
[18] "computeEigengap"
[19] "computeEnrichmentScore"
[20] "computeExpr_agonist"
[21] "computeExpr_antagonist"
[22] "computeExpr_complex"
[23] "computeExpr_coreceptor"
[24] "computeExpr_LR"
[25] "computeExprGroup_agonist"
[26] "computeExprGroup_antagonist"
[27] "computeLaplacian"
[28] "computeNetD_structure"
[29] "computeNetSimilarity"
[30] "computeNetSimilarityPairwise"
[31] "computeRegionDistance"
[32] "createCellChat"
[33] "dotPlot"
[34] "extractEnrichedLR"
[35] "extractGene"
[36] "extractGeneSubset"
[37] "extractGeneSubsetFromPair"
[38] "filterCommunication"
[39] "findEnrichedSignaling"
[40] "geometricMean"
[41] "getMaxWeight"
[42] "ggPalette"
[43] "identifyCommunicationPatterns"
[44] "identifyEnrichedInteractions"
[45] "identifyOverExpressedGenes"
[46] "identifyOverExpressedInteractions"
[47] "identifyOverExpressedLigandReceptor"
[48] "liftCellChat"
[49] "mergeCellChat"
[50] "mergeInteractions"
[51] "netAnalysis_computeCentrality"
[52] "netAnalysis_contribution"
[53] "netAnalysis_diff_signalingRole_scatter" [54] "netAnalysis_dot"
[55] "netAnalysis_river"
[56] "netAnalysis_signalingChanges_scatter"
[57] "netAnalysis_signalingRole_heatmap"
[58] "netAnalysis_signalingRole_network"
[59] "netAnalysis_signalingRole_scatter"
[60] "netClustering"
[61] "netEmbedding"
[62] "netMappingDEG"
[63] "netVisual"
[64] "netVisual_aggregate"
[65] "netVisual_barplot"
[66] "netVisual_bubble"
[67] "netVisual_chord_cell"
[68] "netVisual_chord_cell_internal"
[69] "netVisual_chord_gene"
[70] "netVisual_circle"
[71] "netVisual_diffInteraction"
[72] "netVisual_embedding"
[73] "netVisual_embeddingPairwise"
[74] "netVisual_embeddingPairwiseZoomIn"
[75] "netVisual_embeddingZoomIn"
[76] "netVisual_heatmap"
[77] "netVisual_hierarchy1"
[78] "netVisual_hierarchy2"
[79] "netVisual_individual"
[80] "netVisual_spatial"
[81] "normalizeData"
[82] "pieChart"
[83] "plotGeneExpression"
[84] "PPI.human"
[85] "PPI.mouse"
[86] "rankNet"
[87] "rankNetPairwise"
[88] "rankSimilarity"
[89] "runCellChatApp"
[90] "runPCA"
[91] "runUMAP"
[92] "scaleData"
[93] "scaleMat"
[94] "scPalette"
[95] "searchPair"
[96] "selectK"
[97] "setIdent"
[98] "showDatabaseCategory"
[99] "sketchData"
[100] "smoothData"
[101] "spatialDimPlot"
[102] "spatialFeaturePlot"
[103] "StackedVlnPlot"
[104] "subsetCellChat"
[105] "subsetCommunication"
[106] "subsetData"
[107] "subsetDB"
[108] "triMean"
[109] "updateCCC_score"
[110] "updateCellChat"
[111] "updateCellChatDB"
[112] "updateClusterLabels"

AydinHerik avatar Jul 07 '24 21:07 AydinHerik

Hi, i'm not from cellchat team but it seems to have been renamed to smoothData according to #169 . The only problem is that it's still named projectData in tutorials.

cleiti avatar Jul 15 '24 07:07 cleiti

hi, I use smoothData function,but encounter this error cellchat <- smoothData(cellchat, PPI.human) Error in smoothData(cellchat, PPI.human) : is(adj, "matrix") || is(adj, "sparseMatrix") is not TRUE

yuanG2000 avatar Jul 18 '24 05:07 yuanG2000

Hi, i've had the same problem as well. The syntax is cellchat <- smoothData(cellchat, adj = PPI.human) , specifying the adj parameter. Once again, better documentation is needed.

cleiti avatar Jul 18 '24 09:07 cleiti

Hi, i've had the same problem as well. The syntax is cellchat <- smoothData(cellchat, adj = PPI.human) , specifying the adj parameter. Once again, better documentation is needed.

thanks a lot,I solve the problem

yuanG2000 avatar Jul 19 '24 02:07 yuanG2000

Thank you all for the clarification @Cleiti @yuanG2000 ! This helped solve my issue.

AydinHerik avatar Jul 19 '24 18:07 AydinHerik

thank you all of the above answers!!!

HBYCZWY avatar Sep 03 '24 02:09 HBYCZWY

Hi, i've had the same problem as well. The syntax is cellchat <- smoothData(cellchat, adj = PPI.human) , specifying the adj parameter. Once again, better documentation is needed.

Thank you!!

amulya-saini avatar Sep 04 '24 19:09 amulya-saini

adj = PPI.human

Thanks a lot

hemiao8912 avatar Sep 14 '24 17:09 hemiao8912

Thanks a lot!!New documentation is needed!

Harmony714 avatar Sep 20 '24 02:09 Harmony714

Can anyone from the team update the documentation please?

AlbertoFabbri93 avatar Dec 18 '24 00:12 AlbertoFabbri93

cellchat <- smoothData(cellchat, PPI.human) Error in smoothData(cellchat, PPI.human) : is(adj, "matrix") || is(adj, "sparseMatrix") is not TRUE

this problem is still not solved.

AnonymousGym avatar Jan 15 '25 22:01 AnonymousGym

cellchat <- smoothData(cellchat, PPI.human) Error in smoothData(cellchat, PPI.human) : is(adj, "matrix") || is(adj, "sparseMatrix") is not TRUE

this problem is still not solved.

You need to specify the adj parameter. cellchat <- smoothData(cellchat, adj = PPI.human)

XLulu0519 avatar Jan 18 '25 08:01 XLulu0519

cellchat <- smoothData(cellchat, PPI.human) Error in smoothData(cellchat, PPI.human) : is(adj, "matrix") || is(adj, "sparseMatrix") is not TRUE this problem is still not solved.

You need to specify the adj parameter. cellchat <- smoothData(cellchat, adj = PPI.human) I just updated to the latest version of CellChat V2 today ,;I found the same problem with PPI. My solution is as follows:data(PPI.human) library(Matrix) PPI.human <- as(PPI.human, "sparseMatrix") cellchat <- smoothData(cellchat, adj = PPI.human)

peterCCChen avatar Feb 18 '25 13:02 peterCCChen

It looks like projectData is working now and smoothData isn't. Can anyone confirm that? I tried using adj with smoothData. It says that smoothData is not a function in CellChat

Hanis-gatech avatar Sep 15 '25 17:09 Hanis-gatech

confirming that the following works! smoothData doesn't work anymore cellchat <- projectData(cellchat, PPI.human)

Hanis-gatech avatar Sep 15 '25 18:09 Hanis-gatech

Thanks a lot!!

ciiri avatar Nov 09 '25 13:11 ciiri