# co-occurence and mutual exclusivity of two events

I would like to compute co-occurence and mutual exclusivity for a set of events divided in two groups (A and B). Each event E_{x,y} represents if a mutation occurs in the gene x from sample y These two groups of events are encoded in two matrix (A and B) with the same number of columns and rows ( columns = samples ; rows = genes). Cell values can either by 1 (mutation occurs) or 0 (no mutation occurs). A_{x,y} represent an event of type A for gene x from sample y. B_{k,l} represents an event of type B for gene k and l.

I would like to test co-occurence or mutual exclusivity for each pair of genes. Thus comparing each pair of A_{i,.} ; B_{i,.} where i is 1..number of genes.

Is a fisher exact test a good option ?

Thank you