Ionomic and transcriptomic analysis provides new insight into the distribution and transport of cadmium and arsenic in rice.