primary component analysis script, and more data for morphology