BlishLab / scriabin

Analysis of cell-cell communication at single-cell resolution
Other
92 stars 12 forks source link

Issue with multi-condition analysis in interaction-programs.Rmd tutorial #24

Open Naomikmf opened 3 months ago

Naomikmf commented 3 months ago

Hi,

I encountered an issue while following the tutorial for interaction-programs.Rmd. Specifically, I encountered an error in the multi-condition part related to the comparative analysis using the stimulated/unstimulated PBMC dataset.

The error occurred with the following code snippet:

ifnb_ip <- FindAllInteractionPrograms(ifnb, group.by = "stim",   cell_types = "seurat_annotations", assay = "alra")

The error message received is as follows:

Error in `dplyr::sample_n()`:
! Can't compute indices.
ℹ In group 1: `var = CD14 Mono`.
Caused by error in `sample.int()`:
! invalid 'size' argument
Run `rlang::last_trace()` to see where the error occurred.
Warning message:
In size <= n || replace :
  'length(x) = 2215 > 1' in coercion to 'logical(1)'

Although an issue was opened and closed previously, a solution has not yet been found. Any assistance in resolving this error would be greatly appreciated. Thank you!

sdawood1 commented 4 weeks ago

I ran into the same issue