Wei-BioMath / NeuronChat

GNU General Public License v3.0
29 stars 3 forks source link

run_NeuronChat() Error in prob_mtx[sender, receiver] : subscript out of bounds #14

Open laijen000 opened 1 year ago

laijen000 commented 1 year ago

Hello, Thank you for this great neuronal signaling specific tool! I encountered an error during run_NeuronChat() for some objects only.

Error in prob_mtx[sender, receiver] : subscript out of bounds

Do you know what might be the problem? The neuronChat object is created from a matrix from seurat. If there are 0 cells for a certain group, could that cause the issue?

Thank you for your help.

Wei-BioMath commented 1 year ago

Hi @laijen000 , I think the cell group with 0 cells could cause the issue. Did you include a cell group with zero cells into the parameter sender (or receiver) in the run_NeuronChat()? If so, you may need to exclude such a cell group.