Miniature ecosystems provide insights into general ecological principles