Module: Ensembl::Core

Defined in:
lib/ensembl/core/activerecord.rb,
lib/ensembl/core/slice.rb,
lib/ensembl/core/project.rb,
lib/ensembl/db_connection.rb,
lib/ensembl/core/transform.rb,
lib/ensembl/core/collection.rb,
lib/ensembl/core/transcript.rb

Overview

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

Defined Under Namespace

Modules: Sliceable Classes: Analysis, AnalysisDescription, AssemblyException, AssemblyLink, AttribType, Collection, CoordSystem, DBConnection, DensityFeature, DensityType, Dna, DnaAlignFeature, Exon, ExonStableId, ExonSupportingFeature, ExonTranscript, ExternalDb, ExternalSynonym, Gap, Gene, GeneAttrib, GeneStableId, GoXref, Intron, Karyotype, Map, Marker, MarkerFeature, MarkerMapLocation, MarkerSynonym, Meta, MetaCoord, MiscAttrib, MiscFeature, MiscFeatureMiscSet, MiscSet, ObjectXref, OligoArray, OligoFeature, OligoProbe, PredictionExon, PredictionTranscript, ProteinAlignFeature, ProteinFeature, RegulatoryFactor, RegulatoryFeature, RepeatConsensus, RepeatFeature, SeqRegion, SeqRegionAttrib, SimpleFeature, Slice, Transcript, TranscriptAttrib, TranscriptStableId, TranscriptSupportingFeature, Translation, TranslationAttrib, TranslationStableId, Xref

Instance Method Summary collapse

Instance Method Details

#canonical_transcriptObject

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



1137
1138
1139
1140
# File 'lib/ensembl/core/activerecord.rb', line 1137

def canonical_transcript
 ct = self.transcripts.sort {|a,b| b.seq.length <=> a.seq.length}
 return ct[0]
end