# Detecting Co-Dependencies via RNAi data

**URL:** https://forum.depmap.org/t/detecting-co-dependencies-via-rnai-data/1924
**Category:** Q&A
**Created:** [October 12, 2022, 5:58am UTC](https://forum.depmap.org/t/detecting-co-dependencies-via-rnai-data/1924 "2022-10-12T05:58:30Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pmontgom](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.depmap.org/pmontgom/32/4_2.png) [@pmontgom](https://forum.depmap.org/u/pmontgom)
#### Post date: [October 25, 2022, 2:14pm UTC](https://forum.depmap.org/t/detecting-co-dependencies-via-rnai-data/1924/2 "2022-10-25T14:14:21Z")

</div>

The code we use for generating co-dependencies is linked to in this post:

> [@Down load of co-dependencies](https://forum.depmap.org/t/down-load-of-co-dependencies/175/9):
>
> Sure, I posted some code at [https://gist.github.com/pgm/ac2ac4c664ef81200ce49133cc4cee02](https://gist.github.com/pgm/ac2ac4c664ef81200ce49133cc4cee02) This code is modified from the portal’s codebase which will compute the top N correlates for given gene effect matrix downloaded from the portal. Running the following would compute the top 10 co-dependencies: python scripts/correlation\_from\_csv.py Achilles\_gene\_effect.csv Achilles\_gene\_effect.csv --limit 10 out.csv As run above it will correlate the same matrix against itself, but one could also use the…

We use pairwise complete observations when computing correlation, so if one sample has a NA for a given gene, we do not include that sample when comparing each gene to that one.

Also, we use pearson correlation instead of spearman correlation. You can read more about the reasoning for why in this blog post: [When not to use Spearman correlations - Cancer Data Science Blog](https://cancerdatascience.org/blog/posts/when-not-to-use-spearman-correlations/)

Thanks,  
Phil

---

_[View the full topic](https://forum.depmap.org/t/detecting-co-dependencies-via-rnai-data/1924)._
