saeyslab / multinichenetr

MultiNicheNet: a flexible framework for differential cell-cell communication analysis from multi-sample multi-condition single-cell transcriptomics data
GNU General Public License v3.0
112 stars 14 forks source link

Error in UseMethod("inner_join") when running make_lite_output #21

Closed catsargent closed 1 year ago

catsargent commented 1 year ago

Hi,

when running my analysis using the step-wise approach, I encounter an error when running multinichenet_output = make_lite_output(multinichenet_output)

Error in UseMethod("inner_join") : no applicable method for 'inner_join' applied to an object of class "NULL"

I had also had an error in the previous line of code where the function lr_target_prior_cor_inference is run. However, I was advised that this was due to having <5 samples in one of my groups (which is correct). Would this have anything to do with the above error? I therefore commented out the line where lr_target_prior_cor is added to multinichenet_output.

I know that the error does not impact the analysis but wanted to flag the issue. Thanks, Catherine

browaeysrobin commented 1 year ago

This should be fixed now: make_lite_output will now assess whether lr_target_prior_cor is empty (when this could not be calculated because too few samples).

Same issue as #24