Protein structures are usually done from 2-dimensional crystals (sheets or helices), polyhedrons such as viral capsids, or dispersed proteins. Electrons can be used in these situations, whereas X-rays cannot, because electrons interact more strongly with atoms than X-rays do.