An acidfast bacteria (AFBculture is done to find out if you have tuberculosis (TB) or another mycobacterial infection. Besides TB, the other main mycobacterial infections are leprosy and a TB-like disease that affects people with HIV/AIDS.