Patterns of mineral occurrence in metamorphic rocks