utility function for creating KM plots for metagenes