# 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:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wenyi](https://avatars.discourse-cdn.com/v4/letter/w/3bc359/32.png) [@Wenyi](https://forum.depmap.org/u/Wenyi)\
**Post date:** [October 12, 2022, 5:58am UTC](https://forum.depmap.org/t/detecting-co-dependencies-via-rnai-data/1924/1 "2022-10-12T05:58:30Z")

</div>

Hi DepMap team,

I just downloaded “RNAi\_(Achilles+DRIVE+Marcotte,\_DEMETER2).csv” from the Depmap portal via the “custom download” function. However, I found that it included many NA values. I would like to know what should I do with these NA in order to get similar results to the online analysis results in the Depmap portal. Should I manually remove all cell lines with NA or all genes with NA? After that, I wonder if the Pearson coefficient is suitable to get Co-Dependencies. Or, should I use Spearman coefficients to detect co-dependencies since gene expression does not seem to fit a normal distribution?  
I would be very grateful for any advice you could give me.

Best,  
Wenyi Jin

---

<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
