Crystal structure is now found by analysis of the diffraction patterns of a sample targeted by a beam of some type . Crystallographic methods now depend on the analysis of the diffraction patterns of a sample targeted by a beam of some type .