The counts of CD3, CD4, CD8, and lymphocytes decreased, whereas those of neutrophils, platelets, and peripheral blood cells and their derived indices increased among TB patients with depression or anxiety in comparison with those without symptoms (p < 0.05). The gene discussed is CD8A; the disease is depressive symptom measurement.