Scientists have unraveled the dynamics of a deadly disease that is wiping out amphibian populations across the globe.