Scripts used for SO analysis