Adapt basic correlation inference to several possible correlation metrics option such as metrics that require strings as input parameters