• We are sorry, but NCBI web applications do not support your browser and may not function properly. More information
Logo of bioinfoLink to Publisher's site
Bioinformatics. Dec 1, 2008; 24(23): 2672–2676.
Published online Oct 9, 2008. doi:  10.1093/bioinformatics/btn529
PMCID: PMC2606163
EMSID: UKMS2904

Artemis and ACT: viewing, annotating and comparing sequences stored in a relational database

Abstract

Motivation: Artemis and Artemis Comparison Tool (ACT) have become mainstream tools for viewing and annotating sequence data, particularly for microbial genomes. Since its first release, Artemis has been continuously developed and supported with additional functionality for editing and analysing sequences based on feedback from an active user community of laboratory biologists and professional annotators. Nevertheless, its utility has been somewhat restricted by its limitation to reading and writing from flat files. Therefore, a new version of Artemis has been developed, which reads from and writes to a relational database schema, and allows users to annotate more complex, often large and fragmented, genome sequences.

Results: Artemis and ACT have now been extended to read and write directly to the Generic Model Organism Database (GMOD, http://www.gmod.org) Chado relational database schema. In addition, a Gene Builder tool has been developed to provide structured forms and tables to edit coordinates of gene models and edit functional annotation, based on standard ontologies, controlled vocabularies and free text.

Availability: Artemis and ACT are freely available (under a GPL licence) for download (for MacOSX, UNIX and Windows) at the Wellcome Trust Sanger Institute web sites: http://www.sanger.ac.uk/Software/Artemis/ http://www.sanger.ac.uk/Software/ACT/

Contact: artemis/at/sanger.ac.uk

Supplementary information: Supplementary data are available at Bioinformatics online.

1 INTRODUCTION

Artemis (Berriman and Rutherford, 2003; Rutherford et al., 2000) and the Artemis Comparison Tool (Carver et al., 2005) (ACT) have gathered increasing number of users since their initial release with more than 33 000 downloads in 2007 (Fig. 1) from over 90 countries. Artemis is a sequence viewer and annotation tool. It is used primarily not only for genome annotation but also for DNA visualization and analysis, and as a teaching aid. The user can view the sequence and features in context at different levels of granularity from the amino acids to the complete genome level, with continuous zooming between these levels. Artemis includes clear and interactive navigation, customizable search facilities, predefined and user-configurable graphical plots and statistical overviews. ACT is an extension that makes use of the Artemis components to display pairwise comparisons between two or more sequences. Therefore, ACT inherits a lot of the functionality found in Artemis. ACT is used to identify and analyse regions of similarity and difference between genomes and to explore conservation of synteny, in the context of the entire sequences and their annotation.

Fig. 1.
Download statistics for Artemis and ACT for each year from 2001–2007.

Artemis and ACT were originally designed to read and write flat files in the common sequence formats (EMBL, GenBank, FASTA and GFF3) to display and edit sequence and annotation, and they continue to be able to work in this mode. This works well for many uses but does restrict Artemis to single user access when annotating sequences. A previous way around this problem was to split the files up and merge them back after editing. This is far from ideal, particularly for large multi-user projects. To maximize the potential of Artemis as a tool for community annotation, Artemis has been extended to connect to a relational database, and now supports reading and writing to the GMOD Chado schema.

Artemis and ACT use the iBatis Data Mapper framework (http://ibatis.apache.org) to map Java objects to SQL parameters and result sets. For each of the tables in the Chado schema that are used, an XML descriptor file is used to define the mapping. This has the advantage of simplifying the Artemis code by separating it from the SQL and it also means that there is complete control over the SQL queries, without modification of the Artemis code.

An alpha-version of the software presented here was robustly tested during a week-long Plasmodium falciparum (malaria) re-annotation workshop in October 2007. Fixes, additional functionality and further optimizations stemming from this were then included in the new releases of Artemis v.10 and ACT v.7.

2 IMPLEMENTATION

2.1 Artemis and ACT reading and writing in database mode

Artemis and ACT can be launched in database mode from a web launch or from the command line. Connection to the database is established via Java Database Connectivity (JDBC) and by specifying the database location and the JDBC driver, for example:

equation image

This prompts for a password for the given username. For a read-only database the flag –Dread_only will suppress the password prompt. On successfully logging in a database and file manager window opens showing an expandable organism tree (Fig. 2). Double clicking on the sequence names opens them in Artemis. ACT currently still works with comparison flat files but the sequences themselves can be dragged from the database manager into the ACT file requestor. It is possible to store comparative regions in Chado so that ACT could in the future read this information from the database as well. All of the sequence and annotations are read from the database when the interface is opened. The exceptions to this are the cluster and orthologue and paralogue data that are read lazily; that is that they are only fully read in from the database when they are viewed in the Gene Builder. Loading these data into Artemis in this way speeds up the initial process of opening the sequence in the interface. For future releases of this software, lazy loading of the majority of the annotation will be explored. This is likely to become more important as the database grows.

Fig. 2.
The Artemis database and file manager. The organisms in the database are shown at the top. Double clicking on the chromosome opens it up in Artemis. The file management system also provides access to local (middle panel) and remote file systems (via ssh; ...

Annotation within Artemis traditionally centres around ‘feature keys’ used by the International Nucleotide Sequence Database Collaboration (INSDC), which label-specific annotation types within a flat-file format. In particular, protein-coding sequences or ‘CDS’ were the default annotation objects, although other feature keys could be specified. The Chado schema is designed to store descriptions of any feature that can be located in a genome. For instance, it holds a complete gene model consisting of the gene itself, transcripts, exons, untranslated regions (UTRs) and polypeptides. It makes use of the Sequence Ontology (SO, http://www.sequenceontology.org/) (Eilbeck et al., 2005) to represent these data, such that a full hierarchy of genome features can be added. The CDS features themselves are not stored, as they can then be inferred from the coordinates of the other features. SO is designed to describe biological sequences including located sequence features, for example, polymorphisms, polypeptide domains and predictions. All these feature types can therefore be stored in Chado and viewed in Artemis and ACT.

In database mode, the majority of the functionality and appearance of Artemis has been maintained (Fig. 3). However, Artemis has been changed to be able to handle the hierarchy of constituent features relating to genes (exons, transcripts, polypeptides, etc.). It was also a requirement that it was able to present the annotation in a structured manner and able to handle the main underlying ontologies, i.e. gene, sequence and relationship.

Fig. 3.
Snapshot of Artemis in database mode displaying chromosome 1 of P. falciparum. The sequence and feature displays are identical to the standard Artemis. There is a ‘Commit’ button at the top right of the interface for writing back to the ...

A Gene Builder tool has been developed for displaying and manipulating the gene hierarchy and associated annotation. A gene is created by highlighting a base range and selecting, from the ‘Create’ menu, the ‘Gene Model From Base Range’ option. The basic constituent features are created; i.e. gene, transcript, CDS and polypeptide. Artemis joins exon features from the underlying database that are part of the same transcript and represents them as a CDS feature, which is shown on the reading frame lines in its main display. For clarity, the polypeptide and transcript features are hidden in the feature display window and appear greyed out in the feature list as illustrated in Figure 3. Note there is an option in the feature display pop-up menu to control what features are hidden. This can be used to hide features that are not of interest during a session.

2.2 Artemis Gene Builder

A Gene Builder window for a selected gene feature can be opened from the ‘Edit’ menu by selecting the ‘Selected Feature in Editor’ option. The gene structure and feature annotation are two distinct parts of the Gene Builder (Fig. 4), and are described below. In general the majority of the annotation is attached to the polypeptide, although the system allows annotation to any object within the gene hierarchy. Therefore when a CDS is selected, and the Gene Builder opened for the corresponding gene, it displays the annotation on the polypeptide.

Fig. 4.
The Gene Builder showing a gene hierarchy at the top and underneath the annotation for the associated polypeptide.

2.2.1 Gene hierarchy and structure

In the top left-hand side of the Gene Builder is a tree structure of the gene model. To the right of this is a Gene Map, a graphical representation of the features. These show the gene hierarchy as described by SO. A feature can be selected from either the tree or the graphical view. The annotation for the selected feature is displayed in the bottom part of the Gene Builder.

Another new feature the Gene Builder brings to Artemis is the ability to display protein maps (Fig. 5). If there is any polypeptide predictions associated with a feature then a Protein Map tab is shown. When selected this displays the information about the protein and the predictions, e.g. InterPro (Mulder et al., 2007), SignalP (Bendtsen et al., 2004) and others.

Fig. 5.
An example of a Protein Map in the Gene Builder. The details of the domain predictions are shown in mouse-over tool-tips. The protein database features (e.g. Pfam, Prosite) can be clicked on to open that entry in a browser window.

Structural changes can be carried out in the graphical view. Feature ends can be selected and dragged to adjust their coordinates.

On right clicking on this area a pop-up menu allows features to be added or deleted in the gene model. Exons are added by highlighting a range in the Gene Builder window, clicking the left mouse button and dragging, and then adding an exon from the pop-up menu. The exon coordinates can be refined by dragging the exon boundary in the zoomed-in (base-level) view of the main Artemis window. Multiple transcripts (Fig. 6) and their associated exons can be added to the gene model. In previous versions of Artemis, it could prove difficult to build and annotate overlapping splice forms from a single gene. Therefore, in order to make it easier to deal with overlapping features in the Gene Builder, a checkbox for each transcript can be used to show and hide them in the main Artemis window.

Fig. 6.
Example of a gene with multiple transcripts in the graphical view of the gene hierarchy in the Gene Builder. Each transcript is a child node of the gene in the tree on the left with its associated features displayed when expanded. To assist in building ...

2.2.2 Location, keys and annotation

For the selected feature in the gene model, the location, key and annotation are displayed under the gene model hierarchy and graphical structure. To emphasize which of the features the annotation shown belongs to, its name is displayed above the feature key selector. The coordinates and feature key can be changed here.

Instead of the free text used in the original Artemis editor, the Gene Builder provides a structured means of annotating. There are four annotation sections in the Gene Builder described below. A check box at the bottom of the Gene Builder changes between a scrollable and a tabbed view of the sections. In the scrollable view, the sections have hide (−) and show (+) buttons and empty sections are automatically hidden.

  1. Properties: this contains feature properties, such as synonyms and time last modified. Synonyms are categorized using the controlled vocabulary tables in Chado. The time last modified is updated when a change to that feature is written back to the database. It is often desirable for data from previous annotation versions to still be available, therefore in this section of the Gene Builder there is a checkbox to mark features and entire gene models as obsolete. This hides them from view in the main Artemis window, but they are still available from the feature list at the bottom.
  2. Core: the core annotation contains any annotation that does not fit into the other sections. For example, free-text comments and cross-links to the scientific literature. Hyperlinks are provided for databases (e.g. UniProt, EMBL, PubMed and others defined in the options file) that open up a local browser.
  3. Controlled vocabulary (CV): the CV module in the schema is concerned with controlled vocabularies or ontologies. Artemis uses biological ontologies to allow very precise and expressive annotation. A form is provided for adding and deleting Gene Ontology (GO; http://www.geneontology.org/) descriptions, product, Riley class and other controlled annotations, which are stored in the CV tables. When adding a term to a feature the CV (e.g. product) and a keyword (e.g. histone) are prompted for. The term to be added is then selected from a drop down list of terms containing the word or phrase. Additional controlled curations can be shown if their CV name in Chado is prefixed with ‘CC_’ (e.g. CC_workshop).
  4. Match: orthologue and paralogue links can be added to other genes in the database in this section. Externally calculated paralagous gene clusters can also be displayed here. There are links for opening the Gene Builder for each matched gene entry or for opening a separate Artemis instance displaying the gene and the surrounding features. Future developments to the Gene Builder will add to this and incorporate annotation transfer mechanisms. For example, the user will be able to specify the annotation to transfer to or from the selected genes in the list of matches.

2.3 Writing to the database

When a feature or qualifier is changed, added or deleted the ‘Commit’ button (on the top tool bar) changes colour to red. Changes only get written back to the database when this button is clicked. There is also an option under the ‘File’ menu to ‘Commit To Database’. In ACT, there is no commit button and committing back to the database is carried out from the menus.

If there is an error during the commit then an option to force commit is provided and Artemis will commit what it can. The Apache Log4j (http://logging.apache.org/log4j) framework has been used to provide logging information in the Artemis log window (Fig. 7). Using the standard configuration file (log4j.properties) the logging can be directed to a file. The database read and write statements are logged as SQL as well as a more human readable notation of the write (insert, update and delete) statements. This is useful for monitoring progress and generating statistics for the annotation process.

Fig. 7.
Snapshot of the Artemis log viewer, using log4j to generate log messages and errors. It records SQL statements and can be used to monitor changes to the database. The last seven lines in this log are generated to show the changes made to the database ...

In Artemis and ACT, additional features from files can be read in and overlaid on the database entry. If they are of the correct sequence ontology they can then be bulk loaded into the database. This is done in the interface by selecting the features and moving them to the database entry. These features can then be committed to the database.

Flat files are still needed for submission and to run external analyses on. It is therefore possible to write out EMBL flat files from the database entry in Artemis. The default option is to flatten the gene hierarchy and transfer the annotation onto a CDS feature.

2.4 Community annotation

Multiple users can launch Artemis and ACT clients and both query and modify the database simultaneously. This enables multiple annotators to work on the same sequence at the same time. This has been stress tested and used in a Plasmodium falciparum (malaria) genome re-annotation workshop (October 2007). More than 30 scientists used Artemis clients to simultaneously connect to a single database and annotate the genome. Access to the database was also made available to the course participants via a virtual private network (VPN) after the course. External public access to this data is also possible (read only) via local instances of Artemis connecting to a copy of the database at the Sanger Institute (http://www.sanger.ac.uk/Software/Artemis/databases/).

For selected features, BLAST and FASTA results can be generated in Artemis via the Run menu. The results are written to a file. For community projects, these need to be stored in a central file system or copied to the different sites involved. A future development for Artemis is likely to make use of optionally storing search results files directly within the database, or a specific results file server to simplify data management within large shared projects.

To ensure that users do not overwrite each other's annotation, Artemis records the time each feature was last modified. This is then checked against the database time stamp of the features before the changes are written to the database. If the corresponding feature in the database has been changed by another user, Artemis will warn that this has occurred and ask whether to continue with the commit process, thus allowing a forced overwrite of previous changes, where necessary.

3 DISCUSSION

From their conception Artemis and ACT have been designed to be extensible. This has enabled them to have functionality added as needed and to evolve with the requirements of various levels of users. Artemis (version 10) and ACT (version 7), using iBatis mappings and JDBC, can now connect to and read and write to a Chado relational database. This allows access from multiple clients to sequence data. A form of optimistic versioning is used so that Artemis will warn a user if another user has modified the feature they are updating during that Artemis session.

Annotation is displayed and edited in a structured manner in the new Artemis Gene Builder using predefined and standard ontologies. Links within the database can be used to open up separate Gene Builders and Artemis windows for individual regions. Hyperlinks to external databases launching a local browser window allow rapid and easy linking to relevant external data sources.

Using the gene hierarchy allows more fine-grained annotation, with multiple alternate transcripts, CDSs, UTRs, etc. In addition, the standardized ontology-based schema allows Artemis to be both a powerfully expressive and extremely precise annotation tool.

Artemis and ACT can be used to display and annotate both eukaryotes and prokaryotes. A eukaryotic example has been presented here but, because SO terms define the data model, Chado can be used to describe prokaryotes as well. Prokaryote genes are created in the same way and represented with a simple gene model with a gene, transcript and a single CDS. Prokaryote annotations can also use the Riley class, which is stored as a controlled vocabulary.

Supplementary Material

[Supplementary Data]

ACKNOWLEDGEMENTS

This article is dedicated to the memory of Marie-Adèle Rajandream. We would like to thank Professor Christopher Newbold (University of Oxford Institute of Molecular Medicine) for his suggestions on improving the design of the Artemis Gene Builder.

Funding: This work was supported by the Wellcome Trust through their funding of the Pathogen Genomics group at the Wellcome Trust Sanger Institute.

Conflict of Interest: none declared.

REFERENCES

  • Bendtsen JD, et al. Improved prediction of signal peptides: SignalP 3.0. J. Mol. Biol. 2004;340:783–795. [PubMed]
  • Berriman M, Rutherford K. Viewing and annotating sequence data with Artemis. Brief. Bioinform. 2003;4:124–132. [PubMed]
  • Carver TJ, et al. ACT: the Artemis Comparison Tool. Bioinformatics. 2005;21:3422–3423. [PubMed]
  • Eilbeck K, et al. The Sequence Ontology: a tool for the unification of genome annotations. Genome Biol. 2005;6:R44. [PMC free article] [PubMed]
  • Mulder NJ, et al. New developments in the InterPro database. Nucleic Acids Res. 2007;35:D224–D228. [PMC free article] [PubMed]
  • Rutherford K, et al. Artemis: sequence visualisation and annotation. Bioinformatics. 2000;16:944–945. [PubMed]

Articles from Bioinformatics are provided here courtesy of Oxford University Press

Formats:

Related citations in PubMed

See reviews...See all...

Links

Recent Activity

Your browsing activity is empty.

Activity recording is turned off.

Turn recording back on

See more...