Spatial structure, chemotaxis and quorum sensing shape biomass accumulation in complex systems