class Ensembl::Core::Xref

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.

@example

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

Public Instance Methods

to_s() click to toggle source
# File lib/bio-ensembl/core/activerecord.rb, line 1480
def to_s
  return self.external_db.db_name.to_s + ":" + self.display_label
end