Unprecedented sequencing effort has led to daily submissions of influenza genomes to public repositories such as the NCBI GenBank. With the decreasing cost of genome sequencing, it is expected that rapidly evolving viruses such as influenza will be sampled in even greater depth in the future. Keeping analyses up to date and managing this data is a prime concern for researchers and public-health officials alike. We have developed an influenza sequence pipeline, polymorphism data warehouse, and an interactive web-based analysis program to assist in managing the flow of sequence data. The system provides a framework for studying polymorphic associations with various metadata, for downloading subsets based on metadata criteria, as well as for tracking polymorphisms geographically and temporally. SeqMonitor is accessible at http://ratite.cs.dal.ca/SeqMonitor.
In early 2009, a triple-reassortant strain of the H1N1 serotype, here-in called S-OIV (also known as H1N1pdm), spread throughout the world, causing a pandemic. The first significant human outbreak of this strain occurred in La Gloria, Veracruz, Mexico in February 2009  . As of 6 Sep 2009, 3205 S-OIV-related deaths worldwide have been reported to the WHO  . Although treatment concerns have been prompted by resistance to the antiviral oseltamivir in the latest S-OIV strains, the virus largely remains sensitive to zanamivir  . Resistance to oseltamivir is often conferred by a single His274Tyr amino acid mutation in the neuraminidase gene, while reduced zanamivir sensitivity has recently been experimentally linked to a Gln136Lys mutation (N2 numbering).
Systems recently developed and under development are allowing the quick identification of important, novel mutations using 3-d protein structures  , as well as H3N2 antigenic-site-based vaccine prediction systems ( http://influenza.nhri.org.tw/ATIVS/index.jsp )  . This type of automated detection and monitoring of novel mutations affecting antigenicity, convergent evolution, and inter/intra-host reassortment needs to be performed on a continual basis on the ever-increasing dataset to keep abreast of new influenza threats. To this end, we have created an automated pipeline that can download the latest sequences from NCBI GenBank and add them to existing alignments of homologous sequences, as well as extract metadata such as antiviral resistance, collection date and location name. Each sequence can then be geotagged by an automated, user-verified extraction and querying engine which uses the GeoNames web service ( http://www.geonames.org ). The data are made available through our data warehouse and web application, SeqMonitor. The current version of SeqMonitor allows users to submit H1N1 protein sequences of the hemagglutinin or neuraminidase genes to a BLAST query, with the top matches being plotted on a geographic map. Novel and rare mutations of the query sequence can then be analyzed versus any subset of the data, defined for instance by oseltamivir resistance or country of collection. The geographic and related metadata files, along with the precomputed amino acid alignments constructed with the pipeline can be downloaded by users and processed by geographic and sequence data analysis packages such as GenGIS ( http://kiwi.cs.dal.ca/GenGIS )  . SeqMonitor can be accessed at http://ratite.cs.dal.ca/SeqMonitor .
All available data on the hemagglutinin and neuraminidase proteins of H1N1 human-host influenza from the NCBI Influenza Virus Resource are downloaded and provided as input to the pipeline. The GeoNames.org webservice was used to geotag records. Currently (12 September 2009), 3968 H1N1 hemagglutinin and 2889 neuraminidase records are available for analysis with Version 1.0 of SeqMonitor.
All of the code developed for this pipeline was written in Python, using the Biopython library version 1.5  . The data warehouse is managed by MySQL version 5.1.29. The web interface is implemented with the Django Python web framework version 1.0. The system is composed of two main modules. The pipeline module parses and integrates sequence and location data from the NCBI GenBank and Geonames.org. The visualization and analysis module allows the results of the pipeline to be explored through the web and compared with user submitted sequences.
Pipeline – Parser
In the parsing step, the pipeline extracts the location, date of collection, antiviral resistance tags, S-OIV outbreak inclusion, as well as each of the standard sequence identifiers (i.e. GI number, accessions). S-OIV outbreak inclusion is determined by the 2009 H1N1 Flu Outbreak NCBI project number, 37813. Due to the relatively unstructured format of the data, location, date of collection, and antiviral resistance information can be defined in different formats in various blocks. The EpiFlu or FluData block is checked first and is considered as the authority for each metadata field. If this block or some of the metadata cannot be found, then other fields in the record are searched, such as the source feature block, or within the free-text notes. As much information about the date of collection is extracted from the record as possible. If complete collection date is not available, then just the month or year may be extracted. If none of these fields is present within the record, year of collection is parsed from the strain identifier itself.
Often, antiviral resistance information is provided in a human-readable format in a free-text notes field. This field is automatically parsed by splitting the notes fields on commas and semi-colons, then looking for the terms “adamantane”, “oseltamivir” or “zanamivir”. If exactly one of those terms appears in a clause, then that clause is searched for “sensitive” or “resistant”, and the resulting information is stored. If conflicting information is found within a clause due to a parsing error (i.e. both sensitive and resistant terms found, or more than one antiviral specified), then the information is ignored. There are multiple cases, such as with A/Philippines/1279/2006, where more information is contained within publications on antiviral resistance that cannot currently be interpreted by the pipeline parser, and is thus ignored. In other cases, typos such as “resitant” are present, and currently not interpreted by the pipeline parser. Factoring in such information would currently require human intervention.
Pipeline – Geotagging
Location information is also sought first from the EpiFlu or FluData block in the comments section, then from the source feature block, and finally inferred from the strain name. Often, particularly with older sequences, more precise information is given in the strain name, with only country being provided in the source feature block, if present at all. Other times, more specific location information is provided within the record than within the strain name, such as with many recent samples from the USA which contain county information in addition to state. The parser makes a decision based on the number of words inside the feature block to use either the strain location identifier or the country identifier when looking up latitude and longitude. If an exact match has been found within the existing database on each of the location fields, then the query sequence is automatically tagged with the existing information; otherwise, the query is submitted to the GeoNames webservice. The top ten results are then provided to the user to choose the one that matches the current sequence. Users can also send their own query to the GeoNames webservice if none of the records is appropriate. Since only 872 of the 6857 strains initially considered had potentially distinct country and strain location fields, geotagging all 6857 sequences with this semi-automated system took approximately 2 hours, which is approximately one sequence each second, or one distinct sequence every ten seconds. This includes time for the system to query Geonames, time to manually look up some sequences in other data sources such as original publications or the Influenza Virus Resource when the place name is ambiguous, to find correct spellings when typos occur in names, and to look up additional information with services such as Google Earth when GeoNames.org could not find the place name. Google Earth was sometimes needed with sequences from locations around Perth in Western Australia, which does not appear to be well supported in the current version of GeoNames. If an ambiguous place name could not be resolved, the sequence was attributed solely to the country of origin, which is provided for almost all sequences by the NCBI Influenza Virus Resource. Without this semi-automated parser and tagging system, it would take approximately 143 person-hours to manually geotag this dataset based on a conservative estimate of 30 seconds to manually geo-tag each record. Keeping the system up-to-date is manageable as most sequence location fields are not distinct from previously tagged sequences and thus can be automatically geotagged.
Pipeline – Sequence alignment and polymorphism detection
After parsing the full GenBank records of each sequence, amino acid alignments of homologous sequences are constructed using MUSCLE version 3.6  with an increased gap opening penalty of 20 to eliminate incorrect insertion and deletion artifacts due to partial sequences. The alignments are then examined manually and cleaned of any artifacts, such as superfluous terminal gaps and non-homologous regions extending beyond the coding region. The HA alignment contains 567 amino acids and the NA alignment contains 470 amino acids.
As we need to be able to efficiently query polymorphisms according to various query dimensions, we have constructed a simple star-schema data warehouse to contain our polymorphism information  . In the current version of SeqMonitor, this data warehouse has four available dimension tables for collection date, resistance, polymorphic character and location, along with a single fact table on polymorphisms. We also include the alignment position, S-OIV inclusion flag, and GI number for searching. Although often with data warehouses we do not want to keep individual identifiers such as GI, in this case the GI is useful for excluding sequences from our analysis that are exactly identical to a query sequence. In all, 3,085,598 records are present in our fact table, which is equal to every unique combination of searchable dimension values, without terminal gaps. Hierarchical searching is also supported, such as searching on region, country, or continent in the location dimension.
Web application – GeoLocationBLAST (GLBLAST)
The second module of SeqMonitor is the visualization and analysis module which allows the results of the pipeline to be explored through the web and compared with user submitted sequences. Users may either search the database for a sequence on any of the metadata fields, or they can submit their own FASTA formatted sequence to the server. On submission, BLAST is run on the sequence using the default E-value of 10 and at most the top 100 matches retrieved. Low-complexity filtering is turned off on the BLAST query due to the high similarity of the sequences. The temporal and spatial distributions of the top BLAST matches, as well as the percentage of identical amino acids are returned. The geographic distribution of BLAST results is similar to what megx.net provides for marine microbial samples ( http://www,megx.net )  . Identical sequences are reported separately from the main BLAST results, and are excluded from further polymorphism analysis. The Google Maps API version 2 is used to provide a graphical distribution of the top BLAST matches. The year and country distribution is also provided in tabular format.
Web application – Polymorphism analysis
Once the gene the query sequence is from has been identified, the user can move on to the polymorphism analysis. The query sequence is aligned to a 5-sequence reference alignment for the given gene. Again, the Google Maps API version 2 is used, this time with a custom genomic map provider, for displaying polymorphic sites along the genome. Users can specify groupings based on any metadata field in the database, such as specific antiviral resistance or inclusion in the S-OIV pandemic, in order to compare polymorphic distributions between that subset and the overall set of homologous sequences in the dataset. Unique polymorphisms in the subset are highlighted, as well as rare (defined as a character that occurs in less than half of the known sequences at that position), and polymorphic sites. Conserved positions are also easily identified by the lack of marking. From here, individual polymorphisms within each set can be selected, and the geographic and temporal distribution will be displayed. Sequences within the set can be downloaded for offline analysis.
Example: Distribution of oseltamivir resistance in sequenced isolates
Strains of the seasonal H1N1 have recently shown increased resistance to the neuraminidase inhibiter oseltamivir . Out of the 2889 NA genes stored in our data warehouse, 275 of them have been recognized as being annotated as resistant to oseltamivir, the earliest having been collected on 18 December 2006 in Georgia, USA (A/Georgia/20/2006). Of these, 6 are part of the S-OIV outbreak, out of a total 1033 S-OIV neuraminidase sequences. These strains do not appear to be sensitive to adamantane, but do not show resistance to zanamivir. The resistant isolates are localized to five separate countries (Figure 1).
Selecting one of the latest S-OIV sequence with oseltamivir resistance as our reference sequence, A/Washington/28/2009, we show the polymorphic site distribution against a subset of all oseltamivir resistant sequences (Figure 2). The two bars along the top of the amino acid sequence show whether the character in our query sequence is unique, a minority, a majority or conserved in either the selected subset (lower bar) or all other sequences (upper bar). Most of the minority characters in our query sequence line up in both sets, with no indication that the character is related to the metadata values selected for the set. A single site shows a rare polymorphism in the background set that is conserved in the oseltamivir resistant set, residue Y275 (Y274 in N2 numbering) (Figure 2). The presence of a tyrosine residue at this site is known to confer resistance to oseltamivir.
Although the most interesting residues are those conserved in one set and a minority or unique in the other, two other sites show a minority residue in the oseltamivir-resistant subset that is in the majority of all other sequences, residue R173. This residue is present in only 5/260 (1.9%) of oseltamivir-resistant sequences, versus 1176/2339 (50.2%) of all other sequences. By clicking on the amino acid character for the 5 oseltamivir-resistant R173 sequences, we see that they are all part of the S-OIV outbreak. This indicates that the S-OIV outbreak may have the first examples of R173 in oseltamivir-resistant sequences. By changing the subset to S-OIV, we can see that R173 is completely conserved in S-OIV sequences, and not likely related to oseltamivir resistance at all, but rather related due to coalescence.
Site G249 is present in 13/274 (4.7%) of oseltamivir-resistant sequences, but is present in 2089/2582 (80.9%) of all other sequences. G249 is present in all S-OIV sequences, and has been seen before in oseltamivir resistant strains in the US in 2006, and the US and Japan in 2007. However, K249 is present in the other 261/274 (95.3%) oseltamivir-resistant sequences, but only in 440/2582 (17.0%) of other sequences. It may be interesting to track if a G249K mutation increases fitness in S-OIV oseltamivir-resistant sequences.
Example: Tracking the K136 residue
Recently, NA K136 has been linked to zanamivir resistance  . By selecting this residue, we can view the temporal and geographic distribution of this important mutation (Figure 3). This residue is present in 11 neuraminidase sequences available in GenBank. None of the 11 sequences is part of the S-OIV pandemic. The earliest sequence with this mutation is from 30 May 2006, from the Philippines. It has been present in 4 sequences in 2006, 3 in 2007 and 4 in 2008. It has not yet been encountered in 2009. Note that in this case, the zanamivir resistance information is contained in a linked reference, not in the GenBank record itself. Although we can track any position’s character value with SeqMonitor, the metadata are not complete if the parser cannot find the appropriate tags. Manual curation is necessary to keep the system accurate.
The primary motivations for SeqMonitor are to facilitate the identification of characteristic mutations for a given sequence set and to detect new sequence variants as they emerge in the public databases. SeqMonitor can allow the exploitation of a growing body of general and strain-specific knowledge about the influenza A virus, as new site information can be added to the system as results are described in the literature  . Currently, the SeqMonitor web application and data warehouse supports the H1N1 hemagglutinin and neuraminidase genes, but we will be expanding the system to track other subtypes and genes, which will allow analysis of resistance to antivirals such as the M2-targeting adamantane. The system is sufficiently generic that it can be adapted to any set of homologous sequences for which annotation is available, although the clarity and reliability of the analysis are highest when sequences are very similar and differ by few or no insertion and deletion mutations.
Development of SeqMonitor was supported in part by Genome Atlantic. NJM is supported by an NSERC postgraduate scholarship. DHP is supported by the Killam Trusts. RGB acknowledges the support of the Canada Research Chairs program.
The authors declare that they have no competing financial interests.
- Fraser C, Donnelly CA, Cauchemez S, Hanage WP, Van Kerkhove MD, Hollingsworth TD, Griffin J, Baggaley RF, Jenkins HE, Lyons EJ, Jombart T, Hinsley WR, Grassly NC, Balloux F, Ghani AC, Ferguson NM, Rambaut A, Pybus OG, Lopez-Gatell H, Alpuche-Aranda CM, Chapela IB, Zavala EP, Guevara DM, Checchi F, Garcia E, Hugonnet S, Roth C; WHO Rapid Pandemic Assessment Collaboration. Pandemic potential of a strain of influenza A (H1N1): early findings. Science. 2009 Jun 19;324(5934):1557-61. Epub 2009 May 11. PubMed PMID: 19433588.
- Rambaut A, Holmes EC. The early molecular epidemiology of the swine-origin A/H1N1 human influenza pandemic. PLoS Currents: Influenza. 2009 August 18:RRN1003.
- World Health Organization (2009) Pandemic (H1N1) 2009 - update 65. Cited 2009 Sep 16. http://www.who.int/csr/don/2009_09_11/en/index.html
- Hurt AC, Holien JK, Parker M, Kelso A, Barr IG. Zanamivir-Resistant Influenza Viruses with a Novel Neuraminidase Mutation. J Virol. 2009 Jul 29. [Epub ahead of print] PubMed PMID: 19641000.
- Maurer-Stroh S, Ma J, Lee RT, Sirota FL, Eisenhaber F. Mapping the sequence mutations of the 2009 H1N1 influenza A virus neuraminidase relative to drug and antibody binding sites. Biol Direct. 2009 May 20;4:18; discussion 18. PubMed PMID: 19457254; PubMed Central PMCID: PMC2691737.
- Lee MS, Chen MC, Liao YC, Hsiung CA. Identifying potential immunodominant positions and predicting antigenic variants of influenza A/H3N2 viruses. Vaccine. 2007 Nov 23;25(48):8133-9. Epub 2007 Oct 5. PubMed PMID: 17950961.
- Parks DH, MacDonald NM, Beiko RG. Tracking the evolution and geographic spread of Influenza A. PLoS Currents: Influenza. 2009 Aug 27:RRN1014
- Parks DH, Porter M, Churcher S, Wang S, Blouin C, Whalley J, Brooks S, Beiko RG. GenGIS: A geospatial information system for genomic data. Genome Res. 2009 Sep 1. [Epub ahead of print] PubMed PMID: 19635847.
- Cock PJ, Antao T, Chang JT, Chapman BA, Cox CJ, Dalke A, Friedberg I, Hamelryck T, Kauff F, Wilczynski B, de Hoon MJ. Biopython: freely available Python tools for computational molecular biology and bioinformatics. Bioinformatics. 2009 Jun 1;25(11):1422-3. Epub 2009 Mar 20. PubMed PMID: 19304878; PubMed Central PMCID: PMC2682512.
- Edgar RC. MUSCLE: multiple sequence alignment with high accuracy and high throughput. Nucleic Acids Res. 2004 Mar 19;32(5):1792-7. Print 2004. PubMed PMID: 15034147; PubMed Central PMCID: PMC390337.
- Han J, Kamber M. Data mining: concepts and techniques. (Second edition, 2006). San Francisco: Morgan Kauffman.
- Lombardot T, Kottmann R, Pfeffer H, Richter M, Teeling H, Quast C, Glöckner FO. Megx.net--database resources for marine ecological genomics. Nucleic Acids Res. 2006 Jan 1;34(Database issue):D390-3. PubMed PMID: 16381894; PubMed Central PMCID: PMC1347433.
- Sheu TG, Deyde VM, Okomo-Adhiambo M, Garten RJ, Xu X, Bright RA, Butler EN, Wallis TR, Klimov AI, Gubareva LV. Surveillance for neuraminidase inhibitor resistance among human influenza A and B viruses circulating worldwide from 2004 to 2008. Antimicrob Agents Chemother. 2008 Sep;52(9):3284-92. Epub 2008 Jul 14. PubMed PMID: 18625765; PubMed Central PMCID: PMC2533500.
- Garten RJ, Davis CT, Russell CA, Shu B, Lindstrom S, Balish A, Sessions WM, Xu X, Skepner E, Deyde V, Okomo-Adhiambo M, Gubareva L, Barnes J, Smith CB, Emery SL, Hillman MJ, Rivailler P, Smagala J, de Graaf M, Burke DF, Fouchier RA, Pappas C, Alpuche-Aranda CM, López-Gatell H, Olivera H, López I, Myers CA, Faix D, Blair PJ, Yu C, Keene KM, Dotson PD Jr, Boxrud D, Sambol AR, Abid SH, St George K, Bannerman T, Moore AL, Stringer DJ, Blevins P, Demmler-Harrison GJ, Ginsberg M, Kriner P, Waterman S, Smole S, Guevara HF, Belongia EA, Clark PA, Beatrice ST, Donis R, Katz J, Finelli L, Bridges CB, Shaw M, Jernigan DB, Uyeki TM, Smith DJ, Klimov AI, Cox NJ. Antigenic and genetic characteristics of swine-origin 2009 A(H1N1) influenza viruses circulating in humans. Science. 2009 Jul 10;325(5937):197-201. Epub 2009 May 22. PubMed PMID: 19465683.
- Xu X, Zhu X, Dwek RA, Stevens J, Wilson IA. Structural characterization of the 1918 influenza virus H1N1 neuraminidase. J Virol. 2008 Nov;82(21):10493-501. Epub 2008 Aug 20. PubMed PMID: 18715929; PubMed Central PMCID: PMC2573172.
- Stevens J, Corper AL, Basler CF, Taubenberger JK, Palese P, Wilson IA. Structure of the uncleaved human H1 hemagglutinin from the extinct 1918 influenza virus. Science. 2004 Mar 19;303(5665):1866-70. Epub 2004 Feb 5. PubMed PMID: 14764887.
- Shih AC, Hsiao TC, Ho MS, Li WH. Simultaneous amino acid substitutions at antigenic sites drive influenza A hemagglutinin evolution. Proc Natl Acad Sci U S A. 2007 Apr 10;104(15):6283-8. Epub 2007 Mar 29. PubMed PMID: 17395716; PubMed Central PMCID: PMC1851070.