Filtering for trait code equal MGMM