Sure, I posted some code at 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 same script to correlate expression against gene effects, or any other matrix which is in the format that we provide in the DepMap downloads.
thanks,
Phil