Cleaned-up somatic filtering script.