Portable sequencing of Mycobacterium tuberculosis for clinical and epidemiological applications

Abstract With >1 million associated deaths in 2020, human tuberculosis (TB) caused by the bacteria Mycobacterium tuberculosis remains one of the deadliest infectious diseases. A plethora of genomic tools and bioinformatics pipelines have become available in recent years to assist the whole genome sequencing of M. tuberculosis. The Oxford Nanopore Technologies (ONT) portable sequencer is a promising platform for cost-effective application in clinics, including personalizing treatment through detection of drug resistance-associated mutations, or in the field, to assist epidemiological and transmission investigations. In this study, we performed a comparison of 10 clinical isolates with DNA sequenced on both long-read ONT and (gold standard) short-read Illumina HiSeq platforms. Our analysis demonstrates the robustness of the ONT variant calling for single nucleotide polymorphisms, despite the high error rate. Moreover, because of improved coverage in repetitive regions where short sequencing reads fail to align accurately, ONT data analysis can incorporate additional regions of the genome usually excluded (e.g. pe/ppe genes). The resulting extra resolution can improve the characterization of transmission clusters and dynamics based on inferring closely related isolates. High concordance in variants in loci associated with drug resistance supports its use for the rapid detection of resistant mutations. Overall, ONT sequencing is a promising tool for TB genomic investigations, particularly to inform clinical and surveillance decision-making to reduce the disease burden.


