PhD analysis scripts