Laboratory analysis of the mucous material in the air passages, called sputum or phlegm, which is increased by infection, allergies, and asthma. The amount, color, and makeup of sputum is an aid to diagnosis of lung and breathing disorder, such as tuberculosis.