Connections between species diversity and genetic diversity