Optimising the Analysis of Large-scale Biomedical Datasets in Precision Medicine Studies: a Topological Data Analysis Approach