The applications of data science to petrology and geochemistry