Skip to content

Instantly share code, notes, and snippets.

@rtirrell
Created June 28, 2010 22:24
Show Gist options
  • Save rtirrell/456459 to your computer and use it in GitHub Desktop.
Save rtirrell/456459 to your computer and use it in GitHub Desktop.
class Gene
include DataMapper::Resource
def self.default_repository_name; USER_RPT_REPOSITORY_NAME; end
belongs_to :gene_info, :key => true, :child_key => [:GeneID], :parent_key => [:GeneID],
:repository => repository(:annot_gene)
belongs_to :homologene, :child_key => [:HID], :parent_key => [:HID],
:repository => repository(:annot_gene)
belongs_to :subset_comparison, :key => true,
:repository => repository(:nosology)
property :value, Float
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment