Functional analysis of a gene encoding threonine synthase from rice