bio-kb-illumina 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile CHANGED
@@ -3,6 +3,7 @@ source "http://rubygems.org"
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
5
 
6
+
6
7
  # Add dependencies to develop your gem here.
7
8
  # Include everything needed to run rake, tests, features, etc.
8
9
  group :development do
@@ -11,5 +12,5 @@ group :development do
11
12
  gem "jeweler", "~> 1.5.1"
12
13
  gem "rcov", ">= 0"
13
14
  gem "bio", ">= 1.4.1"
14
- gem "activerecord"
15
+ gem "activerecord", ">= 3.0.3"
15
16
  end
@@ -29,7 +29,7 @@ PLATFORMS
29
29
  ruby
30
30
 
31
31
  DEPENDENCIES
32
- activerecord
32
+ activerecord (>= 3.0.3)
33
33
  bio (>= 1.4.1)
34
34
  bundler (~> 1.0.0)
35
35
  jeweler (~> 1.5.1)
@@ -4,7 +4,7 @@ Provide access to the IlluminaHumanAnnotations. Database comes form Bioconductor
4
4
 
5
5
  == TODO
6
6
 
7
- * Add all Illumina's annotation, Human, Mouse, others?
7
+ * Add all Illumina's annotation for Mouse and other species?
8
8
 
9
9
  == Contributing to bio-kb-illumina
10
10
 
data/Rakefile CHANGED
@@ -24,7 +24,7 @@ Jeweler::Tasks.new do |gem|
24
24
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
25
25
  # gem.add_runtime_dependency 'jabber4r', '> 0.1'
26
26
  # gem.add_development_dependency 'rspec', '> 1.2.3'
27
- gem.version = "0.0.0"
27
+ #gem.version = "0.0.0"
28
28
  end
29
29
  Jeweler::RubygemsDotOrgTasks.new
30
30
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.1.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bio-kb-illumina}
8
- s.version = "0.0.0"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Raoul J.P. Bonnal"]
12
- s.date = %q{2010-11-24}
12
+ s.date = %q{2011-01-11}
13
13
  s.description = %q{Provide access to the IlluminaHumanAnnotations. Database comes form Bioconductor's package
14
14
  lumiHumanIDMapping}
15
15
  s.email = %q{ilpuccio.febo@gmail.com}
@@ -26,8 +26,9 @@ Gem::Specification.new do |s|
26
26
  "Rakefile",
27
27
  "VERSION",
28
28
  "bio-kb-illumina.gemspec",
29
- "data/lumiHumanIDMapping.sqlite",
29
+ "db/lumiHumanIDMapping.sqlite",
30
30
  "lib/bio-kb-illumina.rb",
31
+ "lib/bio/annotation/illumina/gene_expression.rb",
31
32
  "test/helper.rb",
32
33
  "test/test_bio-kb-illumina.rb"
33
34
  ]
@@ -51,14 +52,14 @@ Gem::Specification.new do |s|
51
52
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
52
53
  s.add_development_dependency(%q<rcov>, [">= 0"])
53
54
  s.add_development_dependency(%q<bio>, [">= 1.4.1"])
54
- s.add_development_dependency(%q<activerecord>, [">= 0"])
55
+ s.add_development_dependency(%q<activerecord>, [">= 3.0.3"])
55
56
  else
56
57
  s.add_dependency(%q<shoulda>, [">= 0"])
57
58
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
58
59
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
59
60
  s.add_dependency(%q<rcov>, [">= 0"])
60
61
  s.add_dependency(%q<bio>, [">= 1.4.1"])
61
- s.add_dependency(%q<activerecord>, [">= 0"])
62
+ s.add_dependency(%q<activerecord>, [">= 3.0.3"])
62
63
  end
63
64
  else
64
65
  s.add_dependency(%q<shoulda>, [">= 0"])
@@ -66,7 +67,7 @@ Gem::Specification.new do |s|
66
67
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
67
68
  s.add_dependency(%q<rcov>, [">= 0"])
68
69
  s.add_dependency(%q<bio>, [">= 1.4.1"])
69
- s.add_dependency(%q<activerecord>, [">= 0"])
70
+ s.add_dependency(%q<activerecord>, [">= 3.0.3"])
70
71
  end
71
72
  end
