Full text
75,114 characters
· extracted from
preprint-html
· click to expand
Producing Polished Prokaryotic Pangenomes with the Panaroo Pipeline | bioRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-M677548'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search New Results Producing Polished Prokaryotic Pangenomes with the Panaroo Pipeline View ORCID Profile Gerry Tonkin-Hill , View ORCID Profile Neil MacAlasdair , Christopher Ruis , Aaron Weimann , View ORCID Profile Gal Horesh , View ORCID Profile John A. Lees , View ORCID Profile Rebecca A Gladstone , Stephanie Lo , Christopher Beaudoin , R Andrés Floto , View ORCID Profile Simon D.W. Frost , View ORCID Profile Jukka Corander , View ORCID Profile Stephen D. Bentley , View ORCID Profile Julian Parkhill doi: https://doi.org/10.1101/2020.01.28.922989 Gerry Tonkin-Hill 1 Parasites and Microbes, Wellcome Sanger Institute , Cambridge, United Kingdom 2 Department of Biostatistics, University of Oslo , Blindern, 0317, Norway Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Gerry Tonkin-Hill For correspondence: gt4{at}sanger.ac.uk Neil MacAlasdair 1 Parasites and Microbes, Wellcome Sanger Institute , Cambridge, United Kingdom 3 Department of Veterinary Medicine, University of Cambridge , Cambridge, United Kingdom Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Neil MacAlasdair Christopher Ruis 3 Department of Veterinary Medicine, University of Cambridge , Cambridge, United Kingdom 4 Molecular Immunity Unit, Department of Medicine, University of Cambridge , Cambridge, United Kingdom 5 Medical Research Council (MRC) – Laboratory of Molecular Biology , Cambridge, United Kingdom Find this author on Google Scholar Find this author on PubMed Search for this author on this site Aaron Weimann 3 Department of Veterinary Medicine, University of Cambridge , Cambridge, United Kingdom 4 Molecular Immunity Unit, Department of Medicine, University of Cambridge , Cambridge, United Kingdom 5 Medical Research Council (MRC) – Laboratory of Molecular Biology , Cambridge, United Kingdom 6 European Bioinformatics Institute , Cambridge, United Kingdom Find this author on Google Scholar Find this author on PubMed Search for this author on this site Gal Horesh 1 Parasites and Microbes, Wellcome Sanger Institute , Cambridge, United Kingdom Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Gal Horesh John A. Lees 7 MRC Centre for Global Infectious Disease Analysis, Department of Infectious Disease Epidemiology, Imperial College London , London W2 1PG, United Kingdom Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for John A. Lees Rebecca A Gladstone 2 Department of Biostatistics, University of Oslo , Blindern, 0317, Norway Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Rebecca A Gladstone Stephanie Lo 1 Parasites and Microbes, Wellcome Sanger Institute , Cambridge, United Kingdom Find this author on Google Scholar Find this author on PubMed Search for this author on this site Christopher Beaudoin 8 Department of Biochemistry, University of Cambridge , Cambridge, United Kingdom Find this author on Google Scholar Find this author on PubMed Search for this author on this site R Andrés Floto 4 Molecular Immunity Unit, Department of Medicine, University of Cambridge , Cambridge, United Kingdom 9 Cambridge Centre for Lung Infection, Royal Papworth Hospital , Cambridge, CB23 3RE, United Kingdom Find this author on Google Scholar Find this author on PubMed Search for this author on this site Simon D.W. Frost 10 Microsoft Research , Redmond, WA 98052 11 London School of Hygiene & Tropical Medicine Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Simon D.W. Frost Jukka Corander 1 Parasites and Microbes, Wellcome Sanger Institute , Cambridge, United Kingdom 2 Department of Biostatistics, University of Oslo , Blindern, 0317, Norway 12 Helsinki Institute for Information Technology HIIT, Department of Mathematics and Statistics, University of Helsinki , 00014 Finland Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Jukka Corander Stephen D. Bentley 1 Parasites and Microbes, Wellcome Sanger Institute , Cambridge, United Kingdom Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Stephen D. Bentley Julian Parkhill 3 Department of Veterinary Medicine, University of Cambridge , Cambridge, United Kingdom Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Julian Parkhill Abstract Full Text Info/History Metrics Data/Code Preview PDF Abstract Population-level comparisons of prokaryotic genomes must take into account the substantial differences in gene content, resulting from frequent horizontal gene transfer, gene duplication and gene loss. However, the automated annotation of prokaryotic genomes is imperfect, and errors due to fragmented assemblies, contamination, diverse gene families and mis-assemblies accumulate over the population, leading to profound consequences when analysing the set of all genes found in a species. Here we introduce Panaroo, a graph based pangenome clustering tool that is able to account for many of the sources of error introduced during the annotation of prokaryotic genome assemblies. We verified our approach through extensive simulations of de novo assemblies using the infinitely many genes model and by analysing a number of publicly available large bacterial genome datasets. Using a highly clonal Mycobacterium tuberculosis dataset as a negative control case, we show that failing to account for annotation errors can lead to pangenome estimates that are dominated by error. We additionally demonstrate the utility of the improved graphical output provided by Panaroo by performing a pan-genome wide association study in Neisseria gonorrhoeae and by analysing gene gain and loss rates across 51 of the major global pneumococcal sequence clusters. Panaroo is freely available under an open source MIT licence at https://github.com/gtonkinhill/panaroo . Background Prokaryotic genome evolution is driven by both the transfer of genetic material vertically from parent to offspring as well as by horizontal gene transfer between organisms ( 1 ). Large population sequencing studies of bacteria have confirmed that this results in large scale differences in intraspecies genome content ( 2 ). This has led to the description of the pangenome, the set of all genes that have been found in a species as a whole ( 3 ). Within the pangenome, genes are often then described as being part of the ‘core’genome, the set of genes present in all members of a species, or the non-core (‘accessory’) genome. A common problem when inferring the pangenome of bacterial genomic datasets is the classification of homologous genes, usually defined by a percentage shared sequence identity, into either orthologous or paralogous clusters. Orthologs are homologous genes descended from the same ancestral sequence in the common ancestor, and not via gene duplication or acquisition. When analysing bacterial pangenomes we are often interested in not just the function of a gene or protein but also its location, as two nearly identical genes could be under differential regulation at different locations in the genome. Many programs for pangenome analysis therefore use location information to further identify paralogs, which occur when two genes descend from the same ancestral sequence due to gene duplication or when a homolog has been acquired horizontally. Previous approaches for inferring the pangenome include Roary, OrthoMCL, PanOCT, PIRATE, PanX, PGAP, COG-soft, and MultiParanoid ( 4 – 10 ). The majority of methods for determining the pangenome tend to make use of one of two similar approaches (see Supplementary Figure 1 ). Most start by inferring similarity between predefined gene sequences using a homology search tool such as CD-HIT, BLAST or DIAMOND ( 11 – 13 ). Using this output a pairwise distance matrix is created and genes are then clustered into orthologous groups using either the popular Markov Clustering algorithm (MCL) or by looking at triangles of pairwise best hits (BeTs) ( 14 , 15 ). A subset of these methods then continues by using the neighbourhood or genomic context of each gene to further split orthologous clusters into paralogs. As bacterial genomic population studies have grown larger there has not been a corresponding increase in genome annotation accuracy or genome assembly contiguity. Thus as these databases have grown, so has the number of erroneous gene annotations. This can have profound implications for the resulting estimates of the pangenome whereby a higher number genomes leads to a higher number of errors ( 16 , 17 ). Such errors can cause difficulties in any downstream modeling of the pangenome, such as the modeling of negative frequency-dependent selection (NFDS) acting through the loci in the accessory genome ( 18 , 19 ). Errors can be introduced into pangenome analyses by fragmented assemblies, mis-annotation, contamination and mis-assembly. Denton et al., have shown that fragmented assemblies were the major cause of inflated gene numbers in draft eukaryotic genomes ( 17 ). Whilst errors often lead to inflations in the estimates of the size of the accessory genome they can also lead to missing genes when the annotation software fails to identify a gene or where the gene is fragmented by a break in the assembly, which reduces the estimated size of the core genome. Many current pan-genome inference algorithms have not been subjected to rigorous verification using simulated data. Consequently, their ability to deal with the errors occurring in the initial genome annotations has received limited attention. Here, we present an alternative approach to inferring the pangenome, Panaroo, which makes use of a graph based algorithm to share information between genomes, allowing us to correct for many of the sources of annotation error. Panaroo leverages the additional information provided by each genome in a dataset to improve annotation calls, and as a result, the clustering of orthologs and paralogs within the pangenome. We also provide a number of pre- and postanalysis scripts which further enrich the analysis package we provide, allowing integrated data quality control, gene association analysis, and to allow for the comparison of pangenomes between species. As Panaroo constructs a full graph representation of the pangenome, we are able to investigate structural variations within the resulting graph, allowing for associations between structural variations and phenotypes to be called. We demonstrate the success of the algorithm through extensive simulation using the Infinitely Many Genes model ( 20 ) and by analysing a diverse array of large bacterial genomic datasets including the major clades of the Global Pneumococcal Sequencing (GPS) project ( 21 ). We compare the output of Panaroo with the previous gold standard methods for analysing the pangenome and show that Panaroo produces superior ortholog clusters, often leading to both significant reductions in the size of the estimated accessory genome and increases in the size of the core genome. Results Overview Panaroo builds a full graphical representation of the pangenome, where nodes are clusters of orthologous genes (COGs) and two nodes are connected by an edge if they are adjacent on a contig in any sample from the population. Using this graphical representation, Panaroo corrects for errors introduced during annotation by collapsing diverse gene families, filtering contamination, merging fragmented gene segments, and refinding missing genes ( Figure 1 ). Panaroo generates the initial gene clusters using CD-HIT to cluster the collection of all gene sequences in all samples ( 11 ). Paralogs are then split by only allowing each genome to be present once in each cluster. Fragmented or mistranslated genes are identified and merged based on neighbourhood information of each node ( 22 ). Diverse gene families are identified using a relaxed alignment threshold along with neighbourhood information obtained from the graph. Finally, genes potentially missing from one or more samples are identified in the graph and the contig sequence near neighbouring nodes is searched to check for the presence of the gene. Download figure Open in new tab Fig. 1. A: An overview conceptualizing the problem with current gene annotation methods and the stages Panaroo uses to correct for annotation errors. B: Expanded specific stages in the process. (i) Contamination appears in the graph as poorly supported components. In the default mode, Panaroo removes contamination by recursively removing poorly supported nodes of degree 1. (ii) Genes are often mis-annotated near contig breaks ( 17 ). Panaroo corrects such mis-annotations by recursively removing poorly supported nodes of degree 1. (iii) Panaroo corrects cases where the same DNA sequence has been translated in multiple reading frames into a single gene by clustering concomitant genes at the DNA level. (iv) Panaroo uses context and a lower clustering threshold to combine diverse gene families into a single gene. (v) Annotation algorithms may predict a gene in some but not all samples, even when the samples share exactly the same DNA sequence. Panaroo finds missing genes by searching for the gene sequence in the surrounding DNA. Panaroo takes annotated assemblies in GFF3 format as input and generates a variety of output formats including a gene presence absence matrix (as in Roary) as well as a fully annotated graph in GML format for viewing in Cytoscape or other graph visualisation software ( 23 ). The Panaroo package includes a number of pre- and post-processing scripts that can be used for initial quality control as well as for determining pangenome size, gene gain and loss rates and to identify coincident genes. Panaroo interfaces easily with many other pangenome analysis packages including the latest version of pyseer allowing for associations between phenotypes and gene presence/absence as well as structural variation in the graph to be investigated ( 24 ). The package is written in python and is available under an open source MIT licence from https://github.com/gtonkinhill/panaroo/ . Corrected analysis of a Mycobacterium tuberculosis Outbreak in London To assess the effectiveness of Panaroo and the impact of annotation errors on other pangenome inference methods we analysed a large outbreak of highly clonal, isoniazid resistant Mycobacterium tuberculosis (Mtb) in London ( 25 ). Mtb exhibits a very low mutation rate and is understood to have a ‘closed’ pangenome. Due to the short timescale of the outbreak, the maximum pairwise SNP distance within this dataset was 9. As we would expect to find no pangenome variation, this dataset provides a useful control to compare the different pangenome tools. We ran each of the pangenome inference methods on all 413 Mtb genome assemblies after first annotating them using Prokka ( 26 ). Panaroo identified both the highest number of core genes and the smallest accessory genome ( Figure 2 ), consistent with the established biology of Mtb and a highly clonal dataset ( 27 , 28 ). In contrast, PanX, PIRATE, COGsoft and Roary all reported inflated accessory genomes ranging in size from 2584 to 3670 genes representing a nearly ten-fold increase to that reported by Panaroo. The small number of accessory genes that Panaroo did predict mostly consisted of core genes where the algorithm was unable to refind the genes in a subset of the assemblies. The majority of the difference between the methods was driven by genes being fragmented during assembly (59%; see Supplementary Methods). A smaller subset of genes were only called in a small minority of the isolates despite the underlying sequence being nearly identical (10%). Whilst some of these differences could be due to frame shifts in the PE/PPE genes, 27.9% of the isolates were indistinguishable with only one isolate being more than 5 SNPs from this major clone. We found that the majority of the difference was due to the annotation algorithm optimising for each isolate individually, leading to inconsistent gene calls. However Panaroo’s consensus approach helps to resolve these discrepancies. The magnitude of the difference observed in this dataset suggests that failing to account for annotation errors can have profound impacts on the resulting estimates of the pangenome. Download figure Open in new tab Fig. 2. Pangenome counts for 413 Mycobacterium tuberculosis genomes from an outbreak in London ( 25 ). The maximum pairwise SNP distance between these isolates was 9, suggesting extremely limited variation. Consequently, we would expect a very limited accessory genome and a core genome of approximately 4000 genes. All tools with the exception of Panaroo found in excess of 2500 accessory genes, which can be attributed to annotation errors. Superior Performance on Simulated Populations To further assess the ability of the different methods to identify the correct gene presence/absence matrix, we simulated pangenomes using the Escherichia coli reference genome ASM584v2 (accession number NC000913 ) and the Infinitely Many Genes model ( 20 , 29 ). To more accurately simulate the kind of errors that typical annotation pipelines produce, we simulated short read assemblies from these pangenomes using Mason, ART and SPADES ( 30 – 32 ). A more detailed description is given in the methods. We conducted five simple and two more complicated simulations, each with three replicates ( Supplementary Table 1 ). In the simple simulations, the gene gain/loss rate was varied with lower rates corresponding to a larger core genome and smaller accessory genome and higher rates corresponding to a larger accessory genome. The mutation rate of the accessory genome was also varied. In addition, we simulated two more complicated datasets, one of which had an increased level of fragmentation of the assembly by fragmenting the input genome prior to the NGS simulation. The second more complex simulation included contamination by randomly adding in short fragments of the Staphylococcus epidermidis reference genome, which is a common contaminant. Figure 3a indicates the number of gene clusters which contained errors for each of the scenarios. Such errors included both genes that were incorrectly annotated as well as gene sequences that were incorrectly clustered together. Most methods performed fairly well when applied to the output from the simple simulation. All methods include some errors due to genes never being annotated except in the original reference. As each method relied on the same input files this was consistent between methods. Download figure Open in new tab Fig. 3. Error counts for the different algorithms after comparing with simulated data on different scenarios. Accessory genome inflation refers to the number of erroneous clusters that do not correspond to any simulated gene cluster. Even in simulations of pangenome variation from a single E. coli reference with only relatively simple sources of error, a), panaroo outperforms other methods across a variety of gene gain/loss rates and mutation rates. In more realistic simulations of sequencing data, b), the only method with reasonable control of the error rate is panaroo. For the simple simulations, PanX and Panaroo produced the fewest errors, followed by PIRATE, Roary and COGsoft. Roary was the most sensitive method to the substitution rate, with higher rates leading to more errors. This can be attributed to its reliance on a strict BLAST e-value threshold. COGsoft gave variable results, performing poorly on pangenomes with larger accessories suggesting it may over collapse genes. This interpretation was further supported in our analysis of a diverse Klebsiella pneumoniae dataset (see below). Whilst most methods were able to perform adequately on relatively error-free simulated data, the introduction of more realistic significant sources of annotation error had a large impact. Figure 3b indicates the resulting error counts after simulating both contamination and highly fragmented assemblies. Here, the importance of Panaroo’s multiple annotation error correction approaches becomes apparent. As expected, when small amounts of contaminating S. epidermidis DNA were added to the simulated NGS data all methods except Panaroo and COGsoft incorrectly called a larger accessory genome. This is due to their inability to account for and remove contaminating contigs. In contrast, Panaroo achieved error rates similar to that found for the clean assemblies. COGsoft had a similar number of total errors to the other programs but rather than calling a larger accessory genome tended to incorrectly merge the contamination with other genes. The highly fragmented assemblies led to the largest error rates in each pangenome analysis tool. Fragmentation can lead to gene annotation software such as Prokka miscalling genes near the ends of contigs. It can also impact on the consistency of the training step in some annotation algorithms. This resulted in a large increase in the estimated accessory genome size for all methods except Panaroo. Similarly, miscalling can lead to genes being left unannotated resulting in smaller estimates of the core genome. In both cases Panaroo’s error correction and refinding steps were able to accurately recover the true pangenome, while PanX, COGsoft, PIRATE and Roary all produced nearly an order of magnitude higher error rates. This result mirrors that observed in the analysis of the highly clonal M. tuberculosis outbreak, helping to confirm the impact that such errors can have on pangenome estimates. Greater Internal Consistency in a Diverse Klebsiella pneumoniae Collection We then went on to compare each method on a more complex real dataset – 328 globally sourced Klebsiella pneumoniae genomes from both human and animal hosts ( 2 ). K. pneumoniae is a highly diverse gram-negative bacterium that can colonize both plants and animals and has previously been found to have a large pangenome ( 2 ). The high recombination rate and often multiple plasmids per bacterium complicates analysis of the K. pneumoniae pangenome. Nine of the 328 isolates were identified as outliers by the Panaroo quality control script due to the number of contigs or number of genes they contained (see Supplementary Figures 3 – 5 ). These isolates were removed before running each algorithm. Figure 4a indicates the resulting total, core and accessory gene counts inferred by each method, using the 99% presence threshold for core genes as used in Roary ( 4 ). Download figure Open in new tab Fig. 4. a.) the estimated pangenome, core and accessory sizes from the different algorithms in the global K. pneumoniae dataset. (b) The number of conflicting gene annotations in the inferred clusters of the different algorithms. As species such as K. pneumoniae are known to have many rare plasmids which are difficult to distinguish from contamination, we developed a ‘sensitive’ mode for when the default ‘strict’ mode of Panaroo contamination filter can be overly stringent. Panaroo identified the highest number of core genes in both its default and sensitive modes, 3372 and 3376 respectively. Hence for these genomes there was only a minor difference in the estimated core between the two pipeline options. Roary identified the smallest core genome of 1800 genes. Given the result of the simulations, this is likely due to gene clusters being incorrectly split into multiple smaller clusters, as the default Roary pairwise identity threshold of 95% is too stringent for such a diverse dataset. PIRATE relaxes the strict threshold required in Roary and it identified a similar number of core genes to Panaroo (3318) but a smaller number of accessory genes than both the Panaroo (sensitive) and PanX methods which agreed more closely with the original estimates in Holt et al . ( 2 ). Whilst there is no gold standard with which to compare these results, we can look at the gene annotations within clusters to identify cases where a gene cluster contains multiple different annotations, which would suggest separate gene clusters have been incorrectly merged. Figure 4b indicates the number of conflicting annotations in the clusters of each method. As gene fragments and genes annotated as “hypothetical” are often the result of errors and thus can have erroneous annotations, we did not consider conflicts that involved these. Panaroo in both its default and sensitive modes had the lowest number of conflicting annotations. PanX had the second lowest number whilst COGsoft recorded the highest number of conflicts which is consistent with the tendency of its method to over-cluster genes. Overall, Panaroo identified a larger core genome and fewer conflicting annotations than any other method showing that its error correction approach is also suitable for diverse datasets of highly recombinogenic bacteria. Pyseer Association Analysis with Panaroo Finds Antibiotic Resistance Mechanisms Panaroo provides a number of outputs as well as post processing scripts for analysing the cleaned pangenome graph. Panaroo outputs both a gene presence/absence matrix as well as structural variation presence/absence matrix that can be used as input to pyseer or Scoary for association analyses ( 24 , 33 ). Panaroo generates structural variation calls by identifying distinct consecutive triplets of gene families in the graph that describe different paths through a node (see Figure 5a ). As larger insertion and deletion events will only be represented once in the structural presence/absence matrix rather than repeatedly for each gene, this approach increases the power of such association analyses. The approach also identifies associations with large structural re-arrangements although these are often more difficult to interpret. Once a significant association between a gene triplet and a phenotype of interest have been identified, the context of the structural rearrangement can be investigated manually by interrogating the pangenome graph in Cytoscape ( 23 ). Download figure Open in new tab Fig. 5. a) A diagram indicating how gene triplets are called in the graph. A single genome can only pass through a node once; thus, variations in the arrangement of genes in different genomes can be called using triplets. These triplets are summarised as a binary presence absence matrix. b) A family of related plasmids present in the N. gonorrhoeae pangenome gene network. The path highlighted in red contained 4 structural variant gene triplets significantly negatively associated with tetracycline resistance, or associated with tetracycline susceptibility by a structural variant pan-GWAS (all adjusted p-value < 0.05). The gene highlighted in yellow, group_1999, was found to be a tetM resistance gene. c) A subsection of the N. gonorrhoeae pangenome gene network of the region surrounding gene group_1138. The presence of gene triplets (group_771-group_1002-group_1138) and (group_1131-group_795-group_1138) is positively associated with tetracycline resistance while the triplets (group_1002-group_795-group_1131) and (group_771-group_1002-group_795) are negatively associated with tetracycline resistance (all adjusted p -value < 0.05). To validate the pan-genome wide association study (pan-GWAS) and pan-genome structural variant association study (sv-pan-GWAS) pipelines, we ran panaroo on the Euro-GASP collection of 1054 Neisseria gonorrhoeae isolates collected from 20 countries across Europe from September to November 2013 ( 34 ). We combined the Panaroo output with antimicrobial MIC testing results for seven different antibiotics performed in the original study and carried out association studies on the gene presence-absence patterns and structural variants using pyseer ( 24 ). The gene presence-absence pan-GWAS approach returned 67 genes ( Supplementary Table 2 ) associated with various antibiotics (adjusted p -value ≤ 0.05). This included many probable candidates for genes causing resistance, including an uncharacterised ABC transporter (group_464), for penicillin resistance. ABC transporters are a common resistance mechanism against ribosome-targeting antimicrobials, as they can function as efflux pumps ( 35 ). The structural variant pan-GWAS returned 138 triplets ( Supplementary Table 3 ) associated with antibiotic resistance (adjusted p -value ≤ 0.05). These included many triplets containing phage-associated, transposase, or pilin genes, all of which are known to be mobile within the genome. Among these, the sv-pan-GWAS identified a number of insertions and deletions of whole genes which were associated with antibiotic resistance. One of these, group_1138, is a transmembrane protein which, when inserted, is associated with ceftriaxone resistance. All four possible gene triplets bypassing or going through the insertion were significantly associated with either susceptibility or resistance depending on if they included group_1138. The mechanisms of ceftriaxone resistance in N. gonorrhoeae are not yet fully understood, but it has been suggested that efflux and permeability must play a role ( 36 ). Group_1138, as it is a transmembrane protein, could have either of these functions. The sv-pan-GWAS approach allows for closely related genetic architectures to be disentangled, including highly related plasmids and phages. For example, analysis of the pangenome graph showed that a common N. gonorrhoeae plasmid present 430 times in this dataset is actually a family of several closely related plasmids. These highly similar plasmids share the majority of their genes, but there are several differences in gene content, which appear as bubbles in the pangenome graph ( Figure 5B ). One of the plasmid versions (highlighted in red in Figure 5B ) is negatively associated with tetracycline resistance, with four gene triplets significantly negatively associated with this phenotype in the sv-pan-GWAS. The other plasmid variants each contain group_1999, a tetM tetracycline resistance gene, providing a mechanism to explain the differential resistance profiles. Together, these analyses demonstrate that multiple members of the same plasmid family with different resistance profiles are circulating in the European N. gonorrhoeae population, and illustrate the value of an the sv-pan-GWAS approach. Improved Methods for Analysing Pangenome Evolutionary Dynamics The higher accuracy obtained by Panaroo allows for the comparison of gene gain and loss rates between lineages and species as well as the more accurate inference of pangenome size. Whilst it is common practice to plot gene accumulation curves in the analysis of pangenomes, these are not robust to errors and fail to account for sampling biases and population structure. Thus, accumulation curves should not be used to compare pangenome characteristics of different lineages or species. Recently, a number of phylogenetically informed methods for investigating pangenome dynamics have been published, including the Infinitely Many Genes (IMG) model and the Finitely Many Genes (FMG) model ( 8 , 20 , 37 ). Both of these approaches account for the diversity of the sample and have been implemented as postprocessing scripts in Panaroo. To demonstrate the utility of using the corrected pangenome graph to infer gene gain/loss rates and pangenome size, we used the FMG model to investigate 51 of the major Global Pneumococcal Sequence Clusters (GPSCs) for which reliable dated phylogenies could be constructed ( 21 ). The major clades of the pneumococcus have distinct accessory gene profiles ( 38 ). We ran Panaroo on each GPSC separately and used the resulting gene presence/absence matrix with the corresponding dated phylogeny to infer gene gain and loss rates for each cluster. We compared the inferred parameters with other variables of interest calculated by Gladstone et al . ( 21 ), including the inferred recombination rate (r/m), odds ratio of invasive disease and the number of distinct serotypes for each cluster. The parameters along with these variables are plotted in Supplementary Figure 2 . We found that the estimated effective pangenome size correlated positively with the recombination rate of a cluster (Spearman correlation coefficient 0.53, p <0.001) and the number of serotypes present in the cluster (Spearman coefficient 0.51, p =0.001). This is consistent with biological understanding of the genome diversification and gives confidence to our results, as a higher recombination rate would allow for a clade to more easily gain and lose genes, including serotype-defining gene clusters, resulting in a larger pangenome. Interestingly, GPSCs that have lower gene gain rates were more likely to have a significant odds ratio for invasive disease ( p =0.04)(see Figure 6 ). The association with gene loss rate was weaker, although the effect was in the same direction ( p =0.08). Genome reduction has previously been associated with increasingly obligate interactions with the host in multiple unrelated bacterial pathogens ( 39 ). Download figure Open in new tab Fig. 6. The inferred gene gain and loss rates of each of the 51 major clades of the Global Pneumococcal Sequencing project plotted above the respective log odds ratio of invasive disease in that clade. Clades which had significant odds ratios in Gladstone et al . ( 21 ) are represented in dark yellow. Computational Performance Panaroo uses a similar level of computational resources to competing methods. Figure 7 indicates the memory and cpu time required for the analysis of 10, 100 and 1000 N. gonorrhoeae isolates subsampled from the Euro-GASP collection. PanX and COGsoft used the most resources with COGsoft not completing the largest dataset in under a week. Roary, PIRATE and Panaroo all performed similarly. Download figure Open in new tab Fig. 7. the cpu time and memeory required for each of the algorithms for 10, 100 and 1000 N. gonorrhoeae isolates. Each tool was run with 5 cpus Discussion Annotation errors, fragmented assemblies and contamination represent a major challenge for pangenome analysis. We have designed Panaroo to tackle these challenges using a sophisticated framework for error-correction that leverages information across strains through a population graph-based pangenome representation. Using both simulations and well-characterised real world datasets, we demonstrated that many commonly used methods greatly inflated the size of the accessory genome while reducing the estimated size of the core genome. In contrast, Panaroo exhibited far lower error rates and reconstructed highly accurate core and accessory genomes for simulated datasets that included contamination and genome fragmentation. Analysis of both a highly conserved M. tuberculosis dataset and a highly diverse K. pneumoniae dataset indicated that Panaroo provides superior solutions in challenging real world population genomics applications. Panaroo also includes a number of pre- and post-processing scripts for the analysis of bacterial pangenomes that assist in quality control of the input data and facilitate down-stream processing of the pangenome. We used the Panaroo preprocessing QC scripts to identify nine K. pneumoniae samples that were outliers based on the number of contigs or genes and excluded these samples from our analysis. We recommend that such pre-processing QC be carried out on all datasets to identify potentially erroneous samples. We used the output from Panaroo as input to pyseer to run pan-GWAS and sv-pan-GWAS analyses on N. gonorrhoeae . Through this approach, we identified a deletion in the genome of N. gonorrhoeae in a large European collection that confers resistance to tetracycline. We demonstrated the utility of Panaroo to disentangle highly similar genetic structures through identification of a plasmid family in N. gonorrhoeae ( Figure 5C ). By combining this high resolution picture with structural variant pan-GWAS we identified that some members of this plasmid family carry tetracycline resistance and were able to accurately determine the tetM gene as the cause of resistance. As part of the Panaroo package, we include implementations of recently proposed pangenome evolution models, which are more appropriate than the more frequently used gene accumulation curves. We demonstrated the effectiveness of such methods through the analysis of the 51 major GPSCs where we observed an association between recombination rate and pangenome size ( Supplementary Figure 2 ). We also identified an association between pneumococcal clade invasiveness and gene gain rate. Panaroo is written in python (versions 3.6+) and is available under the open source MIT licence from https://github.com/gtonkinhill/panaroo . The code used to produce the analyses described above along with summary data is available from https://github.com/gtonkinhill/panaroo_manuscript . The raw GFF3, FASTA and all intermediate post-processing files are available from https://doi.org/10.5281/zenodo.3599800 . Taking gene annotation errors into account is vital to recover an accurate pangenome, something previous methods have struggled to do in a systematic manner. Panaroo uses gene adjacency in a population-graph to provide a fast method for pangenome analysis, which is robust to a wide range of error sources. In the future, we plan to further improve the computational performance of Panaroo to allow it to scale to datasets involving hundreds of thousands or millions of genomes. We will also extend the post-processing tools available to analyse the resulting pangenome graph. Methods Panaroo algorithm The Panaroo algorithm builds a graphical representation of the pangenome where nodes are genes and edges connect nodes if two genes appear adjacent to one another on at least one contig. The algorithm then uses this initial graph structure to perform a number of cleaning steps which correct for many of the problems encountered in genome annotation. Panaroo accepts annotated assemblies in GFF3 format as output by the popular annotation pipeline Prokka ( 26 ). Unlike similar pangenome software, Panaroo attempts to preserve the full global context of each gene in the graph. This is in contrast to other programs such as Roary ( 4 , 7 , 10 ) which uses only the local context surrounding genes to build the graph. Initial graph creation To first build the graph, Panaroo runs CD-HIT (v4.8.1) at a high sequence identity threshold (98%) ( 11 ). The resulting clusters are then either classified as non-paralogous gene clusters, if they contain at most one instance of each genome, or paralogous clusters if they contain more than one gene from any single genome. Initially, non-paralogous gene clusters are represented by a single node in the graph whilst paralogous clusters are split into a single node for every occurrence of that cluster in the dataset. For instance, if a paralogous gene appears twice in two genomes and once in another, the initial graph will contain five nodes representing that paralog. The graph is then built by connecting cluster nodes with edges between them if the two clusters appear adjacent to one another on any contig. Paralogous nodes are collapsed back into the maximum number of nodes in which those genes appear in a single genome using the global context of the graph. In the above example, this would result in the final graph having two instances of the paralog node. Contig Ends Fragmented assemblies can cause issues for gene annotation software, whereby genes are often misannotated near contig breaks ( 17 ). These spurious annotations appear as short paths of low support edges and nodes that end in a node of degree one that splits off from the main graph. To deal with this, Panaroo recursively removes nodes of degree one that are below a given support threshold as indicated in Figure 1 . Contamination Contigs originating from sample contamination are generally significantly diverged from the target species pangenome. Thus, contaminating contigs tend to appear as disconnected components from the main graph with low support. To remove these, Panaroo uses the same approach as described for contig ends to recursively delete low supported nodes with less than or equal to one degree (see Figure 1 ). This approach has the advantage of retaining rare genes which are present in the main graph whilst removing likely contaminants. Whilst this has in general been found to be very successful it can occasionally lead to rare plasmids being removed. We have found that the benefits of removing unwanted noise far exceed the small loss in sensitivity that this approach provides. However, we also provide three settings for the algorithm with the most sensitive retaining such rare calls which can be useful when one is interested in rare plasmids. Mistranslation Correction Many annotation algorithms rely on an initial training phase where their parameters are adapted to the dataset at hand ( 40 – 42 ). Often this training is performed separately on each genome. This is the case in the Prokka pipeline, which makes use of Prodigal to perform the initial gene annotation ( 26 , 40 ). This can result in an identical sequence being annotated differently in different genomes. To correct for this Panaroo checks genes that are within close proximity in the pangenome graph to determine if any are likely to be mistranslations, frame shift mutations, or pseudogenised gene copies by comparing their sequence at the nucleotide level. If two gene sequence matches at a high coverage and identity, typically 95% and 99% respectively a mistranslation is called and the gene node with the lower support is collapsed into the node with higher support. Collapse Gene Families Gene families diversify at different rates due to the influence of positive and purifying selection. This makes choosing a strict sequence identity threshold for defining orthologous clusters difficult. Most pangenome analysis software relies on either a pairwise sequence identity or BLAST e-value threshold. This reliance can lead to both over clustering, where separate gene families are incorrectly merged, and over splitting where a single gene family is incorrectly split into several smaller clusters. Many approaches attempt to deal with the former of these problems by utilising contextual information to split apart clusters that have different gene neighbourhoods ( 4 , 6 ). More recently, alternatives that make use of clustering at lower thresholds followed by more involved splitting techniques have been proposed ( 7 , 8 ). As an alternative to these approaches we extend the idea of using gene context to the over splitting problem. Panaroo utilises gene contextual information to collapse diverse gene families that have been incorrectly split into multiple clusters during the initial pangenome graph creation. Initial gene clusters that share a common neighbour in the graph are compared at a lower pairwise sequence threshold (default 70%). If they fall within this threshold the two nodes are collapsed and the resulting node is annotated to indicate it consists of a more diverse family. We have found that utilising this additional contextual information leads to more robust clusters. Identifying Missing Genes Previous pangenome clustering software tools are unable to identify missing annotations. Gene annotations can be lost due to variability in model training, fragmented assemblies and mis-assemblies. Panaroo remedies this issue by identifying pairs of nodes in the pangenome graph where one node is present in a genome and its neighbour is not. The potentially missing node is then searched for in the sequence surrounding the neighbouring node. If a match of sufficient coverage and identity is found, the graph is corrected to include an annotation for this missing gene in that genome. The alignment tool edlib (v1.3.4) is used to perform these searches which enables millions of checks in a reasonable time frame ( 22 ). Output To allow for simple integration with existing bioinformatics pipelines Panaroo outputs many of the same file formats as Roary. This includes the same gene presence/absence file format as well as core and accessory genome alignments created using either MAFFT, Prank or Clustal Omega ( 43 – 45 ). In addition, Panaroo outputs a fully annotated pangenome graph in GML format for easy viewing in Cytoscape ( 23 ). Each gene node and edge is annotated with the genomes to which it belongs as well as the gene annotations given by Prokka, gene sequence and whether or not the node has been classified as being a paralog. This graph format provides a valuable tool for visually inspecting the results of Panaroo. As Panaroo attempts to build the full pangenome graph rather than only using local context, this graph is able to provide insights hidden in many of the outputs of similar tools such as Roary ( 4 ). Structural Variation As Panaroo constructs the full pangenome graph, it is possible to go beyond gene presence/absence and look at the underlying structure of the graph. To facilitate the analysis of this structure, Panaroo generates a gene triplet presence/absence matrix, indicating when three genes are present in a path along a genome. This is demonstrated in Figure 5a and the resulting presence/absence matrix can be used in association studies to investigate differences in rearrangements between genomes in a species. The context of each triplet can then be analysed by looking at the full graph in Cytoscape. Pre- and Post-Processing The Panaroo pipeline comes packaged with a number of pre and post processing scripts for analysing pangenomes. We have included a wrapper for the popular Mash and Mash screen algorithms which generates diagnostic plots for quality control prior to running the Panaroo pipeline ( 46 , 47 ). These plots include a Multidimensional scaling (MDS) projection of pairwise Mash distances, interactive bar charts to investigate contamination, as well as gene and contig counts. In addition we have included post processing scripts for estimating gene gain and loss rates using both the infinitely many genes (IMG) model ( 37 , 48 ) and the finitely many genes (FMG) model of ( 8 , 48 ). These are preferable to the common practice of plotting accumulation curves to indicate pangenome size as they account for the diversity and timescale of the sampled isolates. This allows for a clearer comparison between the pangenomes of different species or clades. Panaroo also includes an implementation of the Spydrpick algorithm which allows for the identification of gene presence/absence patterns that are either highly correlated or anti-correlated whilst accounting for population structure ( 49 ). Such correlations can indicate that the genes involved have epistatic effects on fitness or that their presence or absence is a result of similar selective pressures. Finally, the output of Panaroo seamlessly interfaces with pyseer (v1.3.0), a bacterial GWAS package ( 24 , 50 ). pyseer includes a wide range of methods for performing association studies allowing for phenotypic associations to be found with gene or structural presence/absence patterns. Simulation and Comparison with Previous Methods Using the E. coli reference genome ASM584v2 as a starting point, we simulated variation in the accessory genome by varying the rates of gene gain and loss using a phylogeny simulated with the Kingman coalescent in dendropy (v4.4.0) ( 51 ). In addition, we simulated various degrees of sequence variation by varying the within gene codon substitution rate. Three replicate datasets of 100 sampled genomes were created for each set of model parameters outlined in Supplementary Table 1 . Realistic sequence assemblies were generated by first simulating NGS sequencing reads using either Mason (v2.0.9) or ART (v2.5.8) ( 30 , 32 ). These were assembled using SPAdes (v3.13.0) ( 31 ). The resulting assemblies were annotated using Prokka (v1.13.3) with a custom BLAST database containing the correctly assigned proteins from the simulation prior to assembly. This extensive simulation pipeline provided more realistic data and included many of the sources of error encountered in pangenome analyses. To simulate the problems that fragmentation can bring to the analysis of pangenomes we also simulated a fragmented assembly by breaking the simulated whole genomes into fragments prior to simulating the NGS reads. This resulted in highly fragmented final assemblies. Contamination was also simulated by randomly adding 10kb segments of the S. epidermidis reference genome ASM764v1 a common lab contaminant to the simulated genomes prior to NGS simulation. These segments were added by sampling from a Poisson distribution with mean 1. The gene presence/absence matrix was then generated for PanX (v1.5.1), Roary (v1.007002), PIRATE (v1.0), COGsoft (v201204) and Panaroo (v1.0.0). These were compared with the simulated matrix and the number of inferred orthologous clusters that contained an error was counted and is shown in Figure 3 . SOFTWARE AVAILABILITY Source code available from: https://github.com/gtonkinhill/panaroo Code for reproducing figures from: https://github.com/gtonkinhill/panaroo_manuscript Archived data for replication at time of publication to bioRxiv: https://doi.org/10.5281/zenodo.3599800 FUNDING Wellcome Trust [206194 to S.D.B]; Wellcome Trust PhD Scholarship Grant [204016 to G.T.H]; ERC [742158 to J.C.]. J.A.L. is funded by MR/R015600/1. This award is jointly funded by the UK Medical Research Council (MRC) and the UK Department for International Development (DFID) under the MRC/DFID Concordat agreement and is also part of the EDCTP2 programme supported by the European Union. Supplementary Figures View this table: View inline View popup Download powerpoint Supplementary Table 1: Parameters used to simulate pangenomes using the Infinitely Many Genes model. View this table: View inline View popup Download powerpoint Supplementary Table 2: Significant pan-GWAS results for antibiotic resistance in the EuroGASP collection View this table: View inline View popup Supplementary Table 3: Significant sv-pan-GWAS results for antibiotic resistance in the EuroGASP collection Download figure Open in new tab Supplementary Figure 1: A comparison of the pipelines used by different pangenome analysis tools. Download figure Open in new tab Supplementary Figure 2: Inferred parameters for the Finitely Many Genes model for each of the 51 clusters of the global pneumococcal sequencing project for which reliable dated phylogenies could be inferred. The log odds ratio of invasive disease, number of unique serotypes and recombination rate given in ( 21 ) are also plotted for each cluster. Download figure Open in new tab Supplementary Figure 3: Multi Dimensional Scaling (MDS) plot of pairwise mash distances between isolates in the global K. penumoniae dataset. This plot is produced by the Panaroo quality control script. Download figure Open in new tab Supplementary Figure 4: Boxplot produced by the Panaroo quality control script indicating the number of contigs in each of the K. pneumoniae assemblies. Download figure Open in new tab Supplementary Figure 5: Boxplot produced by the Panaroo quality control script indicating the number of gene annotations in each of the K. pneumoniae assemblies. ACKNOWLEDGEMENTS Many thanks to Lauren Bell for designing the Panaroo logo and to the members of teams 81 and 284 at the Wellcome Sanger Institute for helpful comments and testing. Footnotes https://github.com/gtonkinhill/panaroo/ https://github.com/gtonkinhill/panaroo_manuscript https://doi.org/10.5281/zenodo.3599800 Bibliography 1. ↵ D S Guttman and D E Dykhuizen . Clonal divergence in escherichia coli as a result of recombination, not mutation . Science , 266 ( 5189 ): 1380 – 1383 , November 1994 . ISSN 0036-8075 . doi: 10.1126/science.7973728 . OpenUrl Abstract / FREE Full Text 2. ↵ Kathryn E Holt , Heiman Wertheim , Ruth N Zadoks , Stephen Baker , Chris A Whitehouse , David Dance , Adam Jenney , Thomas R Connor , Li Yang Hsu , Juliёtte Severin , Sylvain Brisse , Hanwei Cao , Jonathan Wilksch , Claire Gorrie , Mark B Schultz , David J Edwards , Kinh Van Nguyen , Trung Vu Nguyen , Trinh Tuyet Dao , Martijn Mensink , Vien Le Minh , Nguyen Thi Khanh Nhu , Constance Schultsz , Kuntaman Kuntaman , Paul N Newton , Catrin E Moore , Richard A Strugnell , and Nicholas R Thomson . Genomic analysis of diversity, population structure, virulence, and antimicrobial resistance in klebsiella pneumoniae, an urgent threat to public health . Proc. Natl. Acad. Sci. U. S. A. , 112 ( 27 ): E3574 – 81 , July 2015 . ISSN 0027-8424,1091-6490 . doi: 10.1073/pnas.1501049112 . OpenUrl Abstract / FREE Full Text 3. ↵ Duccio Medini , Claudio Donati , Hervé Tettelin , Vega Masignani , and Rino Rappuoli . The microbial pan-genome . Curr. Opin. Genet. Dev ., 15 ( 6 ): 589 – 594 , December 2005 . ISSN 0959-437X . doi: 10.1016/j.gde.2005.09.006 . OpenUrl CrossRef PubMed Web of Science 4. ↵ Andrew J Page , Carla A Cummins , Martin Hunt , Vanessa K Wong , Sandra Reuter , Matthew T G Holden , Maria Fookes , Daniel Falush , Jacqueline A Keane , and Julian Parkhill . Roary: rapid large-scale prokaryote pan genome analysis . Bioinformatics , 31 ( 22 ): 3691 – 3693 , November 2015 . ISSN 1367-4803, 1367-4811 . doi: 10.1093/bioinformatics/btv421 . OpenUrl CrossRef PubMed 5. Li Li , Christian J Stoeckert , Jr . , and David S Roos . OrthoMCL: identification of ortholog groups for eukaryotic genomes . Genome Res ., 13 ( 9 ): 2178 – 2189 , September 2003 . ISSN 1088-9051 . doi: 10.1101/gr.1224503 . OpenUrl Abstract / FREE Full Text 6. ↵ Derrick E Fouts , Lauren Brinkac , Erin Beck , Jason Inman , and Granger Sutton . PanOCT: automated clustering of orthologs using conserved gene neighborhood for pan-genomic analysis of bacterial strains and closely related species . Nucleic Acids Res. , 40 ( 22 ): e172 – e172 , December 2012 . ISSN 0305-1048 . doi: 10.1093/nar/gks757 . OpenUrl CrossRef PubMed 7. ↵ Sion C Bayliss , Harry A Thorpe , Nicola M Coyle , Samuel K Sheppard , and Edward J Feil . PIRATE: A fast and scalable pangenomics toolbox for clustering diverged orthologues in bacteria . April 2019 . 8. ↵ Wei Ding , Franz Baumdicker , and Richard A Neher . panx: pan-genome analysis and exploration . Nucleic Acids Res ., 46 ( 1 ): e5 , January 2018 . ISSN 0305-1048, 1362-4962 . doi: 10.1093/nar/gkx977 . OpenUrl CrossRef 9. Yongbing Zhao , Jiayan Wu , Junhui Yang , Shixiang Sun , Jingfa Xiao , and Jun Yu . PGAP: pan-genomes analysis pipeline . Bioinformatics , 28 ( 3 ): 416 – 418 , February 2012 . ISSN 1367-4803, 1367-4811 . doi: 10.1093/bioinformatics/btr655 . OpenUrl CrossRef PubMed Web of Science 10. ↵ David M Kristensen , Lavanya Kannan , Michael K Coleman , Yuri I Wolf , Alexander Sorokin , Eugene V Koonin , and Arcady Mushegian . A low-polynomial algorithm for assembling clusters of orthologous groups from intergenomic symmetric best matches . Bioinformatics , 26 ( 12 ): 1481 – 1487 , June 2010 . ISSN 1367-4803, 1367-4811 . doi: 10.1093/bioinformatics/btq229 . OpenUrl CrossRef PubMed Web of Science 11. ↵ Weizhong Li and Adam Godzik . Cd-hit: a fast program for clustering and comparing large sets of protein or nucleotide sequences . Bioinformatics , 22 ( 13 ): 1658 – 1659 , July 2006 . ISSN 1367-4803 . doi: 10.1093/bioinformatics/btl158 . OpenUrl CrossRef PubMed Web of Science 12. Stephen F Altschul , Thomas L Madden , Alejandro A Schäffer , Jinghui Zhang , Zheng Zhang , Webb Miller , and David J Lipman . Gapped BLAST and PSI-BLAST: a new generation of protein database search programs . Nucleic Acids Res ., 25 ( 17 ): 3389 – 3402 , September 1997 . ISSN 0305-1048,1362-4962 . doi: 10.1093/nar/25.17.3389 . OpenUrl CrossRef PubMed Web of Science 13. ↵ Benjamin Buchfink , Chao Xie , and Daniel H Huson . Fast and sensitive protein alignment using DIAMOND . Nat. Methods , 12 ( 1 ): 59 – 60 , January 2015 . ISSN 1548-7091,1548-7105 . doi: 10.1038/nmeth.3176 . OpenUrl CrossRef PubMed 14. ↵ A J Enright , S Van Dongen , and C A Ouzounis . An efficient algorithm for large-scale detection of protein families . Nucleic Acids Res. , 30 ( 7 ): 1575 – 1584 , April 2002 . ISSN 0305-1048, 1362-4962 . doi: 10.1093/nar/30.7.1575 . OpenUrl CrossRef PubMed Web of Science 15. ↵ R L Tatusov , E V Koonin , and D J Lipman . A genomic perspective on protein families . Science , 278 ( 5338 ): 631 – 637 , October 1997 . ISSN 0036-8075 . doi: 10.1126/science.278.5338.631 . OpenUrl Abstract / FREE Full Text 16. ↵ Steven L Salzberg . Next-generation genome annotation: we still struggle to get it right . Genome Biol ., 20 ( 1 ): 92 , May 2019 . ISSN 1465-6906, 1474-760X . doi: 10.1186/s13059-019-1715-2 . OpenUrl CrossRef 17. ↵ James F Denton , Jose Lugo-Martinez , Abraham E Tucker , Daniel R Schrider , Wesley C Warren , and Matthew W Hahn . Extensive error in the number of genes inferred from draft genome assemblies . PLoS Comput. Biol ., 10 ( 12 ): e1003998 , December 2014 . ISSN 1553-734X, 1553-7358 . doi: 10.1371/journal.pcbi.1003998 . OpenUrl CrossRef PubMed 18. ↵ Jukka Corander , Christophe Fraser , Michael U Gutmann , Brian Arnold , William P Hanage , Stephen D Bentley , Marc Lipsitch , and Nicholas J Croucher . Frequency-dependent selection in vaccine-associated pneumococcal population dynamics . Nature Ecology & Evolution , page 1 , October 2017 . ISSN 2397-334X, 2397-334X . doi: 10.1038/s41559-017-0337-x . OpenUrl CrossRef 19. ↵ Alan McNally , Teemu Kallonen , Christopher Connor , Khalil Abudahab , David M Aanensen , Carolyne Horner , Sharon J Peacock , Julian Parkhill , Nicholas J Croucher , and Jukka Corander . Diversification of colonization factors in a Multidrug-Resistant escherichia coli lineage evolving under negative Frequency-Dependent selection . MBio , 10 ( 2 ), April 2019 . ISSN 2150-7511 . doi: 10.1128/mBio.00644-19 . OpenUrl Abstract / FREE Full Text 20. ↵ Franz Baumdicker , Wolfgang R Hess , and Peter Pfaffelhuber . The infinitely many genes model for the distributed genome of bacteria . Genome Biol. Evol ., 4 ( 4 ): 443 – 456 , February 2012 . ISSN 1759-6653 . doi: 10.1093/gbe/evs016 . OpenUrl CrossRef PubMed 21. ↵ Rebecca A Gladstone , Stephanie W Lo , John A Lees , Nicholas J Croucher , Andries J van Tonder , Jukka Corander , Andrew J Page , Pekka Marttinen , Leon J Bentley , Theresa J Ochoa , Pak Leung Ho , Mignon du Plessis , Jennifer E Cornick , Brenda Kwambana-Adams , Rachel Benisty , Susan A Nzenze , Shabir A Madhi , Paulina A Hawkins , Dean B Everett , Martin Antonio , Ron Dagan , Keith P Klugman , Anne von Gottberg , Lesley McGee , Robert F Breiman , and Stephen D Bentley . International genomic definition of pneumococcal lineages, to contextualise disease, antibiotic resistance and vaccine impact . EBioMedicine , 43 : 338 – 346 , May 2019 . ISSN 2352-3964 . doi: 10.1016/j.ebiom.2019.04.021 . OpenUrl CrossRef 22. ↵ Martin Šošić and Mile Šikić . Edlib: a C/C++ library for fast, exact sequence alignment using edit distance . Bioinformatics , 33 ( 9 ): 1394 – 1395 , 2017 . ISSN 1367-4803 . OpenUrl CrossRef 23. ↵ Paul Shannon , Andrew Markiel , Owen Ozier , Nitin S Baliga , Jonathan T Wang , Daniel Ramage , Nada Amin , Benno Schwikowski , and Trey Ideker . Cytoscape: a software environment for integrated models of biomolecular interaction networks . Genome Res ., 13 ( 11 ): 2498 – 2504 , November 2003 . ISSN 1088-9051 . doi: 10.1101/gr.1239303 . OpenUrl Abstract / FREE Full Text 24. ↵ John A Lees , Marco Galardini , Stephen D Bentley , Jeffrey N Weiser , Jukka Corander , and Oliver Stegle . pyseer: a comprehensive tool for microbial pangenome-wide association studies . Bioinformatics , July 2018 . ISSN 1367-4803 . doi: 10.1093/bioinformatics/bty539 . OpenUrl CrossRef 25. ↵ Nicola Casali , Agnieszka Broda , Simon R Harris , Julian Parkhill , Timothy Brown , and Francis Drobniewski . Whole genome sequence analysis of a large Isoniazid-Resistant tuberculosis outbreak in london: A retrospective observational study . PLoS Med ., 13 ( 10 ): e1002137 , October 2016 . ISSN 1549-1277,1549-1676 . doi: 10.1371/journal.pmed.1002137 . OpenUrl CrossRef 26. ↵ Torsten Seemann . Prokka: rapid prokaryotic genome annotation . Bioinformatics , 30 ( 14 ): 2068 – 2069 , July 2014 . ISSN 1367-4803,1367-4811 . doi: 10.1093/bioinformatics/btu153 . OpenUrl CrossRef PubMed Web of Science 27. ↵ Maxime Godfroid , Tal Dagan , and Anne Kupczok . Recombination signal in mycobacterium tuberculosis stems from reference-guided assemblies and alignment artefacts . Genome Biol. Evol. , 10 ( 8 ): 1920 – 1926 , August 2018 . ISSN 1759-6653 . doi: 10.1093/gbe/evy143 . OpenUrl CrossRef 28. ↵ S T Cole , R Brosch , J Parkhill , T Garnier , C Churcher , D Harris , S V Gordon , K Eiglmeier , S Gas , C E Barry , 3rd . , F Tekaia , K Badcock , D Basham , D Brown , T Chillingworth , R Connor , R Davies , K Devlin , T Feltwell , S Gentles , N Hamlin , S Holroyd , T Hornsby , K Jagels , A Krogh , J McLean , S Moule , L Murphy , K Oliver , J Osborne , M A Quail , M A Rajandream , J Rogers , S Rutter , K Seeger , J Skelton , R Squares , S Squares , J E Sulston , K Taylor , S Whitehead , and B G Barrell . Deciphering the biology of mycobacterium tuberculosis from the complete genome sequence . Nature , 393 ( 6685 ): 537 – 544 , June 1998 . ISSN 0028-0836 . doi: 10.1038/31159 . OpenUrl CrossRef PubMed Web of Science 29. ↵ R Eric Collins and Paul G Higgs . Testing the infinitely many genes model for the evolution of the bacterial core genome and pangenome . Mol. Biol. Evol ., 29 ( 11 ): 3413 – 3425 , November 2012 . ISSN 0737-4038 . doi: 10.1093/molbev/mss163 . OpenUrl CrossRef PubMed Web of Science 30. ↵ Weichun Huang , Leping Li , Jason R Myers , and Gabor T Marth . ART: a next-generation sequencing read simulator . Bioinformatsics , 28 ( 4 ): 593 – 594 , February 2012 . ISSN 1367-4803, 1367-4811 . doi: 10.1093/bioinformatics/btr708 . OpenUrl CrossRef PubMed Web of Science 31. ↵ Anton Bankevich , Sergey Nurk , Dmitry Antipov , Alexey A Gurevich , Mikhail Dvorkin , Alexander S Kulikov , Valery M Lesin , Sergey I Nikolenko , Son Pham , Andrey D Prjibelski , Alexey V Pyshkin , Alexander V Sirotkin , Nikolay Vyahhi , Glenn Tesler , Max A Alekseyev , and Pavel A Pevzner . SPAdes: a new genome assembly algorithm and its applications to single-cell sequencing . J. Comput. Biol ., 19 ( 5 ): 455 – 477 , May 2012 . ISSN 1066-5277, 1557-8666 . doi: 10.1089/cmb.2012.0021.32 . OpenUrl CrossRef PubMed 32. ↵ Manuel Holtgrewe . Mason: a read simulator for second generation sequencing data . Technical Report TR-B-10-06, Institut für Mathematik und Informatik , Freie Universität Berlin , 2010 . 33. ↵ Ola Brynildsrud , Jon Bohlin , Lonneke Scheffer , and Vegard Eldholm . Rapid scoring of genes in microbial pan-genome-wide association studies with scoary . Genome Biol ., 17 ( 1 ): 238 , November 2016 . ISSN 1465-6906 . doi: 10.1186/s13059-016-1108-8 . OpenUrl CrossRef PubMed 34. ↵ Simon R Harris , Michelle J Cole , Gianfranco Spiteri , Leonor Sánchez-Busó , Daniel Golparian , Susanne Jacobsson , Richard Goater , Khalil Abudahab , Corin A Yeats , Beatrice Bercot , et al. Public health surveillance of multidrug-resistant clones of neisseria gonorrhoeae in europe: a genomic survey . The Lancet Infectious diseases , 18 ( 7 ): 758 – 768 , 2018 . OpenUrl CrossRef 35. ↵ Daniel N Wilson . The abc of ribosome-related antibiotic resistance . MBio , 7 ( 3 ): e00598 – 16 , 2016 . OpenUrl CrossRef PubMed 36. ↵ Zijian Gong , Wei Lai , Min Liu , Zhengshuang Hua , Yayin Sun , Qingfang Xu , Yue Xia , Yue Zhao , and Xiaoyuan Xie . Novel genes related to ceftriaxone resistance found among ceftriaxone-resistant neisseria gonorrhoeae strains selected in vitro . Antimicrobial agents and chemotherapy , 60 ( 4 ): 2043 – 2051 , 2016 . OpenUrl Abstract / FREE Full Text 37. ↵ Franz Baumdicker and Peter Pfaffelhuber . The infinitely many genes model with horizontal gene transfer . Electron. J. Probab ., 19 , 2014 . ISSN 1083-6489 . doi: 10.1214/EJP.v19-2642 . OpenUrl CrossRef 38. ↵ Nicholas J Croucher , Paul G Coupland , Abbie E Stevenson , Alanna Callendrello , Stephen D Bentley , and William P Hanage . Diversification of bacterial genome content through distinct mechanisms over different timescales . Nat. Commun ., 5 : 5471 , November 2014 . ISSN 2041-1723 . doi: 10.1038/ncomms6471 . OpenUrl CrossRef PubMed 39. ↵ Nancy A Moran . Microbial minimalism: genome reduction in bacterial pathogens . Cell , 108 ( 5 ): 583 – 586 , March 2002 . ISSN 0092-8674 . doi: 10.1016/s0092-8674(02)00665-7 . OpenUrl CrossRef PubMed Web of Science 40. ↵ Doug Hyatt , Gwo-Liang Chen , Philip F Locascio , Miriam L Land , Frank W Larimer , and Loren J Hauser . Prodigal: prokaryotic gene recognition and translation initiation site identification . BMC Bioinformatics , 11 : 119 , March 2010 . ISSN 1471-2105 . doi: 10.1186/1471-2105-11-119 . OpenUrl CrossRef PubMed 41. A L Delcher , D Harmon , S Kasif , O White , and S L Salzberg . Improved microbial gene identification with GLIMMER . Nucleic Acids Res ., 27 ( 23 ): 4636 – 4641 , December 1999 . ISSN 0305-1048 . doi: 10.1093/nar/27.23.4636 . OpenUrl CrossRef PubMed Web of Science 42. ↵ Arthur L Delcher , KirstenA Bratke , Edwin C Powers , and Steven L Salzberg . Identifying bacterial genes and endosymbiont DNA with glimmer . Bioinformatics , 23 ( 6 ): 673 – 679 , March 2007 . ISSN 1367-4803,1367-4811 . doi: 10.1093/bioinformatics/btm009 . OpenUrl CrossRef PubMed Web of Science 43. ↵ Kazutaka Katoh , Kazuharu Misawa , Kei-Ichi Kuma , and Takashi Miyata . MAFFT: a novel methodfor rapid multiple sequence alignment based on fastfouriertransform . Nucleic Acids Res ., 30 ( 14 ): 3059 – 3066 , July 2002 . ISSN 0305-1048,1362-4962 . doi: 10.1093/nar/gkf436 . OpenUrl CrossRef PubMed Web of Science 44. Ari Löytynoja . Phylogeny-aware alignment with PRANK . Methods Mol. Biol ., 1079 : 155 – 170 , 2014 . ISSN 1064-3745,1940-6029 . doi: 10.1007/978-1-62703-646-7\_10. OpenUrl CrossRef PubMed Web of Science 45. ↵ Fabian Sievers , Andreas Wilm , David Dineen , Toby J Gibson , Kevin Karplus , Weizhong Li , Rodrigo Lopez , Hamish McWilliam , Michael Remmert , Johannes Söding , and Others . Fast, scalable generation of high-quality protein multiple sequence alignments using clustal omega . Mol. Syst. Biol ., 7 ( 1 ), 2011 . 46. ↵ Brian D Ondov , Todd J Treangen , Páll Melsted , Adam B Mallonee , Nicholas H Bergman , Sergey Koren , and Adam M Phillippy . Mash: fast genome and metagenome distance estimation using MinHash . Genome Biol ., 17 ( 1 ): 132 , June 2016 . ISSN 1465-6906 . doi: 10.1186/s13059-016-0997-x . OpenUrl CrossRef PubMed 47. ↵ Brian D Ondov , Gabriel J Starrett , Anna Sappington , Aleksandra Kostic , Sergey Koren , Christopher B Buck , and Adam M Phillippy . Mash screen: High-throughput sequence containment estimation for genome discovery . 48. ↵ Seyed Alireza Zamani-Dahaj , Mohamed Okasha , Jakub Kosakowski , and Paul G Higgs . Estimating the frequency of horizontal gene transfer using phylogenetic models of gene gain and loss . Mol. Biol. Evol ., 33 ( 7 ): 1843 – 1857 , July 2016 . ISSN 0737-4038,1537-1719 . doi: 10.1093/molbev/msw062 . OpenUrl CrossRef PubMed 49. ↵ Johan Pensar , Santeri Puranen , Brian Arnold , Neil MacAlasdair , Juri Kuronen , Gerry Tonkin-Hill , Maiju Pesonen , Yingying Xu , Aleksi Sipola , Leonor Sánchez-Busó , John A Lees , Claire Chewapreecha , Stephen D Bentley , Simon R Harris , Julian Parkhill , Nicholas J Croucher , and Jukka Corander . Genome-wide epistasis and co-selection study using mutual information . Nucleic Acids Res ., July 2019 . ISSN 0305-1048, 1362-4962 . doi: 10.1093/nar/gkz656 . OpenUrl CrossRef 50. ↵ John A Lees , Minna Vehkala , Niko Välimäki , Simon R Harris , Claire Chewapreecha , Nicholas J Croucher , Pekka Marttinen , Mark R Davies , Andrew C Steer , Steven Y C Tong , Antti Honkela , Julian Parkhill , Stephen D Bentley , and Jukka Corander . Sequence element enrichment analysis to determine the genetic basis of bacterial phenotypes . Nat. Commun ., 7 : 12797 , September 2016 . ISSN 2041-1723 . doi: 10.1038/ncomms12797 . OpenUrl CrossRef PubMed 51. ↵ Jeet Sukumaran and Mark T Holder . DendroPy: a python library for phylogenetic computing . Bioinformatics , 26 ( 12 ): 1569 – 1571 , June 2010 . ISSN 1367-4803, 1367-4811 . doi: 10.1093/bioinformatics/btq228 . OpenUrl CrossRef PubMed Web of Science Back to top Previous Next Posted January 28, 2020. Download PDF Data/Code Email Thank you for your interest in spreading the word about bioRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following Producing Polished Prokaryotic Pangenomes with the Panaroo Pipeline Message Subject (Your Name) has forwarded a page to you from bioRxiv Message Body (Your Name) thought you would like to see this page from the bioRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share Producing Polished Prokaryotic Pangenomes with the Panaroo Pipeline Gerry Tonkin-Hill , Neil MacAlasdair , Christopher Ruis , Aaron Weimann , Gal Horesh , John A. Lees , Rebecca A Gladstone , Stephanie Lo , Christopher Beaudoin , R Andrés Floto , Simon D.W. Frost , Jukka Corander , Stephen D. Bentley , Julian Parkhill bioRxiv 2020.01.28.922989; doi: https://doi.org/10.1101/2020.01.28.922989 Share This Article: Copy Citation Tools Producing Polished Prokaryotic Pangenomes with the Panaroo Pipeline Gerry Tonkin-Hill , Neil MacAlasdair , Christopher Ruis , Aaron Weimann , Gal Horesh , John A. Lees , Rebecca A Gladstone , Stephanie Lo , Christopher Beaudoin , R Andrés Floto , Simon D.W. Frost , Jukka Corander , Stephen D. Bentley , Julian Parkhill bioRxiv 2020.01.28.922989; doi: https://doi.org/10.1101/2020.01.28.922989 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Genomics Subject Areas All Articles Animal Behavior and Cognition (7837) Biochemistry (18321) Bioengineering (14499) Bioinformatics (43346) Biophysics (22087) Cancer Biology (19197) Cell Biology (26324) Clinical Trials (138) Developmental Biology (13709) Ecology (20518) Epidemiology (2067) Evolutionary Biology (24974) Genetics (15915) Genomics (23110) Immunology (18310) Microbiology (41570) Molecular Biology (17633) Neuroscience (91404) Paleontology (683) Pathology (2927) Pharmacology and Toxicology (4976) Physiology (7924) Plant Biology (15602) Scientific Communication and Education (2074) Synthetic Biology (4449) Systems Biology (10048) Zoology (2331) window.__CF$cv$params={r:'a233caf56c0c253d',t:'MTc4NTQwODUyNQ==',u:'019fb2a4165c7c00ba82b8835fcd4cf7',ut:'8BKGsNZ5PW9HH2kzpe12o4mu5CAWZ061.pH.VcHKYyg-1785408525-1.2.1.1-dgl96OBSN2pesdqSKvKJePQ5xARpvkWpxhPtXgiJFWZ9PC471INcCIfBUcObylWL9zlmR0PjnoCK3YJ7sk9ibXjesFVFX2jPKSAG1f9Y0Zk',i:60};(function(){if(!document.body)return;var s=document.createElement('script');s.src='/cdn-cgi/challenge-platform/scripts/precursor/main.js';document.head.appendChild(s);})();
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.