Add log preocess before clustering FOR <heatmapS.sh>