Class: Ensembl::Core::MiscAttrib

Inherits:
DBConnection show all
Defined in:
lib/bio-ensembl/core/activerecord.rb

Overview

The MiscAttrib class provides an interface to the misc_attrib table. It is the link between MiscFeature and AttribType.

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.

Examples:

marker = Marker.find(52194)
puts marker.marker_feature.seq_region_start.to_s
puts marker.marker_feature.seq_region_end.to_s

Instance Method Summary collapse

Methods inherited from DBConnection

connect, ensemblgenomes_connect

Methods inherited from DBRegistry::Base

generic_connect, get_info, get_name_from_db

Instance Method Details

#to_sObject



976
977
978
# File 'lib/bio-ensembl/core/activerecord.rb', line 976

def to_s
  return self.attrib_type.code + ":" + self.value.to_s
end