Figure 1. Sample and analysis flowchartAll samples from TB patients and healthy controls were quality controlled and randomly assigned into a training and test set. Built classification models were tested in both the test set and the total dataset. External validation was performed on two independent blinded RT-PCR datasets, as well as on external microarray datasets. 