A 38-year-old woman is evaluated for a 2-week history of fever, right-sided chest pain, cough, and occasional night sweats. Her chest discomfort is sharp and stabbing, and the cough is not productive. Medical history is significant for tuberculosis treated with 6 months of antimicrobial therapy 10 years ago when she lived in Africa; she immigrated to the United States 6 years ago. Medical history is otherwise unremarkable and she takes no medications.

On physical examination, temperature is 36.5 °C (97.7 °F), blood pressure is 132/83 mm Hg, pulse rate is 80/min, and respiration rate is 20/min; BMI is 30. Dullness to percussion and decreased breath sounds are noted over the lower third of the right hemithorax. A pleural rub is noted over the midlateral right lung field.

Chest radiograph shows a moderate right-sided pleural effusion with no infiltrate.

Thoracentesis is performed, and 500 mL of straw-colored fluid is removed.

Laboratory studies:

Serum lactate dehydrogenase

90 U/L

Serum total protein

7.2 g/dL (72 g/L)

Pleural fluid lactate dehydrogenase

600 U/L

Pleural fluid pH

7.30

Pleural fluid total protein

5.6 g/dL (56 g/L)

Pleural fluid total nucleated cell count

5700/µL (5.7 × 109/L), with 15% neutrophils, 71% lymphocytes, 12% monocytes, and 2% eosinophils

Which of the following tests is most likely to lead to a diagnosis?