Internal. Converts the 'x/y' strings returned by clusterProfiler into a numeric ratio.
.parse.ratio(x, position = "ratio")
Arguments
- x
Vector of strings in the form 'x/y'.
- position
String indicating which value to return: "ratio" (x/y), "numerator" (x) or "denominator" (y). Default: "ratio".