Sputum stain for mycobacteria is a test to check for a type of bacteria that cause tuberculosis and other infections.Acid-fast bacillus (AFB) is a type of bacteria that causes tuberculosis and certain other infections. Tuberculosis, commonly known as TB, is a serious bacterial infection that mainly affects the lungs. It can also affect other parts of the body, including the brain, spine, and kidneys. TB is spread from person to person through coughing or sneezing.