In a few years, running scientific lab experiments could be as simple as shopping online.

A group of Silicon Valley startups situated within a few miles of each other are racing to sharply lower the cost of preclinical research by essentially putting the lab in the cloud, a kind of Amazon Web Services for science geeks.

Many of these companies'...