Skip to content

Error in FindClustersRecall when using both copula null methods #2

@Carolina-Toste

Description

@Carolina-Toste

Hi. Thank you so much for creating this method. I've been trying to implement it with my data and while running the following code:


recall_objs <- purrr::imap(seurat_objs, function(seurat, chip_name) {
  
  seurat <- FindClustersRecall(
    seurat,
    assay = "qumi_poilog_2.4",
    null_method = "ZIP-copula",
    resolution_start = 1.65,
    reduction_percentage = 0.05,
    dims = 1:30,
    verbose = FALSE
  )

  return(seurat)
  
}) 

I encountered the following error:

<error/purrr_error_indexed>
Error in `map2()`:
ℹ In index: 1.
ℹ With name: H2.
Caused by error in `$<-.data.frame`:
! replacement has 1 row, data has 1500

I tested both NB-copula and ZIP-copula which failed with the same error, but the other null methods worked.

Do you have any suggestions on what might be causing this or how to resolve it? I think there might be a bug in the creation of the sce object, but I'm not sure.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions