Phase transition and morphogenesis in a model biological system.