- Open Access
MICRA: an automatic pipeline for fast characterization of microbial genomes from high-throughput sequencing data
- Ségolène Caboche1, 3Email authorView ORCID ID profile,
- Gaël Even2, 3,
- Alexandre Loywick2, 3,
- Christophe Audebert†2, 3 and
- David Hot†1, 3
© The Author(s). 2017
Received: 26 June 2017
Accepted: 30 November 2017
Published: 19 December 2017
The increase in available sequence data has advanced the field of microbiology; however, making sense of these data without bioinformatics skills is still problematic. We describe MICRA, an automatic pipeline, available as a web interface, for microbial identification and characterization through reads analysis. MICRA uses iterative mapping against reference genomes to identify genes and variations. Additional modules allow prediction of antibiotic susceptibility and resistance and comparing the results of several samples. MICRA is fast, producing few false-positive annotations and variant calls compared to current methods, making it a tool of great interest for fully exploiting sequencing data.
High-throughput sequencing (HTS) technologies have emerged as a cost-effective and convenient approach for addressing many microbiological questions, drastically transforming this field. Having access to complete genomic information has revolutionized fundamental research in microbiology, allowing, for example, the development of novel antimicrobial compounds and vaccines . HTS also enables new approaches for clinical applications, providing novel methods for genome-based diagnosis  and thus for treatment of infectious diseases  and outbreak follow-up . The launch of second generation benchtop sequencers, cheaper platforms with performance that is adequate in terms of throughput for investigating microbial genomes, has contributed to this revolution in microbiology, and the coming third generation of sequencers should accelerate this. The Food and Drug Administration (FDA) is developing concepts for validation of HTS tests for infectious disease diagnostics and the detection of antimicrobial resistance and virulence markers , representing a milestone for HTS-based diagnostics. However, to be implemented in laboratories, standardization, optimization, and validation assays must be conducted for both the technical aspects and the bioinformatics analyses.
Despite the availability of a huge number of tools, analyzing HTS data can be challenging for fundamental and clinical research. The constant evolution of the technologies and algorithms result in a lack of standardized procedures for the analysis of HTS . In addition, several tools have to be used successively for complete analysis, which is a difficult task without bioinformatics support. Only a few complete pipelines exist and most of them are only for pathogen identification. The term “identification” has to be distinguished from the term “characterization”. The aim of identification is to determine the strains, whereas the characterization of microbial genomes is an in-depth study to highlight genetic features, including gene transfer or infra-specific variation. A fast and automatic tool offering an easy-to-use interface and readable results for the characterization of microbial genomes could be of great interest for time-effective, full exploitation of HTS data.
Here we describe MICRA, for Microbial Identification and Characterization through Reads Analysis. The originality of MICRA lies in the way it exploits the increasing number of sequenced microbial genomes combined with efficient read mapping methods, rather than following the prevalent procedure of de novo assembly and sequence annotation. Big variations in sequencing depth—for example, if bacteria contain plasmids—could make the de novo assembly process difficult and result in a significant increase of the execution time. In MICRA, two mappers, a fast mapper and a robust mapper, are combined and a new adapted and fast variant caller specific for prokaryotes was developed, in order to be effective and to avoid any loss of data . MICRA is freely available as a web interface developed to be user-friendly for both clinicians and biologists . Parameters are optimized to offer the user an entirely automatic analysis, requiring only reads as input. For more specialized tasks, MICRA offers the possibility of customizable analyses by giving access to a lot of setting parameters. The outputs are directly readable and usable. MICRA was evaluated on several studies. All results show that MICRA is fast (around 10 minutes in most cases) and efficient and provides new insights for fundamental microbiology and for the study of circulating and emerging strains.
The MICRA pipeline
The pre-processing part, which is optional, allows read quality checking and trimming. The first module uses FastQC  to check the quality of reads. Cutadapt  is used in the second module for adapter and quality trimming. Detection and trimming of adapters can be done automatically (sequence adapters are identified from FastQC results) or from sequences provided by the user. The reads are trimmed according to quality (Q20 by default) and size (20 nucleotides by default) thresholds; these values can be changed.
The sequence identification part aims to identify the reference sequences which will then be used in the core part of MICRA. The user can choose either to provide their own list of reference sequences (using NCBI identifiers; circle 2 in Fig. 1) or to let MICRA automatically select the potential reference sequences from reads (circle 1 in Fig. 1). To identify reference genomes and/or plasmids, a subset of the reads is BLASTed against a database containing selected complete genome and/or plasmid sequences (see “Methods”). The sequences showing the greatest numbers of hits are kept in an ID list. The sequence identification strategy was validated using several bacterial strains and sequencing technologies (Additional file 1: part 1). The second module automatically downloads FASTA and GFF files from NCBI or a local server for each entry in the ID list.
The core pipeline part of MICRA, consisting of four modules, takes as inputs the GFF and FASTA files obtained from the previous part and the FASTQ file(s) containing reads. In the first module, the whole set of reads is mapped against all the reference genome sequences with a fast mapper, SNAP . Mapping metrics are returned for each reference sequence and the percentage of genome coverage value is used to identify the closest reference sequence. Then a robust mapper, SHRiMP2  for Ion Torrent reads and Bowtie2  for Illumina reads, is used with the whole set of reads against the closest reference genome, allowing the variant calls and a comparative list of annotations to be obtained (in CSV and FASTA format). For paired-end data, only the concordant pairs of reads are mapped in order to keep reads as pairs in the next steps. Home-made scripts were developed to compute the mapping metrics, the list of annotations, and to call variants from the SAM alignment file (see “Methods”). A SVG picture of the comparative annotations against the closest reference genome is also produced in this step using CGView . Each feature from the annotation file is then classified into five classes by MICRA: 1) absent (less than 10% covered), 2) present (more than 80% covered), 3) low complexity sequence (detected with DustMasker ), 4) partially present (coverage between 40 and 80% distributed among up to two blocks of conservation), 5) divergent (otherwise). When the user asks for plasmid processing, the same steps are performed leading to the identification and characterization of plasmids. In the third module, iterative mapping with the robust mapper is performed: the reads which are not mapped against the closest reference genome and plasmids are then iteratively mapped against the other reference genomes. This step produces consensus sequences built from the mapping (i.e., for consecutive covered positions in the reference sequence the consensus sequence is deduced from the reads) and the complete list of covered annotations. The reads that are still unmapped at the end of the iterative mapping steps are then used in the de novo assembly module. MIRA  is used for de novo assembly of Ion Torrent reads and SPAdes  for Illumina reads. Resulting contigs are then annotated by BLASTing them against the PATRIC CDS database . Sequences and annotations produced by the core part of MICRA can then be used in the post-analysis part.
The post-analysis part contains two independent modules. The comparison module allows the user to compare the annotations and/or the variant calls from several samples. A Venn diagram is produced to easily compare the different samples; the genes or variants from the different parts of the Venn diagram are also available. The second module aims to identify potential antibiotic susceptibility and resistance. Susceptibility and resistance genes for a given list of antibiotic drugs can be detected from the sequences produced by the core pipeline. The susceptibility genes are identified by BLASTing the sequences against a local version of DrugBank  and the resistance genes are identified by BLASTing the sequences against a modified version of the Antibiotic Resistance DataBase  (see “Methods”). A very easy to interpret table (in HTML format) summarizing the predicted susceptibility and resistance for each drug is returned, as well as the detailed BLAST results.
MICRA is publicly available at http://www.pegase-biosciences.com/MICRA. The web interface was developed to be intuitive and easy to use: only the FASTQ file containing reads and the indication of the sequencing technology used are required. However, the MICRA interface also offers the user many customizable parameters to fit different requirements and all the cutoffs used in MICRA can be adjusted. Results from MICRA are returned as a zip directory containing a user-friendly summary HTML file allowing easy navigation of the results. A detailed user guide describing the parameters and the generated result files is available on the website .
In order to validate the MICRA pipeline, we first used the well-studied genome of Escherichia coli str. K12 substr. DH10B under fully controlled conditions with real and simulated reads. Promising results were obtained and confirmed in two real context studies: a fundamental research case study with a strain of Bordetella pertussis (which has a genome with a high number of repeats) and a clinical case study with the data from a German outbreak caused by an unusual strain of Escherichia coli.
Formal validation of MICRA using Escherichia coli str. K12 substr. DH10B data
In order to test MICRA under fully controlled conditions, simulated reads were generated from a genome artificially mutated by creation of base variations, gene insertions, and deletions. The genome of E. coli str. K12 substr. DH10B was artificially mutated: 23,290 point mutations were randomly introduced along the genome sequence, two shiga toxin genes (Shiga toxin 2 subunit A and B) from E. coli O157:H7 str. Sakai were inserted, and finally the mdtL gene, implicated in chloramphenicol resistance, was deleted (see “Methods”). From this artificially mutated genome sequence, one million artificial reads with a mean length of 200 bp and mimicking Ion Torrent read characteristics were simulated using CuReSim  and paired-end (PE) Illumina reads of 100-bp length and DNA fragments with a mean size of 200 bp (standard deviation of 10) were simulated with ART  to obtain a theoretical sequencing depth around 40×. To mimic a plasmid transfer event, reads simulated from the pSFO157 plasmid to reach a theoretical mean sequencing-depth of 80× were added.
MICRA was used with the FASTQ file(s) containing the simulated reads. The E. coli str. K12 substr. DH10B genome (NCBI: CP000948.1) was identified as the closest reference genome, covered at 99.94% (99.971% for PE reads) with a mean depth of 42× (39.99× for PE reads). Observing the comparative annotations of K12-DH10B, only one coding sequence (CDS) was tagged as absent, corresponding to the artificially deleted gene mdtL. A total of 20,571 variant calls (20,834 for PE reads) were predicted and 20,558 (20,833 for PE reads) of these were correctly predicted, corresponding to a recall of 0.882 (0.894 for PE reads) and a precision of 0.999 (0.999 for PE reads). In order to validate our variant caller, these results were compared with the results produced by freebayes , an independent variant caller (see “Methods”): 20,153 (20,971 for PE reads) variants were predicted in around 5 minutes, leading to a recall of 0.864 (0.900 for PE reads) and a precision of 0.999 (0.999 for PE reads). These results prove that the in-house variant caller is efficient and fast.
The plasmid pSFO157 (NCBI: AF401292.1) was identified by MICRA with a coverage of 97.18% (98.20% for PE reads) and a mean depth of 78× (78× for PE reads), close to the theoretical expected sequencing depth. The comparative genomics results from the mapping against the pSFO157 plasmid showed that two CDSs (w0034 and w0076) were not covered. These two CDSs code for a duplicated IS30 transposase gene. This gene sequence is also present in the K12-DH10B genome, resulting in the mapping of the corresponding reads onto the genomic IS30 transposase sequence during the first step of the pipeline analysis and explaining the non-covered region in the plasmid sequence. The consensus sequence built from the mapping step produced six sequences (three with PE reads) from K12-DH10B and eight sequences (three with PE reads) from the pSFO157 plasmid. At the end of this step, 415 reads (1334 pairs) were still unmapped and used for de novo assembly, producing only one contig (one contig for PE reads) larger than 500 bp. For both single and paired-end read simulations, automatic annotation of the de novo generated contig identified CDSs, among which were the Shiga-like toxin II subunit A precursor and Shiga-like toxin II subunit B precursor. The de novo assembly step allows MICRA to detect the artificial horizontal transfer of the two shiga-toxin genes. The antibiotic susceptibility and resistance module highlighted two differences in comparison with the prediction from the K12-DH10B genome sequence: the artificial strain is predicted to be sensitive to chloramphenicol due to the deletion of the mdtL gene and to be tetracycline-resistant due to a sequence encoded in the artificially introduced pSFO157 plasmid.
In order to avoid simulation biases and confirm the previous results, the same experiment was carried out after changing the initial conditions: one million real Ion Torrent reads (to reach a mean depth of 40×) were used as input and the artificially mutated genome sequence was integrated among the reference genomes instead of the K12-DH10B genome. MICRA identified the K12-DH10B mutated genome as the closest reference with a coverage of 99.92% and a mean depth equal to 38×. The only CDSs not covered were shiga toxin subunit A and B, which is consistent with the fact that shiga toxin genes are not naturally present in the K12-DH10B genome. Out of the 22,741 total predictions, 22,733 mutations were correctly predicted, corresponding to a precision of 0.999 and a recall of 0.976 (0.999 and 0.938 respectively with freebayes). Better recall values were obtained with the real reads rather than with the simulated ones, certainly due to higher error rates in the simulated data . The mdtL gene, which was deleted in the mutated genome, was identified during the iterative mapping against the MG1655 genome (NCBI:NC_000913.3). The de novo assembly with the 11,944 remaining unmapped reads resulted in eight contigs greater than 500 bp corresponding to human sequences. The antibiotic susceptibility and resistance module used with these data showed a profile identical to the expected wild strain profile with chloramphenicol resistance mediated by the mdtL gene and tetracycline susceptibility.
MICRA was then assessed under real-life conditions and results were compared to external tools. A set of 2,290,055 reads with a mean length of 200 bp and a mean quality of Q28 from a 316 Ion Torrent run was used . First, MICRA was used with the entire set of reads and only the K12-DH10B genome (NCBI:CP000948.1) as reference sequence. This illustrates how variation between a mutant and its related wild-type strain can be identified. The reference genome was covered at 100% with a mean depth of 88×, producing a complete consensus sequence from the mapping step. Two variants were called by MICRA: one SNV of a T to a C at position 1,103,559 with a frequency of 90.14% and a depth of 96 reads at this position in an IS1 transposase (locus: ECDH10B_1059), implying an amino acid change from a tyrosine to a histidine; and one insertion of a T at position 4,272,971 with a frequency of 95.33% and a depth of 107 reads at this position. Sanger sequencing of these two regions was performed (see “Methods”). The insertion of a T at position 4,272,971 was confirmed, but the SNV was not. When the 200-bp sequence around the false positive SNV was searched for in the genome, eight repeated regions were identified. Seven of the eight repeats contained a C whereas one repeat contained a T. The mapper was not able to discriminate the reads in these regions and mapped them on the eight possible positions. In position 1,103,559, the real base is a T but the pipeline flagged a mutation to a C due to the multi-position mapped reads. De novo assembly of unmapped reads led to 26 contigs greater than 500 bp. Those sequences matched mainly with human repeated sequences.
Comparison of results obtained with MICRA, MIRA and IonGAP
MICRA with DH10B
MICRA without DH10B
Number of contigs > 500 bp
Genome fraction (%)
Number of Ns
Number of mismatches
Number of short indels
Number of long indels
Number of genes
4127 + 0 part
4019 + 7 part
3919 + 106 part
3927 + 95 part
Number of misassemblies
The first interesting difference is the runtime: more than 3 h were required to produce an assembly with de novo-based approaches whereas MICRA required around 10 minutes. With the reference genome, MICRA was able to reconstruct 100% of the genome. When the K12-DH10B genome was discarded, MICRA was still able to cover 97% of the genome sequence with 41 contigs covering 4019 complete and seven partial genes on the 4127 genes annotated in the K12-DH10B genome (NCBI:CP000948.1), with a reduced number of false positive mutations (73 mismatches and 22 indels). De novo assembly-based approaches produced at least four times more contigs than the MICRA approach (267 with MIRA and 197 with IonGAP), covering around 96.5% of the reference sequence and a lower number of covered genes. The number of errors is greater than the number obtained with MICRA, especially for indels. IonGAP used MIRA for the assembly steps, keeping only large contigs (>500 bp), so the results are close to the results obtained with MIRA only. MICRA sequences contained more Ns than the assembly-based methods due to the low coverage positions which are encoded by N in our method. The number of miss-assemblies was greater for MICRA and were mainly relocations. Relocation is a miss-assembly where the left flanking sequence aligns over 1 kbp away from the right flanking sequence on the reference, or they overlap by more than 1 kbp, and both flanking sequences align on the same chromosome. The MICRA pipeline used a reference genome to obtain consensus sequences and the order of the gene on the reference genome can differ from the sequenced genome, producing a relocation event in this evaluation. In addition to the assembly step, IonGAP uses a comparative genomics module and a module for bacterial classification and annotation, producing some results directly comparable with the MICRA results. IonGAP contains a variant caller using raw reads and requiring a reference genome, here K12-DH10B, making this step comparable to the MICRA results with the reference genome. Two mutations were detected with MICRA, one true positive and one false positive. With IonGAP, 2684 mutations were predicted, of which 18 with genotype confidence equal to or greater than 10 could be considered as significant. Among the 18 mutations, 17 were tested by Sanger sequencing and proved to be false positives, and the true positive mutation, the insertion of a T at position 4,272,971, was not identified. No plasmid sequences were present in the sequencing sample. MICRA predicted no plasmids but IonGAP returned 260 BLAST hits for plasmid identification.
A fundamental research case study: the Pillemer strain of Bordetella pertussis
Bordetella pertussis is a pathogen restricted to humans. It is the causative agent of whooping cough. In 1954, the first acellular vaccine against pertussis was introduced by Louis Pillemer using the strain which was named after him, Pillemer (or P134). Ten years later the use of this strain as a vaccine was abandoned because of toxicity problems and it was replaced by whole cell vaccines. The genomic characteristics of the Pillemer strain have only been superficially investigated, mainly using PFGE (Pulsed-field gel electrophoresis) profiles for comparison to other circulating or vaccinal strains in neighbor-joining classification studies . We sequenced a lab-adapted Pillemer strain (named P134S for streptomycin resistant) using a PGM Ion Torrent sequencer . The genomes of B. pertussis strains contain a high number of inserted repeated sequences (more than 260 for the Tohama I strain) and we therefore used the MICRA options for analysis of high-repeat content genomes (i.e., the parameters of the mapper are adapted to fit the high-repeat content). As expected, Bordetella pertussis Tohama I strain (NCBI:NC_002929.2) appears to be the closest reference genome, with a coverage of nearly 94% and a mean depth of sequencing close to 17× (Additional file 1: part 2-1). The variant calls between P134S and Tohama I (Additional file 1: part 2-2) showed the low number of only 351 variations (304 SNVs and 47 indels). To evaluate the reliability of the MICRA variant caller we experimentally confirmed five out of the 351 variations: three coding SNVs, one non-coding SNV, and one insertion were tested by Sanger sequencing (Additional file 1: part 2-3). These five variations were confirmed at the exact positions detected by MICRA and the predicted inserted bases in fimC were confirmed to be a TG dinucleotide as predicted.
Finally, four additional regions were detected by MICRA in the P134S genome compared to Tohama I. These regions were detected to be highly similar to four clusters of genes present in the Bordetella bronchiseptica RB50 genome. The presence of these regions in P134S was validated by PCR (Additional file 1: part 2-4).
A clinical case study: the 2011 German outbreak caused by E. coli O104:H4
In May of 2011, an enteroaggregative E. coli O104:H4 strain disseminated through contaminated bean sprouts caused a large outbreak in Germany . This strain caused hemolytic, uremic, and enterohemorrhagic diarrhea syndrome and a total of 4075 cases and 50 deaths were reported. Initially, the isolate from a 16-year-old girl (TY2482) was sequenced using the Ion Torrent PGM and five runs on 314 chips were produced. Illumina sequencing was then performed to obtain the finished complete sequence of a TY2482 strain that contained one chromosome and three plasmids (pG, pESBL, and pAA) . Sequencing data from these circulating strains represented good material to evaluate the pipeline performance in the context of a real infectious case. In all experiments, we only used the five first runs generated with the Ion Torrent technology  in order to simulate the situation at the early stage of the outbreak period. The poor quality of the sequencing data is due to the early age of the technology at that time.
The MICRA pipeline, for the main part, is not based on de novo assembly, which is a process known to be time-consuming. We compared the MICRA results with those obtained with the existing de novo-based approaches. QUAST  was used to compare the sequences obtained with MICRA, IonGAP, and MIRA (Additional file 1: part 3-2). The number of contigs produced by MICRA is lower, the N50 is greater, and the genome fraction is similar between the two approaches. MICRA induced more mismatches than the de novo approaches but much fewer indels, which is the main error type induced by Ion torrent technology but are well taken into account by MICRA.
Precision, recall, and F-measure values for five sequence annotation approaches
Number of CDSs
Comparison between experimentally measured and computationally predicted antibiotics susceptibility profiles
Kuznetsov et al.
Two E. coli O104:H4 isolates close to TY2482 were sequenced and studied : 2009EL-2050 and 2009EL-2071. We used MICRA with a subset of the single Illumina reads and the same reference genomes as the sequences used for the TY2482 isolate (Additional file 1: part 3-3). MICRA identified a new plasmid close to the E. coli LF82 plasmid for the 2009EL-2050 strain, which is specific to this strain . An interesting result was a difference between the two predicted resistance profiles: 2009EL-2050 was predicted to be resistant to the tetracycline whereas the 2009EL-2071 strain was predicted to be sensitive, which was observed by experimentally measured antibiotics resistance profiles . The MICRA comparison module was then used to rapidly compare the TY2482, 2009-2050, and 2009-2071 strains. A Venn diagram (Fig. 3d) showed that the three strains share a large number of CDSs and that the two 2009EL strains share more CDSs. Among the CDSs shared between TY2482 and 2009EL-2050, the tetA gene implicated in the tetracycline resistance was retrieved by MICRA.
Additional application examples
In order to confirm the performance of MICRA, we performed two additional complete case studies with Ion torrent and Illumina paired-end data from Staphylococcus aureus and Clostridium autoethanogenum (Additional file 1: part 4). The results show that MICRA produced redundant sequences with paired-end data, especially with selected sequences genetically distant from the studied sequence, but also that it is still able to correctly identify more true CDSs than the other approaches. We also showed that MICRA is able to deal with varying sequencing depth and can be of great interest in cases where the assembly process is difficult (Additional file 1: part 4-1 on S. aureus Ion torrent data). Finally, the results greatly illustrate the potential and power of using MICRA in re-sequencing projects or mutant study projects (Additional file 1: part 4-2 on C. autoethanogenum data).
The accessibility of HTS technologies has revolutionized the field of microbiology. However, some challenges have to be addressed before HTS becomes a routinely used tool, especially because of data analysis, which is still lacking standard and easy-to-use protocols driven by robust pipelines . In this view, we developed a pipeline for fast and efficient automatic characterization of microbial genomes from HTS data.
MICRA is able to deal with data produced by the two main benchtop sequencers (Ion Torrent PGM and Illumina MiSeq). It easily and rapidly highlights interesting biological and clinical features, predicts antibiotic susceptibility and resistance profiles, as well as compares several strains in a matter of minutes. We tested MICRA with several validation cases and, in all of them, MICRA determined gene content with result quality equal to or better than other existing solutions. The power of HTS analysis with MICRA is illustrated by the immediate determination of variation points compared to a reference strain, allowing the user to immediately focus on important variations which could explain phenotype differences. This rapidity and efficiency is of particular interest for the characterization of a large number of strains, for instance in a microbial GWAS context .
In the near future, we hope that MICRA will become enriched with additional modules thanks to user feed-back. MICRA was developed and optimized for bacterial genomes but can also be adapted to other organisms such as viral or small eukaryotic genomes. Due to its mapping iterative approach, MICRA should deal with sequenced genomes obtained from culture-independent methods.
To our knowledge, MICRA is the only automatic HTS pipeline based on mappers and comparative genomics, offering an easy-to-use web interface and readable results. MICRA is fast enough to be used in real-time outbreak contexts and entirely fits with actual needs for wider HTS use in microbiological and clinical research.
Fast and cost-effective access to HTS data has prompted the development of efficient and reliable solutions for bioinformatics analyses. Here we present MICRA, an automatic pipeline for microbial genome characterization based on iterative read mapping onto annotated reference genomes available in databases. MICRA allows the rapid annotation of genomes and plasmids and the efficient determination of variations relative to close reference genomes thanks to the development of a new variant caller specific for prokaryotes. Additional modules allow for comparison of results and automatic determination of antibiotic resistance profiles. MICRA is freely available [41, 42] and easy-to-use as a web interface  requiring only reads as input. Assessment of MICRA in formal, clinical, and research contexts shows that it is much more rapid (10 minutes in most cases) and accurate than the usual de novo-based assembly methods.
Databases used in MICRA
The identification module of MICRA uses homemade databases containing some of the complete sequences extracted from the NCBI and selected for their completeness, for the quality of their annotations, and to avoid similar sequences. We extracted 1533 complete genomes from the ftp summary file for bacterial genomes .
Similarly, an initial list of 4437complete sequences for plasmids was obtained from . However, some plasmid sequences were very similar. We used PSI-CD-HIT  (options -c 0.9 -G 1 -g 1 -prog blastn -circle 1) to cluster sequences showing more than 90% identity and we kept only one representative sequence of each cluster, leading to a final database containing 3807 complete plasmid sequences.
The PATRIC CDS database is used during the annotation of the contigs produced by de novo assembly.
The antibiotic susceptibility and resistance module used two databases: the susceptibility is predicted from a local version of DrugBank (http://www.drugbank.ca) and the antibiotic resistance determination is based on a modified version of ARDB (https://ardb.cbcb.umd.edu/). Some links between resistance genes and drugs were added and some others were deleted by comparing the genes and associated drugs with The Comprehensive Antibiotic Resistance Database (CARD) . The beta-lactams were re-encoded according to CARD data and the fosfomycin link was deleted in the deoxycholate association from ARDB.
MICRA scripts and external software
MICRA contains in-house scripts developed in Java for running, linking, and parsing the results of the steps executed with external software [41, 42]. In addition to these constitutive scripts, a variant caller was developed to be accurate, fast, and adapted to prokaryotic genomes. The reference sequence is encoded by an array and for each position the mapping data are stored: the corresponding base in the reference genome, the number of reads mapped at this position (a multi-mapped read is counted as 1/n with n the number of mapping positions for this read), and the list of variants with their frequency. The consecutive variant positions are not considered independent: when a deletion of three consecutive bases occurs the mutation is not counted on the three corresponding bases but as a deletion of size 3 in the first position, which decreases the number of false positive variant calls. In addition to call variants, data encoded in the array-based data structure also allow the genome coverage, the mean depth, and the coverage in percentage of annotations to be computed.
MICRA is using several other technologies and external software in its different parts: FastQC  and cutadapt  in the pre-processing part, BLAST 2.2.28  in the sequence identification part, core pipeline and antibiotic parts, BioPerl in the sequence identification part to download files from NCBI, readSeq in the core pipeline to format FASTQ file, the bp_genbank2gff3.pl script  to convert GenBank format to GFF format in the sequence identification part, DustMasker  to identify low complexity regions in the core pipeline, SHRiMP 2.2.3  for the robust mapping of the Ion Torrent reads, SNAP 0.15  for the fast mapping of the Illumina and Ion Torrent reads, bowtie 2-2.2.9  for the robust mapping of Illumina reads, MIRA 4.0.2  for de novo assembly of Ion Torrent reads, SPAdes-3.9.0  for de novo assembly of Illumina reads, CGView  for comparative genomics visualization. The comparison module is based on R with the use of the VennDiagram package  to produce graphics.
The MICRA web interfaces and the computational resources
Simulated data from the K12-DH10B genome
The genome of E. coli str. K12 substr. DH10B (NCBI:CP000948) was artificially mutated: 21,052 SNVs and 2238 deletion/insertion polymorphisms (DIPs) were randomly introduced using a script developed specifically to record position and nature of mutations. Two shigatoxin genes (Shiga toxin 2 subunit A and B) from E. coli O157:H7 str. Sakai (NCBI:NC_002695) were inserted between positions 1,557,859 and 1,557,915 and finally the mdtL gene implied in chloramphenicol resistance (3,987,222–3,988,397) was deleted. From this artificially mutated genome, 1,000,000 reads were simulated with CuReSim 1.2 to obtain a theoretical sequencing-depth around 40× with the default parameters (read size of 200 bp with a standard deviation of 20, 1% of deletions 0.5% of insertions, and 0.5% of substitutions). To mimic the transfer of a plasmid, 50,000 reads from the pSFO157 plasmid (NCBI:AF401292), corresponding to a theoretical sequencing-depth of 80×, were also simulated with CuReSim (default parameters) and added to the FASTQ file which was finally shuffled. Paired-end Illumina reads were simulated with ART from artificially mutated genome with parameters -l 100 (read size) -m 200 (mean fragment size) -s 10 (standard deviation for fragment size) and -f 40 (sequencing-depth of 40×) and from pSFO157 plasmid with parameters -p -l 100 -f 80 -m 200 -s 10. Resulting reads were then merged in two FASTQ files which were finally synchronously shuffled.
Evaluation of the MICRA variant caller
To evaluate the MICRA variant caller, we compared our results to the variant calls with FreeBayes, a variant caller able to call variants from prokaryotic data. Freebayes was used in version 9.9.2-27 (commit id:5d5b8ac) with the default settings except the -p parameter set to 1 for haploid genome. FreeBayes produces a file in Variant Call Format (VCF) that contains all variations. The VCF file was filtered to keep only variations with a depth of at least 5 reads and a frequency of at least 90% to be comparable to the MICRA results.
The performance of the variant callers was evaluated by computing precision and recall values as follows: precision = CM/(CM + IM) and recall = CM/(CM + IM + NM), where CM is correctly identified mutations, i.e., same type and same or equivalent position as the artificially introduced mutation, IM is incorrectly identified mutation, and NM is not-found mutation.
Sanger validation of the K12-DH10B variant calls
MICRA predicted SNVs for E. coli str. K12 substr. DH10B were targeted by PCR. Thus, two primer pairs were designed: one targeting the putative T/C transition with forward primer gtcatcgtctgcgcggaaatg and reverse primer gatctcaagcgtacgtattgtcggt, amplifying a locus of 433 bp (starting position 1103286 to ending position 1103718), the other targeting the putative T-insert with forward primer cccactggttgcggtcaaact and reverse primer tggtgccgactaccggaatcg, amplifying a locus of 497 bp (starting position 4272686 to ending position 4273182). Each PCR mix has been compounded with 300 nM of each primer, 2.5 U of HotStart Taq Plus (Qiagen, Venlo), 2 mM of MgCl2 and 100 ng of E. coli DH10B DNA extract. PCR occurred following thermocycling: 5 min at 95 °C as activation step and 36 cycles composed of a denaturating step of 15 s; at 95 °C, annealing of 15 s; at 58 °C, an extension of 1 min at 72 °C. A final extension step occurred during 4 min at 72 °C. PCR products were purified with a QIAquick PCR Purification Kit (Qiagen, Venlo) and then Sanger sequenced. In the same way, PCR/Sanger sequencing were carried out for each suspected false positive SNV found with IonGap with following primers:
The K12-DH10B reads were obtained from Life technology from an Ion Torrent run with a 316 chip. The corresponding FASTQ files are available at .
The Pillemer P134 strain was lab adapted to obtain streptomycin resistance. The obtained resistant mutant was grown in Stainer Scholte (SS) medium + 100 μg/ml streptomycin at 37 °C to reach an OD600nm of 2.0. Genomic DNA was extracted using a QIAmp DNA minikit (Qiagen) and a sequencing library was prepared using Ion Shear Plus and Ion Plus Fragment kits (Life Technologies). The library was sequenced on an Ion Torrent PGM using a 314® chip (Life Technologies). The raw reads are available in SRA:SRR4019415 . Cutadapt  (options -m 50 -q 20) was used to filter and trim the bad quality bases. A total of 623,304 reads were obtained after the quality trimming process.
The five Ion Torrent runs from the German outbreak were downloaded from  (Run 1-5), representing a total of 629,368 reads with a mean length of 105 bp and with qualities varying from Q28 to Q10, resulting in a mean theoretical depth of 10×. No pre-processing steps were performed. Illumina reads for E. coli 2009-2050  and 2009-2071  strains were extracted, respectively, from SRR647664 and SRR647666 obtained from the SRA databank. Reads sampling was performed with fastq-sample  to obtain a mean depth of 40 × .
Evaluation of the annotations
In the 2011 German outbreak study, the annotation used as ground truth was the BROAD Institute annotation of the last assembly that included 5164 genomic genes and 189 genes from three plasmids. The gene sequences were downloaded from . BG7 could not be run because of bugs in the program. The results corresponding to the annotation of the 3057 contigs and including 6190 genes were downloaded from . The RAST web interface was used with the 3057 contigs and the reference organism selected was E. coli (taxid:562). Prokka was used with default parameters and the 3057 contigs.
To compare the annotation results, an in-house script was used to BLAST the BROAD genes against the CDSs predicted by each tool. Once a sequence was identified as present, it was removed from the list in order to count exactly the correct number of similar gene sequences. A predicted CDS was considered as a true positive if it has a significant hit in the BROAD gene sequences, as a false positive if it has no BLAST hit, and as a false negative if no BROAD reference gene had a sequence similar to that predicted by the annotation tool. Precision and recall values were computed as follows: precision = TP/(TP + FP) and recall = TP/(TP + FN). The F-measure combines the precision and recall values and was computed as: F-measure = 2*(Precision*Recall)/(Precision + Recall).
Evaluation of the predicted antibiotic susceptibility profile
At the beginning of the outbreak, the Robert Koch Institute provided the microbial characterization, including the clinically important antibiotic susceptibility profile . These data were used to evaluate the antibiotic susceptibility predictions obtained with MICRA and two others methods. In  364 contigs from a later assembly (NCBI:AFOB01) were BLAST against DrugBank and ARDB. ResFinder , which is able to take raw reads as input, here the five Ion Torrent runs, assembled the reads into contigs and searched for susceptibility and resistance genes.
All the result files generated with MICRA and the complete description of parameters used in each experiment can be found in Additional file 1: part 5 and at . IonGAP  was run with the sequencing DH10B FASTQ file and NCBI:CP000948 as reference genome in the formal context and with the five Ion Torrent runs and the E. coli 55989 genome (NCBI :NC_011748) as reference in the clinical context. MIRA  assembler was used with its default parameters optimized for Ion Torrent reads (job = denovo,genome,accurate ; technology = iontor) and 24 threads. QUAST  was used with its default parameters.
Availability and requirements
We thank Simon Nguyen (Life Technologies) for the E. coli str. K12 substr. DH10B sequencing data. We thank Frits Movi (RIVM) for providing the Pillemer strain, Loïc Coutte (CIIL) for generating the streptomycin-resistant Pillemer strain (P134S), and Dominique Raze (CIIL) for providing the BPZE1 strain.
This work was supported by University of Lille, Institut Pasteur de Lille, and the Gènes Diffusion company.
Availability of data and materials
HTS data used for Pillemer P134 strain analysis have been submitted to the NCBI Sequence Read Archive under accession number SRR4019415 . The datasets generated and analyzed during the current study are available at http://www.pegase-biosciences.com/MICRA/data.html  and parameters are available in Additional file 1: part 5. The MICRA pipeline is freely accessible at http://www.pegase-biosciences.com/MICRA . The MICRA source code is available on GitHub (https://github.com/caboche/MICRA) under the GNU GPLv3 license  and on Zenodo (https://zenodo.org/record/1045801) . Documentation is available at http://www.pegase-biosciences.com/MICRA/help.php .
SC designed the algorithms and wrote the source code. SC and AL developed the web interface. GE managed the docker development. SC, CA, and DH managed the project, analyzed the data, and wrote the manuscript. All authors read and approved the final manuscript.
Ethics approval and consent to participate
Consent for publication
The authors declare that they have no competing interests.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Open AccessThis article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
- Fraser-Liggett CM. Insights on biology and evolution from microbial genome sequencing. Genome Res. 2005;15:1603–10.View ArticlePubMedGoogle Scholar
- Wilson MR, Naccache SN, Samayoa E, Biagtan M, Bashir H, Yu G, et al. Actionable diagnosis of neuroleptospirosis by next-generation sequencing. N Engl J Med. 2014;370:2408–17.View ArticlePubMedPubMed CentralGoogle Scholar
- Caboche S, Audebert C, Hot D. High-throughput sequencing, a versatile weapon to support genome-based diagnosis in infectious diseases: applications to clinical bacteriology. Pathog. 2014;3:258–79.View ArticleGoogle Scholar
- Robinson ER, Walker TM, Pallen MJ. Genomics and outbreak investigation: from sequence to consequence. Genome Med. 2013;5:36.View ArticlePubMedPubMed CentralGoogle Scholar
- Goldberg B, Sichtig H, Geyer C, Ledeboer N, Weinstock GM. Making the leap from research laboratory to clinic: challenges and opportunities for next-generation sequencing in infectious disease diagnostics. MBio. 2015;6:e01888–15.View ArticlePubMedPubMed CentralGoogle Scholar
- Fricke WF, Rasko D. Bacterial genome sequencing in the clinic: bioinformatic challenges and solutions. Nat Rev Genet. 2014;15:49–55.View ArticlePubMedGoogle Scholar
- Caboche S, Audebert C, Lemoine Y, Hot D. Comparison of mapping algorithms used in high-throughput sequencing: application to Ion Torrent data. BMC Genomics. 2014;15:264.View ArticlePubMedPubMed CentralGoogle Scholar
- Caboche S, Even G, Loywick A, Audebert C, Hot D. MICRA web interface. PEGASE. 2017. http://www.pegase-biosciences.com/MICRA.
- Andrews S. FastQC. www.bioinformatics.babraham.ac.uk/projects/fastqc/.
- Martin M. Cutadapt removes adapter sequences from high-throughput sequencing reads. EMBnet J. 2011;17:10.View ArticleGoogle Scholar
- Zaharia M, Bolosky WJ, Curtis K, Fox A, Patterson D, Shenker S, et al. Faster and more accurate sequence alignment with SNAP. 2011. http://arxiv.org/abs/1111.5572.Google Scholar
- David M, Dzamba M, Lister D, Ilie L, Brudno M. SHRiMP2: sensitive yet practical short read mapping. Bioinformatics. 2011;27:1011–2.View ArticlePubMedGoogle Scholar
- Langmead B, Salzberg SL. Fast gapped-read alignment with Bowtie 2. Nat Methods. 2012;9:357–9.View ArticlePubMedPubMed CentralGoogle Scholar
- Stothard P, Wishart DS. Circular genome visualization and exploration using CGView. Bioinformatics. 2005;21:537–9.Google Scholar
- Morgulis A, Gertz EM, Schäffer AA, Agarwala R. A fast and symmetric DUST implementation to mask low-complexity DNA sequences. J Comput Biol. 2006;13:1028–40.View ArticlePubMedGoogle Scholar
- Chevreux B. MIRA: an automated genome and EST assembler. Duisbg Heidelb. 2005;1–161. https://www.scienceopen.com/document?vid=bc89e336-6dbb-4369-853b-3cb2fdc015b2.
- Bankevich A, Nurk S, Antipov D, Gurevich AA, Dvorkin M, Kulikov AS, et al. SPAdes: a new genome assembly algorithm and its applications to single-cell sequencing. J Comput Biol. 2012;19:455–77.Google Scholar
- Gillespie JJ, Wattam AR, Cammer SA, Gabbard JL, Shukla MP, Dalay O, et al. Patric: The comprehensive bacterial bioinformatics resource with a focus on human pathogenic species. Infect Immun. 2011;79:4286–98.View ArticlePubMedPubMed CentralGoogle Scholar
- Wishart DS, Knox C, Guo AC, Shrivastava S, Hassanali M, Stothard P, et al. DrugBank: a comprehensive resource for in silico drug discovery and exploration. Nucleic Acids Res. 2006;34:D668–72.View ArticlePubMedGoogle Scholar
- Liu B, Pop M. ARDB--Antibiotic Resistance Genes Database. Nucleic Acids Res. 2009;37:D443–7.View ArticlePubMedGoogle Scholar
- Caboche S, Even G, Loywick A, Audebert C, Hot D. MICRA documentation. PEGASE. 2017. http://www.pegase-biosciences.com/MICRA/help.php.
- Huang W, Li L, Myers JR, Marth GT. ART: a next-generation sequencing read simulator. Bioinformatics. 2012;28:593–4.View ArticlePubMedGoogle Scholar
- Garrison E, Marth G. Haplotype-based variant detection from short-read sequencing. arXiv Prepr. arXiv1207.3907. 2012;9. http://arxiv.org/abs/1207.3907.
- Caboche S, Even G, Loywick A, Audebert C, Hot D. MICRA data. PEGASE. 2017. http://www.pegase-biosciences.com/MICRA/data.html.
- Baez-Ortega A, Lorenzo-Diaz F, Hernandez M, Gonzalez-Vila CI, Roda-Garcia JL, Colebrook M, et al. IonGAP: integrative bacterial genome analysis for Ion Torrent sequence data. Bioinformatics. 2015;31:2870–3.View ArticlePubMedGoogle Scholar
- Gurevich A, Saveliev V, Vyahhi N, Tesler G. QUAST: quality assessment tool for genome assemblies. Bioinformatics. 2013;29:1072–5.View ArticlePubMedPubMed CentralGoogle Scholar
- Weber C, Boursaux-Eude C, Coralie G, Caro V, Guiso N. Polymorphism of Bordetella pertussis isolates circulating for the last 10 years in France, where a single effective whole-cell vaccine has been used for more than 30 years. J Clin Microbiol. 2001;39:4396–403.View ArticlePubMedPubMed CentralGoogle Scholar
- Caboche S, Even G, Loywick A, Audebert C, Hot D. SRA:SRR4019415. Sequence Read Archive; 2016. http://www.ncbi.nlm.nih.gov/sra.
- Caro V, Hot D, Guigon G, Hubans C, Arrivé M, Soubigou G, et al. Temporal analysis of French Bordetella pertussis isolates by comparative whole-genome hybridization. Microbes Infect. 2006;8:2228–35.View ArticlePubMedGoogle Scholar
- Mielcarek N, Debrie AS, Raze D, Quatannens J, Engle J, Goldman WE, et al. Attenuated Bordetella pertussis: new live vaccines for intranasal immunisation. Vaccine. 2006;24 Suppl 2:S2. -54-5.PubMedGoogle Scholar
- Scheutz F, Nielsen EM, Frimodt-Møller J, Boisen N, Morabito S, Tozzoli R, et al. Characteristics of the enteroaggregative Shiga toxin/verotoxin-producing Escherichia coli O104:H4 strain causing the outbreak of haemolytic uraemic syndrome in Germany, May to June 2011. Euro Surveill. 2011;16. https://www.ncbi.nlm.nih.gov/pubmed/?term=Characteristics+of+the+enteroaggregative+Shiga+toxin%2Fverotoxin-producing+Escherichia+coli+O104%3AH4+strain+causing+the+outbreak+of+haemolytic+uraemic+syndrome+in+Germany%2C+May+to+June+2011.
- Rohde H, Qin J, Cui Y, Li D, Loman NJ, Hentschke M, et al. Open-source genomic analysis of Shiga-toxin-producing E. coli O104:H4. N Engl J Med. 2011;365:718–24.View ArticlePubMedGoogle Scholar
- BGI. Ion Torrent reads for E. coli O104:H4 2011. ftp://ftp.genomics.org.cn/pub/Ecoli_TY-2482/.
- Pareja-Tobes P, Manrique M, Pareja-Tobes E, Pareja E, Tobes R. BG7: a new approach for bacterial genome annotation designed for next generation sequencing data. PLoS ONE. 2012;7:e49239.View ArticlePubMedPubMed CentralGoogle Scholar
- Aziz RK, Bartels D, Best AA, DeJongh M, Disz T, Edwards RA, et al. The RAST Server: rapid annotations using subsystems technology. BMC Genomics. 2008;9:75.View ArticlePubMedPubMed CentralGoogle Scholar
- Seemann T. Prokka: rapid prokaryotic genome annotation. Bioinformatics. 2014;30:2068–9.View ArticlePubMedGoogle Scholar
- Kuznetsov V, Lee HK, Maurer-Stroh S, Molnár MJ, Pongor S, Eisenhaber B, et al. How bioinformatics influences health informatics: usage of biomolecular sequences, expression profiles and automated microscopic image analyses for clinical needs and public health. Heal Inf Sci Syst. 2012;1:2. https://www.ncbi.nlm.nih.gov/pubmed?term=how%20bioinformatics%20influences%20health%20informatics%20usage%20of%20biomolecular%20sequences,%20expression%20profiles%20and%20automated%20microscopic%20im
- Zankari E, Hasman H, Cosentino S, Vestergaard M, Rasmussen S, Lund O, et al. Identification of acquired antimicrobial resistance genes. J Antimicrob Chemother. 2012;67:2640–4.View ArticlePubMedPubMed CentralGoogle Scholar
- Ahmed SA, Awosika J, Baldwin C, Bishop-Lilly KA, Biswas B, Broomall S, et al. Genomic comparison of Escherichia coli O104:H4 isolates from 2009 and 2011 reveals plasmid, and prophage heterogeneity, including Shiga toxin encoding phage stx2. PLoS ONE. 2012;7:e48228.View ArticlePubMedPubMed CentralGoogle Scholar
- Power RA, Parkhill J, de Oliveira T. Microbial genome-wide association studies: lessons from human GWAS. Nat Rev Genet. 2016;18:41–50.View ArticlePubMedGoogle Scholar
- Caboche S. MICRA source code. GitHub; 2017. https://github.com/caboche/MICRA.
- Caboche S. MICRA source code. 2017. Zenodo, https://zenodo.org/record/1045801.Google Scholar
- NCBI. FTP bactarial genomes. NCBI. ftp://ftp.ncbi.nlm.nih.gov/genomes/archive/old_refseq/Bacteria/summary.txt.
- NCBI. FTP bacterial plasmids. NCBI. ftp://ftp.ncbi.nlm.nih.gov/genomes/archive/old_refseq/Plasmids/Plasmids.ids.
- Fu L, Niu B, Zhu Z, Wu S, Li W. CD-HIT: accelerated for clustering the next-generation sequencing data. Bioinformatics. 2012;28:3150–2.View ArticlePubMedPubMed CentralGoogle Scholar
- McArthur AG, Waglechner N, Nizam F, Yan A, Azad MA, Baylay AJ, et al. The comprehensive antibiotic resistance database. Antimicrob Agents Chemother. 2013;57:3348–57.View ArticlePubMedPubMed CentralGoogle Scholar
- Altschul SF, Madden TL, Schäffer AA, Zhang J, Zhang Z, Miller W, et al. Gapped BLAST and PSI-BLAST: a new generation of protein database search programs. Nucleic Acids Res. 1997;25:3389–402.View ArticlePubMedPubMed CentralGoogle Scholar
- McKay S GD. bp_genbank2gff3.pl. GitHub; 2014. https://github.com/bioperl/bioperl-live/blob/master/scripts/Bio-DB-GFF/bp_genbank2gff3.pl.
- Chen H, Boutros PC. VennDiagram: a package for the generation of highly-customizable Venn and Euler diagrams in R. BMC Bioinformatics. 2011;12:35.View ArticlePubMedPubMed CentralGoogle Scholar
- NCBI. SRR647664: reads for E. coli 2009-2050. SRA. http://www.ncbi.nlm.nih.gov/sra.
- NCBI. SRR647666: reads for E. coli 2009-2071. SRA. http://www.ncbi.nlm.nih.gov/sra.
- DC Jones. FASTQ-SAMPLE. https://homes.cs.washington.edu/~dcjones/fastq-tools/fastq-sample.html.
- Broad Institute. Escherichia coli O104:H4 sequencing project. http://www.broadinstitute.org/annotation/genome/Ecoli_O104_H4/MultiDownloads.html.
- BGI. Annotation of E. coli O104:H4. GitHub. https://github.com/ehec-outbreak-crowdsourced/BGI-data-analysis/tree/master/strains/TY2482/seqProject/BGI/annotations/era7bioinformatics.
- Robert Koch Institute. antibiotic susceptibility profile for E. coli O104:H4. http://www.rki.de/EN/Content/infections/epidemiology/outbreaks/EHEC_O104/ehec_O104_inhalt_en.html.