New analysis offers grounds for encouragement for key Scottish sector