Filtering for trait background equal matrix