Skip to content

Commit

Permalink
fix module structure
Browse files Browse the repository at this point in the history
  • Loading branch information
rjpbonnal committed Dec 10, 2010
1 parent 4d95fa3 commit 6ed06d8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions lib/bio/annotation/illumina/gene_expression.rb
@@ -0,0 +1,30 @@
module Bio
# I like the idea to have a Knowledge base system
# intended to look for a generic information supplied by the user
module KB
module Annotation
module Illumina
class GeneExpression < ActiveRecord::Base
establish_connection(:adapter =>'sqlite3',
:database =>"#{File.dirname(__FILE__)}/../../../../data/lumiHumanIDMapping.sqlite"
)
self.table_name =''
#HumanHT12_V3_0_R1_11283641_A

def self.list_annotations
self.connection.tables.select{|table_name| table_name=~/Human/}
end

# Set the table for further use
def self.annotation=(annotation_name)
if self.list_annotations.include? annotation_name
self.table_name=annotation_name
else
puts "Annotation named: #{annotation_name} doesn't exist. Please selec one from #{self.list_annotations}"
end
end
end #GeneExpression
end #Illumina
end #Annotation
end #KB
end #Bio

0 comments on commit 6ed06d8

Please sign in to comment.