Barr bodies are inactive X chromosomes that appear as darkly stained masses within the nuclei of female somatic cells. They were first observed in 1943 by Murray Barr in the nerve cells of female cats. A Barr body test examines buccal smear cells scraped from the inner cheek to identify Barr bodies, which appear as dark disks attached to the nuclear membrane in female cells but are absent in males. This test can determine the sex of an individual by observing the presence or absence of Barr bodies in their buccal epithelial cells under a microscope.