The study of minerals in ore deposits, including their association with metals and minerals of commercial value.