Searching for structured interactions in and between datasets