script for analyzing single species data