Analysis of a tuberculosis model with a case study in Uganda