Introduction
Mycobacterium tuberculosis remains one of the deadliest single infectious agents, leading to 10 million human tuberculosis (TB) cases and 1.5 million associated deaths in 2020 [1]. The M. tuberculosis complex is phylogeographically distributed in defined lineages that can determine the emergence of drug resistance, transmissibility, pathogenicity and host response, disease site and severity [2][3][4]. Drug-resistant M. tuberculosis is one of the major threats to effectively controlling the disease, especially resistance to first-line rifampicin and isoniazid; in combination, called multi-drug resistance (MDR-TB). In fact, MDR-TB accounted for around 150 000 cases in 2020 [1]. The acquisition of drug resistance in M. tuberculosis has been mainly attributed to spontaneous mutations, such as single nucleotide polymorphisms (SNPs) and small insertions and deletions (indels) in genes coding for drug targets, drug-converting enzymes or loci involved in the transport of small molecules such as eff lux pumps [5,6]. Phenotypic susceptibility testing is the traditional method to determine drug resistance. In combination with genome-wide association and convergent evolution studies, genetic variants conferring drug resistance have been validated enabling the use of genotypic methods to establish resistance through sequencing or nucleic acid amplification approaches [5]. Transmission events can be inferred through the identification of M. tuberculosis isolates with (near) identical genomes (genomic variants), sourced from different individuals or patients [7]. Characterizing the phylogeographic distribution of M. tuberculosis strains across regions can reveal outbreaks of more virulent strain types, including Beijing strains [7].
Genome sequencing of M. tuberculosis has gained traction for both clinical and epidemiological investigations. These applications have provided insights into mutations underlying drug resistance, circulating strain types and virulence and transmission dynamics, thereby with the potential to inform clinical and surveillance activities. New genomic tools allow for whole-genome sequencing (WGS) with increasing opportunities to use it directly from the sputum [8]. Together with new analysis methods, WGS data can be used to profile the bacteria for drug resistance [5,9,10], characterize ancient and modern lineages and different strain types [11], and establish who may have transmitted to whom; thus allow targeted resources to hotspot areas to reduce transmission [12]. These genomic insights are facilitated through advances in health informatics [13].
WGS opportunities are set to revolutionize the diagnosis and clinical management of TB patients, with routine pathogen genetic characterization applied in the UK healthcare system. Building on this success and the recent COVID-19 experience, an increasing number of countries worldwide is seeking to adopt genomics as part of clinical care [14]. However, to be effective for global disease control and maximize impact, next-generation sequencing (NGS) platforms need to be applied in high TB burden settings, which may be resource-poor. To achieve the economies of scale and cost reductions in these settings, it is possible to target a high number of genes (e.g. drug-resistance loci) across many samples using an amplicon-based approach on NGS platforms, or focus on the multiplexing of whole genomes if the transmission is important.
Compared to other pathogen genomes, the M. tuberculosis genome (size: 4.4Mb) is relatively clonal with no horizontal gene transfer, but was historically challenging to sequence due to its high guanine-cytosine (GC) content and repetitive nature [15]. The Illumina sequencing platform with its paired short reads and low error rates has been employed successfully to analyse almost the entire genome, including drug-resistance loci [10], with highly variable and GC-rich pe/ppe genes often excluded due to the difficulties in accurately mapping these repetitive regions [16][17][18]. Recently, sequencing platforms with long reads (>1 kb) have been applied for the construction of reference genomes and analysis of methylated base modifications [19], but are too costly for implementation as a high throughput tool. Our previous work compared the application of the Illumina MiSeq, Ion Torrent Personal Genome Machine (PGM)™ [15] and Oxford Nanopore Technologies (ONT) platforms [13]. We observed higher sequencing error rates on the ONT platforms, but sufficient coverage to call drug-resistant variants [13]. The ONT sequencing platform is portable enabling the characterization of M. tuberculosis in remote and field settings and has the potential to perform multiplexing of samples, leading to cost reductions. Future cost-effectiveness is likely by informed decision-making in clinics through personalization of treatments in drugresistance settings, as well as by determining geographical regions for the optimal targeting of TB surveillance and control activities. To assess the viability of the ONT platform for these applications, we apply the technology to DNA extracted from M. tuberculosis isolates. In a paired analysis, we compare the resulting WGS sequence data to those generated on an Illumina platform, finding high concordance in variant calls between methods and the potential to include genomic regions traditionally excluded in our analysis, such as pe/ppe genes.
Through the mapping of the ONT data against a representative PacBio assembly for each lineage, high normalized coverage was achieved genome-wide. There were several peaks with normalized coverage below 0.5 belonging to insertion sequences (e.g. IS6110) or deleted genes in specific strains (e.g. RD152 region in sample S1) ( Figure S1, see Supplementary Data available online at http://bib.oxfordjournals.org/). Overall, these results suggest that ONT technology has performed well, including in repetitive regions. The genes with the lowest coverage in Illumina data were mostly pe/ppe genes, whose mapping accuracy with short reads is known to be low [17,18], due to their high GC content and repetitive regions. For the 85 pe/ppe genes thought to be non-conserved harbouring structural variants that disrupt their protein sequences [16], there was lower sequencing coverage in Illumina compared to ONT data (t-test adjusted P<0.001, Figure 1C).
Although aligning to a lineage-specific reference improved the coverage for Illumina ( Figure S1, see Supplementary Data available online at http://bib.oxford journals.org/), extreme GC content disproportionately reduced coverage in short read compared to longread data ( Figure 1D). Genes with the lowest average values of normalized coverage in Illumina data had higher coverage in ONT data (t-test adjusted P < 0.001, Figure S2, see Supplementary Data available online at http://bib.oxfordjournals.org/). Two genes had greater coverage in Illumina compared to ONT data in L2 and L3 sample pairs, coinciding with an insertion sequence (Rv0797) and a conserved hypothetical protein (Rv1765c). The latter belongs to RD152, which was deleted in all L2 isolates and one L3. However, due to the high similarity (97%) between Rv1765c and Rv2015c sequences, the Illumina platform seems to not capture the deletion.

Variant calling
Variants were called using Freebayes software retaining all sites where at least one sample had >50% alternate Table 1. Summary of 10 sample pairs (S1-S10) sequenced using Illumina and Oxford Nanopore Technology platforms reads, leading to 9052 unique positions. For the analysis, Illumina variants with an allele depth (AD) fraction of at least 0.7 were considered true variants. Due to the high error rate of ONT sequencing, almost all positions at which a true variant exists contain a mixture of alternate and reference alleles. To find the optimum cut-off, which balances the sensitivity (true positive rate) and specificity (true negative rate), alternate-allele proportions for each site in the ONT replicates were compared to their Illumina counterparts. An optimum alternate-allele proportion value of 0.7 was chosen, keeping the true positive rate > 97% and true negative rate > 91%, and the false-positive rate < 1% ( Figure S3, see Supplementary Data available online at http://bib.oxfordjournals.org/). After refining genotype calls using the chosen minimum alternate frequency of 0.7 and removing repetitive and poorly covered regions in Illumina alignments, a final filtered dataset of 3955 SNPs covering >89% of the genome was retained for subsequent analysis ( Figure S4, see Supplementary Data available online at http://bib.oxfordjournals.org/). The chosen frequency cut-off of 0.7 was validated using ONT sequence data for four replicates of the H37Rv reference strain [13]. After implementing the pipeline discussed earlier, there was a high concordance between the H37Rv replicates, with only 4 discrepancies found among the 29 SNPs identified. The concordance of SNPs and small indels detected by ONT and Illumina data was assessed. For all pairs, >99% of the total SNPs identified were called in both samples, showing few combined platform discrepancies (median 3.5; range: 0-9 SNPs) ( Table 2). Agreement between platforms for depth of coverage and alternate frequencies was assessed. Good coverage in Illumina coincided with good coverage in ONT, and the alternate frequencies were observed to be lower in ONT than in Illumina, consistent with the noisier nature of the ONT technology ( Figure S5, see Supplementary Data available online at http://bib.oxfordjournals.org/). Most discrepancies arose in the few SNPs called in Illumina but not in ONT data, due to alternate frequency values just below the 0.7 AD cut-off (Table S2, see Supplementary Data available online at http://bib.oxfordjournals.org/). In addition, every sample except S5 (L4.9) differed in the call for the (H37Rv) genomic position 55 553. This position is in a GC-rich region where ONT data had a CCG (3 nucleotide) insertion followed by a nucleotide change (C -> T), whereas the variant called in Illumina data only included the SNP. The multiple CCG repeats present in the sequence, led to the Illumina data analysis not capturing the insertion. Additionally, ONT data for sample S10 showed an SNP in a GC-rich region whilst in its Illumina counterpart, it was identified as a 1 bp insertion followed by the SNP, suggesting an error in the ONT call.
The majority (>87%) of small indels called at an alternate frequency of 0.7 were correctly captured by both platforms (Table 2). However, more discrepancies were identified with small indels than with SNPs (median 9; range 4-12 small indels). These discrepancies were mostly driven by small indels (1 bp) in polyC/polyG repeats, which were called from Illumina but not in ONT sequence data (Table S3, see Supplementary Data available online at http://bib.oxfordjournals.org/). On the other hand, the second type of calls in ONT that differed from Illumina was larger indels (8-10 bp), in which the AD fraction in Illumina was slightly lower than 0.7, suggesting that these larger variants called by ONT were not spurious (Table S4, see Supplementary Data available online at http://bib.oxfordjournals.org/). Larger structural variants (>15 bp) were investigated with Delly software. Long reads allow more accurate identification . Genes with average median coverage <0.5 for ONT platform are annotated: Rv0797 corresponds to an insertion sequence; Rv1758-Rv1765c corresponds to RD152, deleted in L2 and one isolate from L3; and Rv3019c-Rv3020c is a genomic region deleted in L3 isolates. The vertical axis shows the median coverage normalized by four housekeeping genes. The horizontal axis shows the position along the chromosome aligned to H37Rv. (B) Boxplots of normalized coverage per gene per sample for the 10 pairs. (C) Normalized coverage per gene per sample by group as follows: non-pe/ppe genes, conserved pe/ppe genes and pe/ppe genes with structural variants; * * * adjusted P-value <0.001. (D) Normalized coverage distribution per sample per gene by GC content for each sequencing platform. On the left, coverage obtained aligning to H37Rv reference; on the right, coverage obtained aligning to PacBio lineage-specific assemblies. of large indels. As expected, a higher number of large variants was observed in ONT (median 81) compared to Illumina (median 24) data (Table 2), with deletions having the highest agreement between platforms (pairwise sample overlap: median 17, range 2-20 large indels).
between Illumina and ONT platforms confirming the robust nature of the variant calling process (Table 1).
To further investigate the use of the ONT platform to perform clustering, phylogenetic reconstruction was performed using IQ-TREE software. Clear clustering of strain types was observed with long internal branches separating each major lineage. In addition, each sample pair formed a monophyletic clade with short terminal branch lengths indicating the near-identical pattern of variation detected through both platforms (Figure 2; Figure S6, see Supplementary Data available online at http://bib.oxfordjournals.org/). Two and three samples belonging to L2 (S8, S9) and L3 (S2, S3, S4), respectively were closely related, with the number of SNP differences below or equal to 20.
To increase the accuracy of the phylogenetic reconstruction, potentially for transmission analysis, base calls were manually curated, and SNPs which were called as reference with alternate AD frequencies between 0.6 and 0.7 were redesignated as alternate base calls. Following this, the reconstruction of the phylogenetic tree with only ONT isolates was performed using the 3955 polymorphic sites (Figure 2; Figure S6, see Supplementary Data available online at http://bib.oxfordjournals.org/). Samples within a putative L2 transmission cluster (S8 and S9) differed by 2 SNPs, whilst the distance within the L3 transmission cluster (S2, S3, S4) varied between 2 and 18 SNPs. Characterization of transmission chains is of epidemiological importance, and due to the small numbers of variants that sometimes separate closely related isolates, accurate estimation of the number of SNPs differences between samples is crucial. Previous studies have shown how long-read sequencing solves some of the traditional Illumina blind spots [20], including the successful assembly and variant calling of pe/ppe genes with ONT data [21]. On this basis, 150 out of 169 pe/ppe genes with good coverage (>0.7 normalized mean coverage) were included to complement the genomic regions analysed and therefore potentially achieve a deeper separation of the transmission clusters. These regions overlapped with previous studies [16,22]. An extra 568 high-quality SNPs were added, resulting in one additional SNP within the transmission cluster from L2 (S8, S9) and four extra SNPs for L3 (S2, S3, S4), thereby slightly increasing the differences obtained within highly similar samples ( Figure 2C).

Drug-resistance prediction
Drug-resistance profiles were predicted by TB-Profiler software using the filtered set of 3955 SNPs. Predictions were compared across replicates and matched perfectly between platforms, leading to nine pan-susceptible isolates and one pre-MDR isolate. In addition, identical variants were found across the 42 genes analysed by the TB-Profiler. Drug susceptibility test data was used to confirm these predictions with all matching, except one (Table S1, see Supplementary Data available online at http://bib.oxfordjournals.org/). One inconsistency was observed in the pre-MDR isolate (sample S5), where although isoniazid resistance was genotypically and phenotypically concordant (katG S315T present in both ONT and Illumina data), streptomycin resistance was observed through drug susceptibility testing but not in the genotypic prediction. Upon further inspection of nonassociated variants in streptomycin-resistance genes in isolate S5, a premature stop codon was observed (in both Illumina and ONT data) in gid (S136 * ), which is the likely explanation for the discrepancy between phenotypic and genotypic predictions.

Discussion
The benefits of using WGS technologies in clinical and epidemiological settings, such as the characterization of transmission networks, or for detection of drug resistance-associated mutations to inform treatment decisions, have been described [12,13]. Nevertheless, the associated costs of WGS can limit their application, especially in remote, field or resource-poor settings. The recent development of portable sequencing devices powered by laptops, such as ONT MinION, is significantly reducing the costs and infrastructure necessary for sequencing, thereby improving accessibility [23,24]. This accessibility would be useful for infection control in the high TB transmission setting of the Karonga District, Malawi, the source of our samples. In parallel, the possible direct sequencing from sputum samples has been successfully reported, taking up to 5 days [8,23,25], which will shorten the time from specimen collection to a drug-resistance profile, leading to timely and personalized treatment that can be significantly delayed when culture isolation is required (up to 3 weeks).
To assess the performance of Illumina short-read and ONT long-read platforms, we have carried out a comparative analysis of 10 sample pairs with data from both technologies. Illumina technology with a low sequencing error rate is considered the gold standard and therefore has been applied to inform on drug resistance or transmission, but the performance of ONT, with its known higher error rate, is less clear. Several studies have evaluated the performance of ONT sequencing in targetsequencing approaches for drug-resistance detection [25][26][27], finding good concordance between Illumina and ONT, or in WGS analysis [28]. For ONT sequencing data, an even coverage distribution along the chromosome was observed, with drops coinciding with deleted genes or regions, such as RD152 (Rv1758c-Rv1765c) in L2, or insertion sequences, whose presence/absence is variable among different strains. Coverage levels were not dependent on GC content, with high values even in the extremely GC-rich genes (>80% GC content). Using a lineage-specific genome as a reference yielded an expected overall improvement in coverage across both platforms. However, Illumina replicates of L3 isolates still failed to reach similar values to those of ONT in the high GC content regions, revealing the higher susceptibility of the short-read sequencing platform to GC-rich genes. Blind spots for Illumina sequencing technologies have been previously reported [18], for which long-read sequencing technologies can assist [20,21]. In accordance with previous work [21], our study demonstrates that long-read data has the potential to elucidate complex regions, such as pe/ppe genes, which due to their GC-rich and repetitive nature have been systematically excluded from WGS analysis, losing potential phylogenetic information [16,22]. Coverage of the Illumina replicates on these regions, and more specifically in the most diverse genes of these two families, was shown to be significantly lower than their ONT counterparts, supporting the potential inclusion of these genes for the downstream analysis in WGS from ONT. This could assist with understanding the genetic diversity of pe/ppe genes, whose functions are largely still unknown, but some are involved in host-pathogen interactions and thereby promising targets for vaccine development [16].
The performance of the variant calling pipeline for ONT sequences was investigated and compared to the Illumina data, considering the latter as a gold standard. The ONT platform is prone to sequencing errors, whereas Illumina's high sequencing accuracy makes it preferred for the identification of SNPs and small indels [15]. In contrast, larger structural variants are difficult to capture with short reads, thus applying a hybrid approach involving the assembly of long reads with correction using short reads can improve the accuracy and completeness of variant detection. For the evaluation of the variant calling method in ONT data, an alternate AD fraction ≥0.7 was determined as the optimal cut-off based on the true and false-positive error rates. The exclusion of repetitive regions (e.g. pe/ppe genes) led to good agreement between platforms for SNPs and small indels, as previously shown in other work [25], with discrepancies often being found at an AD between 0.6 and 0.7, suggesting the potential use of the lower cut-off of 0.6 to include more true positive calls. With SNPs covering more than 89% of the genome, an accurate phylogenetic reconstruction was obtained, supporting the utility of ONT for variant identification and lineage profiling. Moreover, the inclusion of 150 pe/ppe genes with high levels of coverage, which would normally be among the regions excluded, added extra variants that have the potential of being phylogenetically informative. The possibility of including extra variants may lead to an improved resolution that would be of special interest in outbreak settings, where transmission analysis of closely related isolates can be potentially better established.
One of the most important applications of the ONT MinION portable device is the accurate detection of drugresistant variants, which can inform and assist patient management in a timelier manner than traditional phenotypic tests. A promising cost-effective approach to the high throughput evaluation of drug-resistant loci in clinical isolates is target-amplicon sequencing [29]. We validated the high quality of the variant calling process on ONT data for 42 known M. tuberculosis drug-resistant loci, finding congruent results with their Illumina counterparts. This outcome suggests the potential identification of drug-resistant variants from ONT data, including within a target-amplicon framework.
Limitations of the study include the low number of isolates analysed, the low intra-lineage diversity and a limited number of drug-resistant isolates. Whilst the latter may limit the investigation of variants in drug resistance-associated loci, given the error rate of ONT including within these loci, our approach robustly characterizes the sequences of drug-resistance genes. It is thus reasonable to expect that the approach will also accurately characterize the sequence of genes that contain variants and, by extension, predict resistance. Previous work has shown accurate drug resistance variant detection through different methods [25,28], with promising results for its use for diagnostics purposes in the clinic. However, for the complete reliance on in silico drug resistance prediction based on genotypes, an improved understanding of catalogue of resistance mutations is essential. A more complete characterization of phenotype-genotype associations for certain drugs is required and the phenotypicgenotypic inconsistency observed in this analysis reflects this need. WGS facilitates a more comprehensive analysis compared to targeted gene sequencing. The use of long reads can cover repetitive regions of the genome, and thereby help elucidate compensatory or epistatic mutations that could be crucial for a better understanding of drug-resistance mechanisms in M. tuberculosis.
In conclusion, the data obtained through this analysis supports the use of ONT sequencing platforms for the detection of well-established drug resistance variants and phylogenetic reconstruction, with potential application in transmission analysis, since the underpinning SNP variant calling process appears robust. However, due to the high error rate, Illumina remains the best option for small indel analysis, suggesting that for their accurate study with ONT data, a hybrid correcting approach is warranted. Moreover, we demonstrate the possibility of including additional genomic regions in the standard variant calling pipelines, such as the pe/ppe genes, which due to their implications in pathogenicity and host-pathogen interactions could give insights into epidemiological implications, as well as potentially improve the resolution of transmission clusters. Furthermore, for variants in more complex gene arrangements that might fail to be captured using the H37Rv reference, the use of lineage-specific reference genomes could be practical. The portable MinION technology could therefore be implemented and is likely to gain traction for epidemiological, phylogenetic or drug resistance detection applications, providing much-needed assistance in the control of TB, especially in high-burden settings where impacts will be greater.

Culture, DNA extraction and sequencing
The 10 isolates analysed in this study were sourced from the TB patients in Karonga (Malawi) between 2001 and 2009, with isolates stored at the London School of Hygiene and Tropical Medicine. The bacterial culture and extraction of genomic DNA were carried out at the LSHTM Biosafety Level 3 containment facility. Briefly, M. tuberculosis isolates were pre-cultured in Middlebrook 7H9 supplemented with 0.05% Tween 80 and 10% albumin-dextrose-catalase at 37 • C to mid-log phase. Once reached exponential growth, they were passaged to roller bottles until desired optical density (OD = 0.6-0.8). Heat inactivation (1 h at 80 • C) followed by the Cetyl trimethyl ammonium bromide (CTAB)-chloroformisoamyl alcohol method was used for genomic DNA extraction [30]. WGS of DNA samples was performed with ONT (MinION Flow Cell with R10.3 nanopore chemistry; SQK-LSK109 ligation-based sequencing kit) and Illumina HiSeq 4000 (150 bp paired-ends) platforms through The Applied Genomics Centre at LSHTM. A further set of four DNA replicates for the reference H3Rv strain also underwent sequencing using the ONT MinION platform. All raw sequencing data are available; see Table S1 (see Supplementary Data available online at http://bib.oxfordjournals.org/) for accession numbers.

Bioinformatics pipeline
Base-calling of ONT raw sequence data was performed with the bonito base caller (model dna_r9.4.1_e8.1_sup@ v3.3) [31] and reads aligned to the H37Rv reference genome (GCA_000195955.2) using minimap2 (v2.17-r941) software [32] discarding ambiguous reads. Depth of coverage along the chromosome and median coverage per annotated gene was calculated with BEDTools (v2.29.2) [33], using the alignments of data obtained by ONT and Illumina platforms. To compare between samples, median coverage per gene per sample was normalized by the coverage of four housekeeping genes (gyrB, gyrA, rpoB and rpoC). These genes are known to not be deleted or duplicated and expected to have a good 'average' coverage. Lineage-specific reference genomes were selected among high-quality PacBio assemblies [19] and used to assess levels of coverage. Due to the high error rate of the ONT platform, a mixture of alternate and reference alleles is often found. To identify an optimum cut-off for variant calling, a minimum alternate allele frequency of 0.5 was used in the variant calling process carried out using Freebayes (v1.3.2) software [34]. Variant calls obtained in Illumina data with an allele frequency of 0.7 were considered as true variants. Alternative allele frequency cut-off values of 0.5, 0.6, 0.7, 0.8, 0.9 and 1.0 for ONT variant calls were used and true and false positive and negative rates for each of the cut-offs were calculated. True-and false-positive rates were compared and evaluated using a receiver operator characteristic curve analysis. A final cut-off of 0.7 was determined to perform variant calling and validated using ONT data from the H37Rv replicates.
To obtain a curated set of SNPs for the subsequent analysis, variants were filtered ( Figure S4, see Supplementary Data available online at http://bib.oxford journals.org/). In brief, regions with repetitive sequences that generate mapping problems (GitHub repository https://github.com/pgomezgonzalez/nanopore_tb_data_ analysis), such as pe/ppe genes or insertion sequences, were excluded, and only SNPs were selected. Genotype calls were defined by read depth (DP) and alternate AD fraction, with a minimum DP of 10 required to determine a position and an AD ≥ 0.7 needed to retain the alternate call. The resulting refined SNP dataset was used for the agreement evaluation between sample pairs and their phylogenetic reconstruction. Small indels called using Freebayes (v1.3.2) were filtered using the same pipeline as SNPs. Delly (v0.8.7) software [35] was used for large structural variants (indels with size >15 bp). Lineage-and drug-resistance profiling of the sample pairs was carried out with TB-Profiler software (v3.0, commit version: de4e796) [13]. Maximum likelihood phylogenetic reconstruction of the genomes was performed with IQ-TREE (v1.6.12) with a GTR + G + ASC nucleotide substitution model [36] by using genomewide SNPs excluding repetitive regions or including the 150 pe/ppe genes with good coverage and visualized together with annotations in iTOL software. Custom scripts used in the analysis pipeline are available in a GitHub repository (https://github.com/pgomezgonzalez/ nanopore_tb_data_analysis).

Key Points
• Robust variant calling following sequencing of Oxford Nanopore Technologies (ONT). • Suitability of ONT sequencing to detect variants in drug resistance-associated loci. • Enhanced transmission analysis by deeper resolution from long-read sequence data.

Supplementary data
Supplementary data are available online at http://bib. oxfordjournals.org/.

Data availability
Raw sequencing data are available from the European Nucleotide Archive; see Table S1 (see Supplementary  Data available online at