Class: Bio::KB::Annotation::Illumina::GeneExpression
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Bio::KB::Annotation::Illumina::GeneExpression
- Defined in:
- lib/bio/annotation/illumina/gene_expression.rb
Class Method Summary collapse
-
.annotation=(annotation_name) ⇒ Object
Set the table for further use.
-
.list_annotations ⇒ Object
self.table_name = nil? HumanHT12_V3_0_R1_11283641_A.
Class Method Details
.annotation=(annotation_name) ⇒ Object
Set the table for further use
25 26 27 28 29 30 31 32 |
# File 'lib/bio/annotation/illumina/gene_expression.rb', line 25 def self.annotation=(annotation_name) if self.list_annotations.include? annotation_name self.reset_column_information self.table_name=annotation_name else puts "Annotation named: #{annotation_name} doesn't exist. Please select one from #{self.list_annotations}" end end |
.list_annotations ⇒ Object
self.table_name = nil? HumanHT12_V3_0_R1_11283641_A
20 21 22 |
# File 'lib/bio/annotation/illumina/gene_expression.rb', line 20 def self.list_annotations self.connection.tables.select{|table_name| table_name=~/Human/} end |