Schema for ensGene
  Database: dm3    Primary Table: ensGene    Row Count: 29,173   Data last updated: 2014-03-11
Format description: A gene prediction with some additional info.
On download server: MariaDB table dump directory
fieldexampleSQL type info description
bin 585smallint(5) unsigned range Indexing field to speed chromosome range queries.
name FBtr0300689varchar(255) values Name of gene (usually transcript_id from GTF)
chrom chr2Lvarchar(255) values Reference sequence chromosome or scaffold
strand +char(1) values + or - for strand
txStart 7528int(10) unsigned range Transcription start position (or end position for minus strand item)
txEnd 9484int(10) unsigned range Transcription end position (or start position for minus strand item)
cdsStart 7679int(10) unsigned range Coding region start (or end position for minus strand item)
cdsEnd 8610int(10) unsigned range Coding region end (or start position for minus strand item)
exonCount 2int(10) unsigned range Number of exons
exonStarts 7528,8192,longblob   Exon start positions (or end positions for minus strand item)
exonEnds 8116,9484,longblob   Exon end positions (or start positions for minus strand item)
score 0int(11) range score
name2 FBgn0031208varchar(255) values Alternate name (e.g. gene_id from GTF)
cdsStartStat cmplenum('none', 'unk', 'incmpl', 'cmpl') values Status of CDS start annotation (none, unknown, incomplete, or complete)
cdsEndStat cmplenum('none', 'unk', 'incmpl', 'cmpl') values Status of CDS end annotation (none, unknown, incomplete, or complete)
exonFrames 0,2,longblob   Reading frame of the start of the CDS region of the exon, in the direction of transcription (0,1,2), or -1 if there is no CDS region.

Connected Tables and Joining Fields
        dm3.ensGtp.transcript (via ensGene.name)
      dm3.ensPep.name (via ensGene.name)
      dm3.ensemblSource.name (via ensGene.name)
      dm3.ensemblToGeneName.name (via ensGene.name)
      knownGeneV39.knownToEnsembl.value (via ensGene.name)

Sample Rows
 
binnamechromstrandtxStarttxEndcdsStartcdsEndexonCountexonStartsexonEndsscorename2cdsStartStatcdsEndStatexonFrames
585FBtr0300689chr2L+752894847679861027528,8192,8116,9484,0FBgn0031208cmplcmpl0,2,
585FBtr0300690chr2L+752894847679927637528,8192,8667,8116,8589,9484,0FBgn0031208cmplcmpl0,2,0,
585FBtr0330654chr2L+752894847679861027528,8228,8116,9484,0FBgn0031208cmplcmpl0,2,
585FBtr0078166chr2L-983821376112141994499838,11409,11778,12285,13519,13682,14932,19884,21135,11344,11518,12221,12928,13625,14874,15711,20020,21376,0FBgn0002121cmplcmpl2,1,2,1,0,2,0,0,-1,
585FBtr0078167chr2L-983821376112141564899838,11409,11778,12285,13519,13682,14932,19879,21065,11344,11518,12221,12928,13625,14874,15711,20020,21376,0FBgn0002121cmplcmpl2,1,2,1,0,2,0,-1,-1,
585FBtr0078168chr2L-983821376112141564899838,11409,11778,12285,13519,13682,14932,19879,21065,11344,11518,12221,12928,13625,14874,15711,20015,21376,0FBgn0002121cmplcmpl2,1,2,1,0,2,0,-1,-1,
585FBtr0078169chr2L-9838213761121415648109838,11409,11778,12285,13519,13682,14932,19879,21065,21348,11344,11518,12221,12928,13625,14874,15711,20020,21200,21376,0FBgn0002121cmplcmpl2,1,2,1,0,2,0,-1,-1,-1,
585FBtr0306589chr2L-9838213761121417136109838,11409,11778,12285,13519,13682,14932,17052,19879,21135,11344,11518,12221,12928,13625,14874,15711,17212,20015,21376,0FBgn0002121cmplcmpl2,1,2,1,0,2,0,0,-1,-1,
585FBtr0306590chr2L-983821376112141713699838,11409,11778,12285,13519,13682,14932,17052,21135,11344,11518,12221,12928,13625,14874,15711,17212,21376,0FBgn0002121cmplcmpl2,1,2,1,0,2,0,0,-1,
585FBtr0306591chr2L-9838213761121417136109838,11409,11778,12285,13519,13682,14932,17052,19879,21065,11344,11518,12221,12928,13625,14874,15711,17212,20020,21376,0FBgn0002121cmplcmpl2,1,2,1,0,2,0,0,-1,-1,

Note: all start coordinates in our database are 0-based, not 1-based. See explanation here.