Correction to: Nature Immunology https://doi.org/10.1038/s41590-021-01121-x, published online 20 January 2022.

In the version of the article originally published, the link provided in the Code availability section was invalid and has now been replaced in the HTML and PDF versions of the article with the following: https://github.com/angelolab/publications/tree/master/2022-McCaffrey_etal_HumanTB.