module Ensembl::Core

The Ensembl::Core module covers the core databases from ensembldb.ensembl.org and covers mainly sequences and their annotations. For a full description of the database (and therefore the classes that are available), see www.ensembl.org/info/software/core/schema/index.html and www.ensembl.org/info/software/core/schema/schema_description.html

Public Instance Methods

canonical_transcript() click to toggle source

The Gene#canonical_transcript returns the longest transcript for that gene.

# File lib/bio-ensembl/core/activerecord.rb, line 1140
def canonical_transcript
 ct = self.transcripts.sort {|a,b| b.seq.length <=> a.seq.length}
 return ct[0]
end