The answer is ganglia. As indicated, they house many cell bodies of afferent and efferent neurons. Spinal ganglia are located in the dorsal (that contain cell bodies of afferent neurons) and ventral roots (that house cell body of efferent neurons) of a spinal nerve.