Gravar e-mail: Microbial diversity and ecological complexity emerging from environmental variation and horizontal gene transfer in a simple mathematical model