Update shape_analysis.R