Closed mrendleman closed 1 month ago
To clarify, hdWGCNA does not support sketched objects, since it was implemented originally for Seurat 4. I currently do not have plans to add support for sketched objects, so if you wish to proceed with your sketched object you are at risk of running into these kind of issues which you will have to figure out how to fix.
Describe the bug I am following the vignette to run hdWGCNA on a sketch assay of my data, and received the following error with the ModuleConnectivity function:
Steps to reproduce The issue lies in how
cells.use
is set; it assumes that any cells in themeta.data
that match thegroup_name
are a part of the current assay:Because I'm using a sketch (subset) assay, my
group.by
variable has cells that match thegroup_name
but aren't included in the assay. So when it tries to pull the expression matrix for the assay using those cells this leads to an error:I fixed this for my case by modifying the
if
block that setscells.use
to ensure that the cells selected are present in the current assay:This isn't a perfect fix; I've only tried it with Seurat5, and the else block likely needs a similar change.
R session info This is using hdWGCNA_0.3.03.