A compositional analysis was a type of test that determined the chemical components of an object.
In 2370, Data suggested a full compositional analysis on the energy sheath surrounding an unknown ship. (TNG: "Gambit, Part I")
In 2374, B'Elanna Torres ran a compositional analysis of a genetic tag hidden on Chakotay's DNA base pairs. (VOY: "Scientific Method")