Module: Ensembl::Core
- Defined in:
- lib/bio-ensembl/core/activerecord.rb,
lib/bio-ensembl/core/slice.rb,
lib/bio-ensembl/core/project.rb,
lib/bio-ensembl/core/transform.rb,
lib/bio-ensembl/core/collection.rb,
lib/bio-ensembl/core/transcript.rb,
lib/bio-ensembl/db_connection.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
-
#canonical_transcript ⇒ Object
The Gene#canonical_transcript returns the longest transcript for that gene.
Instance Method Details
#canonical_transcript ⇒ Object
The Gene#canonical_transcript returns the longest transcript for that gene.
1140 1141 1142 1143 |
# 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 |