# WNN neighborhood graph construction failing

**URL:** <https://discourse.scverse.org/t/wnn-neighborhood-graph-construction-failing/1930>\
**Category:** muon\
**Tags:** scatac-seq, integration, peakvi\
**Created:** [December 1, 2023, 4:23pm UTC](https://discourse.scverse.org/t/wnn-neighborhood-graph-construction-failing/1930 "2023-12-01T16:23:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abbass2](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/abbass2/32/884_2.png) [@abbass2](https://discourse.scverse.org/u/abbass2)\
**Post date:** [December 1, 2023, 4:23pm UTC](https://discourse.scverse.org/t/wnn-neighborhood-graph-construction-failing/1930/1 "2023-12-01T16:23:44Z")

</div>

Hi everyone,

Currently facing an issue where I am trying to run WNN in muon to integrate RNA and ATAC. The problem is that the neighborhood graph calculation is failing because there are cells in the ATAC graph that appear to have no neighbors. After looking at the source code for the WNN implementation in Muon, it looks like the algorithm expects every cell to have a neighbor. This makes sense considering how the neighborhood graph is calculated, so I can’t figure out why some cells wouldn’t have any neighbors. This problem does not appear to occur with RNA data. Appreciate any insight, thanks!

---

<div class="post-metadata">

**Author:** ![gtca](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/gtca/32/1199_2.png) [@gtca](https://discourse.scverse.org/u/gtca)\
**Post date:** [July 23, 2024, 11:46pm UTC](https://discourse.scverse.org/t/wnn-neighborhood-graph-construction-failing/1930/2 "2024-07-23T23:46:41Z")

</div>

Hey @abbass2,

I don’t know if it’s still relevant but we’ll be happy to debug it if we could have a sample of the data to reproduce that. Also, was the neighbourhood graph for the ATAC modality re-generated after cell filtering?
