The code we use for generating co-dependencies is linked to in this post:
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.