72
73
 
File without changes
@@ -1,33 +1,10 @@
1
+ #
2
+ # Copyright:: Copyright (c) 2010
3
+ # Raoul J.P. Bonnal <r@bioruby.org>
4
+ # License:: The Ruby License
5
+ #
6
+
1
7
  require 'active_record'
2
8
 
3
- module Bio
4
- # I like the idea to have a Knowledge base system
5
- # intended to look for a generic information supplied by the user
6
- module KB
7
- module Annotation
8
- module Illumina
9
- class GeneExpression < ActiveRecord::Base
10
-
11
- establish_connection(:adapter =>'sqlite3',
12
- :database =>"#{File.dirname(__FILE__)}/../data/lumiHumanIDMapping.sqlite"
13
- )
14
- self.table_name =''
15
- #HumanHT12_V3_0_R1_11283641_A
16
-
17
- def self.list_annotations
18
- self.connection.tables.select{|table_name| table_name=~/Human/}
19
- end
20
-
21
- # Set the table for further use
22
- def self.annotation=(annotation_name)
23
- if self.list_annotations.include? annotation_name
24
- self.table_name=annotation_name
25
- else
26
- puts "Annotation named: #{annotation_name} doesn't exist. Please selec one from #{self.list_annotations}"
27
- end
28
- end
29
- end #GeneExpression
30
- end #Illumina
31
- end #Annotation
32
- end #KB
33
- end #Bio
9
+ require 'bio/annotation/illumina/gene_expression'
10
+
@@ -0,0 +1,37 @@
1
+ #
2
+ # Copyright:: Copyright (c) 2010
3
+ # Raoul J.P. Bonnal <r@bioruby.org>
4
+ # License:: The Ruby License
5
+ #
6
+
7
+ module Bio
8
+ # I like the idea to have a Knowledge base system
9
+ # intended to look for a generic information supplied by the user
10
+ module KB
11
+ module Annotation
12
+ module Illumina
13
+ class GeneExpression < ActiveRecord::Base
14
+ establish_connection(:adapter =>'sqlite3',
15
+ :database =>"#{File.dirname(__FILE__)}/../../../../data/lumiHumanIDMapping.sqlite"
16
+ )
17
+ #self.table_name = nil?
18
+ #HumanHT12_V3_0_R1_11283641_A
19
+
20
+ def self.list_annotations
21
+ self.connection.tables.select{|table_name| table_name=~/Human/}
22
+ end
23
+
24
+ # Set the table for further use
25
+ def self.annotation=(annotation_name)
26
+ if self.list_annotations.include? annotation_name
27
+ self.reset_column_information
28
+ self.table_name=annotation_name
29
+ else
30
+ puts "Annotation named: #{annotation_name} doesn't exist. Please select one from #{self.list_annotations}"
31
+ end
32
+ end
33
+ end #GeneExpression
34
+ end #Illumina
35
+ end #Annotation
36
+ end #KB
37
+ end #Bio
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 1
7
8
  - 0
8
- - 0
9
- version: 0.0.0
9
+ version: 0.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Raoul J.P. Bonnal
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-24 00:00:00 +01:00
17
+ date: 2011-01-11 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -96,8 +96,10 @@ dependencies:
96
96
  - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  segments:
99
+ - 3
99
100
  - 0
100
- version: "0"
101
+ - 3
102
+ version: 3.0.3
101
103
  type: :development
102
104
  prerelease: false
103
105
  version_requirements: *id006
@@ -121,8 +123,9 @@ files:
121
123
  - Rakefile
122
124
  - VERSION
123
125
  - bio-kb-illumina.gemspec
124
- - data/lumiHumanIDMapping.sqlite
126
+ - db/lumiHumanIDMapping.sqlite
125
127
  - lib/bio-kb-illumina.rb
128
+ - lib/bio/annotation/illumina/gene_expression.rb
126
129
  - test/helper.rb
127
130
  - test/test_bio-kb-illumina.rb
128
131
  has_rdoc: true
@@ -139,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
142
  requirements:
140
143
  - - ">="
141
144
  - !ruby/object:Gem::Version
142
- hash: 717046961654346220
145
+ hash: -4243769106221584944
143
146
  segments:
144
147
  - 0
145
148
  version: "0"