Scientists have calculated that millions of tonnes of hydrocarbons are produced annually by photosynthetic bacteria in the world’s oceans.