EnsEMBL Core Schema Documentation

Introduction

This document gives a high-level description of the tables that make up the EnsEMBL core schema. Tables are grouped into logical groups, and the purpose of each table is explained. It is intended to allow people to familiarise themselves with the schema when encountering it for the first time, or when they need to use some tables that they've not used before. Note that while some of the more important columns in some of the tables are discussed, this document makes no attempt to enumerate all of the names, types and contents of every single table. Some concepts which are referred to in the table descriptions are given at the end of this document; these are linked to from the table description where appropriate.

Different tables are populated throughout the gene build process:

Step Process
0 Create empty schema, populate meta table
1 Load DNA - populates dna, clone, contig, chromosome, assembly tables
2 Analyze DNA (raw computes) - populates genomic feature/analysis tables
3 Build genes - populates exon, transcript,etc. gene-related tables
4a Analyze genes - populate protein_feature, xref tables, interpro
4b ID mapping

This document refers to version 15 of the EnsEMBL core schema. You are looking at revision 1.21 of this document.

Diagrams:


Quick links to tables:

Fundamental tables

Features and analyses

ID Mapping (Tables involved in mapping identifiers between releases)

Exernal references (Tables used for storing links to and details about objects that are stored in other databases)

Miscellaneous (Tables that don't fit anywhere else.)


Fundamental tables

clone

Contains information about BAC clones inside the EnsEMBL database. As this was the way that DNA came into EnsEMBL for the human genome, all DNA has to be specified in terms of BAC clones, even if they don't exist. Also, some of the BAC clones in early versions of the EnsEMBL database haven't been submitted to EMBL but were Sanger Institute internal BAC names. This is why clone has two different possible identifiers (and versions for each of them). Note that although there are many dates inside this table, they are not well maintained. The htg_phase column describes whether High Throughput Genomic sequencing is finished or unfinished: draft is 123, finished is 4.

contig

A contig is a piece of DNA inside a clone that is contiguous i.e. not interupted by sequencing gaps. One or more contigs made up the BAC clone sequence. Due to this historical importance, they are currently the reference coordinate system for all features inside EnsEMBL, although not all species come in clones/contigs. Contigs directly link to dna table entries which contain the actual sequence information. Currently, fake clone and contig entries must be faked for genomes that don't have these things. The sequence is that of the contig, not that of the golden path, i.e. to construct the golden path from the dna entries, the sequence of contigs with an orientation of -1 must be reversed and bases complemented. The assembly table has the contig orientation (raw_ori). Note the length of the dna.sequence field is always equal to the appropriate length field in the contig table.

dna

Contains DNA sequence. This table has a 1:1 relationship with the contig table.

See also:

Tables:

assembly

Describes how contig sequences make up the chromosomal sequence. The data in this table defines the "static golden path", i.e. the best effort draft full genome sequence as determined by the UCSC or NCBI (depending which assembly you are using) Each row represents a contig (raw_id, FK from contig table) at least part of which is present in the golden path. The part of the contig that is in the path is delimited by fields raw_start and raw_end and the absolute position within the golden path chromosome (chromosome_id) is given by chr_start and chr_end. Each contig is in a "supercontig" such as a "fingerprint clone contig" or NT contig and the super contig is identified by the superctg_name column and the position of the specified section of the contig within its supercontig is given by fields superctg_start and superctg_end.

See also:

Tables:

Concepts:

chromosome

Describes chromosomes. Currently contains the name and length of each chromosome for the species. Currently also contains additional rows to allow genes to be stored even if the chromosome on which the gene appears is not positively identified.

karyotype

Describes bands that can be stained on the chromosome.

exon

Stores data about exons. Associated with transcripts via exon_transcript. Allows access to contigs via the contig_* columns. The sticky_rank differentiates between fragments of the same exon; i.e for exons that span multiple contigs, all the fragments are in this table with the same id, but different sticky_rank values.

See also:

Tables:

Concepts:

exon_stable_id

Relates exon IDs in this release to release-independent stable identifiers.

See also:

Concepts:

transcript

TBC Note that a transcript is usually associated with a translation, but may not be, e.g. in the case of pseudogenes and RNA genes (those that code for RNA molecules).

transcript_stable_id

Relates transcript IDs in this release to release-independent stable identifiers.

See also:

Concepts:

exon_transcript

Relationship table linking exons with transcripts. The rank column ndicates the 5' to 3' position of the exon within the transcript, i.e. a rank of 1 means the exon is the 5' most within this transcript.

See also:

Tables:

gene

Allows transcripts to be related to genes.

gene_stable_id

Relates gene IDs in this release to release-independent stable identifiers.

See also:

Concepts:

gene_description

Where appropriate, allows specific genes to be given a description.

See also:

Tables:

translation

Describes which parts of which exons are used in translation. The seq_start and seq_end columns are 1-based offsets into the *relative* coordinate system of start_exon_id and end_exon_id. i.e, if the translation starts at the first base of the exon, seq_start would be 1.

translation_stable_id

Relates translation IDs in this release to release-independent stable identifiers.

See also:

Concepts:

supporting_feature

Describes the exon prediction process by linking exons to DNA or protein alignment features. As in several other tables, the feature_id column is a foreign key; the feature_type column specifies which table feature_id refers to.

meta

Stores data about the data in the current schema. Taxonomy information, version information and the default value for the type column in the assembly table are stored here. Unlike other tables, data in the meta table is stored as key/value pairs.

See also:

Tables:


Features and analyses

analysis

Usually describes a program and some database that together are used to create a feature on a piece of sequence. Each feature is marked with an analysis_id. The most important column is logic_name, which is used by the webteam to render a feature correctly on contigview (or even retrieve the right feature). Logic_name is also used in the pipeline to identify the analysis which has to run in a given status of the pipeline. The module column tells the pipeline which Perl module does the whole analysis, typically a RunnableDB module.

dna_align_feature

Stores DNA sequence alignments generated from Blast (or Blast-like) comparisons.

See also:

Concepts:

protein_align_feature

Stores translation alignments generated from Blast (or Blast-like) comparisons.

See also:

Concepts:

repeat_feature

Describes sequence repeat regions.

marker_feature

Used to describe marker positions.

See also:

Tables:

qtl_feature

Describes Quantitative Trail Loci (QTL) positions as obtained from inbreeding experiments. Note the values in this table are in chromosomal co-ordinates. Also, this table is not populated all schemas.

See also:

Tables:

prediction_transcript

Stores information about ab initio gene transcript predictions.

simple_feature

Describes general genomic features that don't fit into any of the more specific feature tables.

protein_feature

Describes features on the translations (as opposed to the DNA sequence itself), i.e. parts of the peptide. In peptide co-ordinates rather than contig co-ordinates.

See also:

Tables:

Concepts:

qtl

Describes the markers (of which there may be up to three) which define Quantitative Trait Loci. Note that QTL is a statistical technique used to find links between certain expressed traits and regions in a genetic map.

See also:

Tables:

qtl_synonym

Describes alternative names for Quantitative Trait Loci (QTLs).

marker

Stores data about the marker itself - e.g. the primer sequences used.

See also:

Tables:

marker_map_location

Allows storage of information about the postion of a marker.

See also:

Tables:

marker_synonym

Stores alternative names for markers, as well as their sources.

See also:

Tables:

repeat_consensus

Stores consenus sequences obtained from analysing repeat features.


ID Mapping

Tables involved in mapping identifiers between releases

mapping_session

Stores details of ID mapping sessions - a mapping session represents the session when stable IDs where mapped from one database to another. Details of the "old" and "new" databases are stored.

See also:

Tables:

Concepts:

stable_id_event

Represents what happened to all gene, transcript and translation stable IDs during a mapping session. This includes which IDs where deleted, created and related to each other. Each event is represented by one or more rows in the table.

See also:

Tables:

gene_archive

Contains a snapshot of the stable IDs associated with genes deleted or changed between releases. Includes gene, transcript and translation stable IDs.

peptide_archive

Contains the peptides for deleted or changed translations.


Exernal references

Tables used for storing links to and details about objects that are stored in other databases

xref

Holds data about objects which are external to EnsEMBL, but need to be associated with EnsEMBL objects. Information about the database that the external object is stored in is held in the external_db table entry referred to by the external_db column.

See also:

Tables:

external_db

Stores data about the external databases in which the objects described in the xref table are stored.

See also:

Tables:

external_synonym

Some xref objects can be referred to by more than one name. This table relates names to xref IDs.

See also:

Tables:

object_xref

Describes links between EnsEMBL objects and objects held in external databases. The EnsEMBL object can be one of several types; the type is held in the ensembl_object_type column. The ID of the particular EnsEMBL gene, translation or whatever is given in the ensembl_id column. The xref_id points to the entry in the xref table that holds data about the external object.Each EnsEMBL object can be associated with zero or more xrefs. An xref object can be associated with one or more EnsEMBL objects.

See also:

Tables:

go_xref

Links between EnsEMBL objects and external objects produced by GO (Gene Ontology) require some additional data which is not stored in the object_xref table.

See also:

Tables:

Links:

identity_xref

Describes how well a particular xref obeject matches the EnsEMBL object.

See also:

Tables:


Miscellaneous

Tables that don't fit anywhere else.

interpro

Allows storage of links to the InterPro database. InterPro is a database of protein families, domains and functional sites in which identifiable features found in known proteins can be applied to unknown protein sequences.

See also:

Links:


Concepts

co-ordinates

There are several different co-ordinate systems used in the EnsEMBL database and API. For every co-ordinate system, the fundamental unit is one base. The differences between co-ordinate systems lie in where a particular numbered base lies, and the start position it is relative to. CONTIG co-ordinates, also called 'raw contig' co-ordinates or 'clone fragments' are relative to the first base of the first contig of a clone. Note that the numbering is from 1, i.e. the very first base of the first contig of a clone is numbered 1, not 0. In CHROMOSOMAL co-ordinates, the co-ordinates are relative to the first base of the chromosome. Again, numbering is from 1.

supercontigs

A supercontig is made up of a group of adjacent or overlapping contigs.

sticky_rank

The sticky_rank differentiates between fragments of the same exon; i.e for exons that span multiple contigs, all the fragments would have the same ID, but different sticky_rank values

stable_id

Gene predictions have changed over the various releases of the EnsEMBL databases. To allow the user to track particular gene predictions over changing co-ordinates, each gene-related prediction is given a 'stable identifier'. If a prediction looks similar between two releases, we try to give it the same name, even though it may have changed position and/or had some sequence changes.

cigar_line

This allows the compact storage of gapped alignments by storing the maximum extent of the matches and then a text string which encodes the placement of gaps inside the alignment. Colloquially inside Ensembl this is called a and its adoption has shrunk the number of rows in the feature table around 4-fold.