getInteraction function

Deprecated function to get interaction matrix