- Open Access
CSESA: an R package to predict Salmonella enterica serotype based on newly incorporated spacer pairs of CRISPR
BMC Bioinformatics volume 20, Article number: 215 (2019)
Salmonella enterica is a major cause of bacterial food-borne disease worldwide. Immunological serotyping is the most commonly used typing method to characterize S. enterica isolates, but is time-consuming and requires expensive reagents. Here, we developed an R package CSESA (CRISPR-based Salmonella enterica Serotype Analyzer) to predict the serotype based on the CRISPR loci of S. enterica.
CSESA has implemented the CRISPR typing method CLSPT and extended its coverage on diverse S. enterica serotypes. This package takes CRISPR sequences or the genome sequences as input and provides users with the predicted serotypes. CSESA has shown excellent performance with currently available sequences of S. enterica.
CSESA is a convenient and useful tool for the prediction of S. enterica serotypes. The application of CSESA package can improve the efficiency of serotyping for S. enterica and reduce the burden of manpower resources. CSESA is freely available from CRAN at https://cran.r-project.org/web/packages/CSESA/.
Salmonella enterica, a gram-negative bacterium of the Enterobacteriaceae family, is the leading cause of bacterial food-borne disease worldwide. The infection of S. enterica occurs as a result of consuming contaminated food and usually causes serious gastroenteritis . In order to characterize various S. enterica isolates, immunological serotyping has been most commonly used and provided valuable information such as pathogen sources. Immunological serotyping distinguishes isolates based on the classification of somatic (O) and flagellar (H) antigens . Until now, more than 2500 Salmonella serotypes have been identified . Despite its extensive use for almost 80 years, this method still has some drawbacks. Immunological serotyping of S. enterica is labor-intensive, takes at least 3 days to complete, and requires experienced laboratory staff and maintenance of over 250 typing sera and 350 different antigens .
To avoid these disadvantages, molecular typing methods, such as multi-locus sequence typing (MLST)  and pulsed-field gel electrophoresis (PFGE) , have been adopted to predict the serotypes of S. enterica isolates. However, MLST has low throughput, and PFGE is time consuming and technically demanding . Other molecular typing methods also have drawbacks regarding cost, speed or robustness, and cannot be evaluated as ideal methods for serotype identification on a large scale.
The clustered regularly interspaced short palindromic repeat (CRISPR) has served as a new effective marker for subtyping of Salmonella [8, 9]. The two CRISPR loci possessed by Salmonella generally comprise 29-bp direct repeats (DRs) and 32-bp variable sequences known as “spacers” [10, 11]. A CRISPR typing method based on the whole spacer arrays in both CRISPR loci has been proposed . Recently, we have established a simpler molecular typing method, named CRISPR locus spacer pair typing (CLSPT) . CLSPT distinguishes S. enterica isolates based on the pair of newly incorporated spacers in both CRISPR loci. Further analysis showed that CLSPT types presented remarkable accordance (kappa = 0.9872, Matthew’s correlation coefficient = 0.9712) with serotypes, and had good discriminatory power (discriminatory index [DI] =0.8145) . However, CLSPT was established with a strictly limited dataset and remains doubtful with a large number of newly sequenced isolates in recent years. In addition, this method involves a series of genomic analysis such as identification of the newly incorporated spacer and is inconvenient for clinical use. Here, we introduce CRISPR-based Salmonella enterica Serotype Analyzer (CSESA), a package with the application of CLSPT to predict serotypes of S. enterica. We have also extended the database of CSESA with diverse S. enterica isolates.
CSESA is implemented in R and is freely available in the Comprehensive R Archive Network (CRAN). This package provides the basic function for serotype prediction with S. enterica CRISPR sequences. By calling the external software BLASTN , CSESA is also able to retrieve the CRISPR sequences and present the predicted serotype from the genome sequence.
The input data for CSESA can either be CRISPR sequence(s) or the genome sequence of a S. enterica isolate. CRISPR sequences can be obtained by PCR amplification and sequencing with forward primer A-F (5′-GTRGTRCGGATAATGCTGCC-3′) and reverse primer A-R (5′-CGTATTCCGGTAGATBTDGATGG-3′) for CRISPR 1 locus and primers B-F (5′-GAGCAATACYYTRATCGTTAACGCC-3′) and B-R (5′-GTTGCDATAKGTYGRTRGRATGTRG-3′) for CRISPR 2 locus . Each sequence of CRISPR loci should be saved to a separate file in the FASTA format. The complete genome of a S. enterica isolate or its draft genome in the multi-FASTA format can also be taken as input. An example dataset is included in CSESA to illustrate the input forms.
Identification of newly incorporated spacers
The first step for CRISPR-based typing is to obtain the CRISPR sequences of a S. enterica isolate (Fig. 1). Through PCR amplification and sequencing with primers as described above, the CRISPR sequences can be acquired and directly entered into CSESA by setting “method” to “PCR” (default). Otherwise “method” should be set to “WGS” for analysis of the genome sequence. Retrieval of CRISPR sequences from the genome requires local installation of the BLASTN software. By calling BLASTN, CSESA aligns the genome against four primer sequences and locates its matched regions. The bases between primers A-F and A-R are concatenated as the sequence of CRISPR 1 locus, and those between primers B-F and B-R as the CRISPR 2 sequence.
CSESA compares the CRISPR sequences with the DR database downloaded from the Pasteur Institute’s CRISPR Database. Each CRISPR sequence is split by DRs and the last spacer between two DRs is defined as the newly incorporated one. CSESA then queried this spacer against the local database curated from Pasteur Institute’s CRISPR Database. The name of the newly incorporated spacer is obtained and used for subsequent serotype prediction.
We have developed CLSPT for serotype prediction by establishing a local spacer-pair-serotype dictionary . The dictionary is based on 537 S. enterica isolates from the Pasteur Institute’s CRISPR Database. The pair of newly incorporated spacers was retrieved from each isolate and mapped to the corresponding serotype, resulting in 176 correlations. In CSESA, we have extended the dictionary with 19 correlations from the collected isolates in our laboratory and 34 from the CRISPRdb (http://crispr.i2bc.paris-saclay.fr/) . A total of 229 correlations are then recorded. Nine pairs of newly incorporated spacer names (namely, Ent8-EntB9, Ent4-EntB9, Heid8-STMB24, Pan1var1-BranB7, Dub1-EntB8, Chol3-TysB1, Pan1-PanB8, ConcB4var1-MonB63 and STM6-STMB24) had one-to-many correlations with serotypes and the strains sharing the same pairs of spacer names is predicted with a percentage by comparing the number of strains of the corresponding serotypes.
Presentation of results
There are three output forms of serotype prediction. First, when the newly incorporated spacer pair from a S. enterica isolate find a match in the dictionary, the two spacer names and their correlated serotype are shown as the output. If this spacer pair is linked to multiple serotypes, each one with corresponding proportion will be shown. Second, only one newly incorporated spacer has been found in the dictionary, and then CSESA will list all the serotypes correlated with the pairs including this spacer. Third, when none of the newly incorporated spacers is found, a declaration of no prediction is presented. The three forms of output are shown by the example code below.
> CSESA(“IsolateA_CRISPR_locus1.seq”, “IsolateA_CRISPR_locus2.seq”, method = “PCR”).
 “The newly incorporated spacer in the first CRISPR sequence: Ent8”.
 “The newly incorporated spacer in the second CRISPR sequence: EntB9”.
 “Predicted serotype(s): [Enteritidis 95%] [Nitra 2%] [Rosenberg 2%] [Blegdam 1%]”.
> CSESA(“IsolateB_genome_assembly.seq”, method = “WGS”)
 “The newly incorporated spacer in the first CRISPR sequence: Ago13”.
 “The newly incorporated spacer of the second CRISPR sequence is not available for prediction.”
 “Predicted serotype(s): [Agona]”.
> CSESA(“IsolateC_CRISPR_locus1.seq”, method = “PCR”)
 “Sorry. We did not find any corresponding serotype in the lib!”
Genome sequences of 5335 currently available S. enterica isolates with determined serotypes were downloaded from the NCBI database for the test of CSESA (accessed 24th March 2018). The accuracy of CSESA was evaluated by comparing the predicted result with provided serotype of each isolate. The results indicated that 4348 of the 5335 isolates were successfully predicted with matched serotypes. Whereas 97 isolates returned mismatched serotypes and 890 isolates returned no prediction (Fig. 2).
CSESA has shown excellent performance on prediction with common serotypes of S. enterica. For the wildly distributed serotype Typhi, CSESA has successfully predicted the serotype for 99.9% (1907/1909) of the isolates. Around 90% of the isolates among other common S. enterica serotypes (91.4% of Typhimurium, 86.4% of Enteritidis, 92.0% of Agona, 94.6% of Heidelberg, 85.4% of Kentucky, 82.1% of Newport, 91.3 of Paratyphi and 88.8% of Weltevreden) were also correctly predicted (Fig. 3a). However, only 48.3% of the isolates of Bareilly got the matched serotype in CSESA due to the limitation of current dictionary.
We have also implemented a local perl script of the conventional CRISPR typing method  (referred to here as CCT) for comparison. CCT was tested with the same dataset. The results revealed that 1665 of 5335 genomes were correctly identified by CCT, which had a significantly lower accuracy of serotype prediction than CSESA (Chi-square test, p < 0.001). CCT showed varied performances with different S. enterica serotypes, and 51.0% of Typhi, 16.8% of Typhimurium, 35.0% of Enteritidis, 26.8% of Agona, 32.2% of Heidelberg, 24.3% of Kentucky, 16.7% of Newport and 75.8% of Paratyphi were correctly predicted (Fig. 3b). In addition, CCT exhibited poor performance with serotypes Bareilly and Weltevreden, and none of 89 Bareilly isolates and only one of 116 Weltevreden isolates were correctly predicited.
To Further improve CSESA’s performance in clinical situations, these correlations identified in the downloaded S. enterica genomes from NCBI have also been integrated into the dictionary. A total of 388 correlations covering 137 serotypes and 323 newly incorporated spacer pair polymorphisms are currently documented.
Although traditional immunological serotyping works as the most important method to characterize Salmonella, it is time- and resource-consuming and limited to well-equipped laboratories. In this study, we developed an R package CSESA to predict the serotypes of S. enterica. This implementation utilized the last spacers of two CRISPR loci in a S. enterica isolate. The utilization of CSESA requires simple PCR amplification and sequencing of the two CRISPR sequences and has remarkable effectiveness relative to the conventional CRISPR typing method. This implementation provides an ideal tool to predict S. enterica serotypes especially on a large scale.
CSESA has integrated the data from the Pasteur Institute’s CRISPR Database, CRISPRdb, NCBI and our local laboratory and now is able to predict 137 serotypes, covering most of the common S. enterica serotypes, such as Typhi, Typhimurium, Enteritidis and Paratyphi. However, the performance of CSESA is still limited by current data. Some pairs of newly incorporated spacers have mapped to different serotypes due to limited information of specific correlation. It is imperative that continuing efforts should be made to extend the spacer-pair-serotype dictionary. With increasingly available information of spacer and serotype correlations, we hope this dictionary could cover a majority of the > 2500 Salmonella serotypes or at least the typically encountered ones, which will make considerable savings on the time and manpower costs.
In this paper, we have introduced an R package CSESA which is aimed to predict serotypes of S. enterica. This package has applied our previously established CRISPR typing method CLSPT and extended the serotype-targeted dictionary. CSESA showed remarkable performance on serotype prediction with the majority of S. enterica. This implementation supports the direct input of CRISPR sequences or the genome sequences, and is accessible to users less familiar with genomic analysis.
Availability and requirements
Project name: CSESA.
Project home page: https://cran.r-project.org/web/packages/CSESA/index.html
Operating system(s): Platform independent.
Programming language: R.
Other requirements: For full functionality, the BLAST software must have been installed.
License: GPL-2 | GPL-3.
Any restrictions to use by non-academics: According to GPL.
Basic local alignment search tool
Conventional CRISPR typing
CRISPR locus spacer pair typing
CRISPR-based Salmonella enterica Serotype Analyzer
Polymerase chain reaction
Majowicz SE, Musto J, Scallan E, Angulo FJ, Kirk M, O’Brien SJ, et al. The global burden of nontyphoidal Salmonella gastroenteritis. Clin Infect Dis. 2010;50:882–9.
Grimont P, Weill F. Antigenic formulae of the Salmonella serovars. 9th ed. Paris, France: WHO Collaborating Centre for Reference and Research on Salmonella, Institut Pasteur; 2007.
Ranieri ML, Shi C, Moreno Switt AI, den Bakker HC, Wiedmann M. Comparison of typing methods with a new procedure based on sequence characterization for Salmonella serovar prediction. J Clin Microbiol. 2013;51:1786–97.
Chen Y, Brown E, Knabel S. Molecular epidemiology of foodborne pathogens. Genomics Foodborne Bact Pathog. 2011:403–53.
Kotetishvili M, Stine OC, Kreger A, Morris JG, Sulakvelidze A. Multilocus sequence typing for characterization of clinical and environmental salmonella strains. J Clin Microbiol. 2002;40:1626–35.
Zou W, Lin W-J, Hise KB, Chen H-C, Keys C, Chen JJ. Prediction system for rapid identification of Salmonella serotypes based on pulsed-field gel electrophoresis fingerprints. J Clin Microbiol. 2012;50:1524–32.
Wattiau P, Boland C, Bertrand S. Methodologies for Salmonella enterica subsp. enterica subtyping: gold standards and alternatives▿. Appl Environ Microbiol. 2011;77:7877–85.
Fabre L, Zhang J, Guigon G, Le Hello S, Guibert V, Accou-Demartin M, et al. CRISPR typing and subtyping for improved laboratory surveillance of Salmonella infections. PLoS One. 2012;7:e36995.
Shariat N, Timme RE, Pettengill JB, Barrangou R, Dudley EG. Characterization and evolution of Salmonella CRISPR-Cas systems. Microbiology (Reading, Engl). 2015;161:374–86.
Touchon M, Rocha EPC. The small, slow and specialized CRISPR and anti-CRISPR of Escherichia and Salmonella. PLoS One. 2010;5:e11126.
Pettengill JB, Timme RE, Barrangou R, Toro M, Allard MW, Strain E, et al. The evolutionary history and diagnostic utility of the CRISPR-Cas system within Salmonella enterica ssp. enterica. PeerJ. 2014;2:e340.
Li H, Li P, Xie J, Yi S, Yang C, Wang J, et al. New clustered regularly interspaced short palindromic repeat locus spacer pair typing method based on the newly incorporated spacer for Salmonella enterica. J Clin Microbiol. 2014;52:2955–62.
Camacho C, Coulouris G, Avagyan V, Ma N, Papadopoulos J, Bealer K, et al. BLAST+: architecture and applications. BMC Bioinformatics. 2009;10:421.
Grissa I, Vergnaud G, Pourcel C. The CRISPRdb database and tools to display CRISPRs and to generate dictionaries of spacers and repeats. BMC Bioinformatics. 2007;8:172.
This work was supported by grants from the Mega-projects of Science and Technology Research (No. 2017ZX10303405–003), the Beijing Natural Science Foundation (No. 5172029) and Beijing Noval program (No. Z181100006218110). None of the funding bodies had any role in the design of the study and collection, analysis and interpretation of data, and in writing the manuscript.
Availability of data and materials
The R package CSESA is available at CRAN repository https://cran.r-project.org/web/packages/CSESA/. The libraries and dictionary are included in this package. The test data used in this paper are publicly available at NCBI https://www.ncbi.nlm.nih.gov/assembly/?term=salmonella.
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.
About this article
Cite this article
Yang, L., Zhang, X., Liu, Y. et al. CSESA: an R package to predict Salmonella enterica serotype based on newly incorporated spacer pairs of CRISPR. BMC Bioinformatics 20, 215 (2019). https://doi.org/10.1186/s12859-019-2806-5
- S. enterica