Pattern recognition for predictive, preventive, and personalized medicine in cancer