Class Ensembl::Core::Exon
In: lib/ensembl/core/activerecord.rb
Parent: DBConnection


The Exon class describes an exon.

This class uses ActiveRecord to access data in the Ensembl database. See the general documentation of the Ensembl module for more information on what this means and what methods are available.

This class includes the mixin Sliceable, which means that it is mapped to a SeqRegion object and a Slice can be created for objects of this class. See Sliceable and Slice for more information.


 seq_region = SeqRegion.find(1)
 puts seq_region.exons.length


seq   stable_id  

Included Modules


Public Instance methods


The Exon#seq method returns the sequence of the exon.


     # File lib/ensembl/core/activerecord.rb, line 673
673:       def seq
674:         slice =, seq_region_start, seq_region_end, seq_region_strand)
675:         return slice.seq
676:       end


     # File lib/ensembl/core/activerecord.rb, line 667
667:       def stable_id
668:         return self.exon_stable_id.stable_id
669:       end