Some useful scripts for data analysis