# Using seurat weigted nearest neighbord graph to compute a Force-directed graph

**URL:** <https://discourse.scverse.org/t/using-seurat-weigted-nearest-neighbord-graph-to-compute-a-force-directed-graph/479>\
**Category:** General\
**Created:** [May 23, 2022, 9:24am UTC](https://discourse.scverse.org/t/using-seurat-weigted-nearest-neighbord-graph-to-compute-a-force-directed-graph/479 "2022-05-23T09:24:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamidsta](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/hamidsta/32/246_2.png) [@hamidsta](https://discourse.scverse.org/u/hamidsta)\
**Post date:** [May 23, 2022, 9:24am UTC](https://discourse.scverse.org/t/using-seurat-weigted-nearest-neighbord-graph-to-compute-a-force-directed-graph/479/1 "2022-05-23T09:24:48Z")

</div>

Hello , i’m wondering if i can use the seurat weigted nearest neighbord graph based on two modalities RNA and ATAC to create Force-directed graph . That way the graph will likely represent both omics instead of one. Did it make sens biologically ?  
thank you !

---

<div class="post-metadata">

**Author:** ![ivirshup](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/ivirshup/32/160_2.png) [@ivirshup](https://discourse.scverse.org/u/ivirshup)\
**Post date:** [May 23, 2022, 9:30am UTC](https://discourse.scverse.org/t/using-seurat-weigted-nearest-neighbord-graph-to-compute-a-force-directed-graph/479/2 "2022-05-23T09:30:23Z")

</div>

Sure, you can do this with [`muon.pp.neighbors`](https://muon.readthedocs.io/en/latest/api/generated/muon.pp.neighbors.html#muon.pp.neighbors) function, which computes a WNN graph on top of the modalities in a `MuData` object.

Here’s a tutorial on using it: [CITE-seq data integration with weighted nearest neighbours — muon-tutorials documentation](https://muon-tutorials.readthedocs.io/en/latest/cite-seq/2-CITE-seq-PBMC-5k-Weighted-Neighbours.html?#WNN-integration)

---

<div class="post-metadata">

**Author:** ![hamidsta](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/hamidsta/32/246_2.png) [@hamidsta](https://discourse.scverse.org/u/hamidsta)\
**Post date:** [May 23, 2022, 1:24pm UTC](https://discourse.scverse.org/t/using-seurat-weigted-nearest-neighbord-graph-to-compute-a-force-directed-graph/479/3 "2022-05-23T13:24:18Z")

</div>

thank you ! it seems to be just what i needed
