Galaxy Formation is currently thought to occur with the collapse of clouds, presumed to be under the influence of a high-density region of Dark Matter. Simulations, as well as galaxy morphology population statistics are used to test theories. Theories have been developed to form a galaxy (e.g., Spiral Galaxy) from a single collapse, or to build galaxies from smaller collapses, e.g., out of Globular Clusters.
A collapsing (Plasma) cloud must cool sufficiently to allow star-formation to begin, which requires sufficient transparency to allow Electromagnetic Radiation to carry away energy, suggesting a maximum size of galaxy that can form, perhaps 1012 MSun. If the Temperature is sufficiently low that Hydrogen becomes neutral, the cloud becomes opaque, perhaps at 108 MSun, suggesting that prior to Galaxy Mergers, galaxies form in this range.
Epoch of Galaxy Formation