it is similar to the concept of heritability. If you are interested, you can check the website.
https://en.wikipedia.org/wiki/Heritability
Your above table is close to a contingency table and also consider look at the case-control design using a Chisquare statistics to test the association. It is not include the interaction between the gene and environment, however, you might design a study to look at the interaction terms.