Class: Ensembl::Core::Xref

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

Overview

The Xref class provides an interface to the xref table. This table contains external references for objects in the database.

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:

gene = Gene.find(1)
gene.xrefs.each do |xref|
  puts xref.display_label + "\t" + xref.description
end

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



1477
1478
1479
# File 'lib/ensembl/core/activerecord.rb', line 1477

def to_s
  return self.external_db.db_name.to_s + ":" + self.display_label
end