bio-affy 0.1.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. data/.document +5 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +15 -0
  4. data/Gemfile.lock +32 -0
  5. data/LICENSE.txt +20 -0
  6. data/README.rdoc +33 -0
  7. data/Rakefile +77 -0
  8. data/VERSION +1 -0
  9. data/bin/bio-affy +80 -0
  10. data/bio-affy.gemspec +128 -0
  11. data/ext/DESCRIPTION +11 -0
  12. data/ext/HISTORY +3 -0
  13. data/ext/LICENSE +456 -0
  14. data/ext/NAMESPACE +2 -0
  15. data/ext/R/check.cdf.type.R +18 -0
  16. data/ext/R/read.cdffile.list.R +23 -0
  17. data/ext/R/read.celfile.R +11 -0
  18. data/ext/R/read.celfile.header.R +37 -0
  19. data/ext/R/read.probematrices.R +29 -0
  20. data/ext/README_BIOLIB +36 -0
  21. data/ext/aclocal.m4 +32 -0
  22. data/ext/configure +4898 -0
  23. data/ext/configure.in +51 -0
  24. data/ext/man/check.cdf.type.Rd +22 -0
  25. data/ext/man/read.cdffile.list.Rd +20 -0
  26. data/ext/man/read.celfile.Rd +23 -0
  27. data/ext/man/read.celfile.header.Rd +22 -0
  28. data/ext/man/read.celfile.probeintensity.matrices.Rd +31 -0
  29. data/ext/src/CMakeLists.txt +39 -0
  30. data/ext/src/Makevars.in +3 -0
  31. data/ext/src/Makevars.win +2 -0
  32. data/ext/src/Rakefile +43 -0
  33. data/ext/src/biolib_affyio.c +416 -0
  34. data/ext/src/biolib_affyio.h +132 -0
  35. data/ext/src/biolib_affyio.o +0 -0
  36. data/ext/src/fread_functions.c +871 -0
  37. data/ext/src/fread_functions.h +60 -0
  38. data/ext/src/fread_functions.o +0 -0
  39. data/ext/src/libaffyext.so +0 -0
  40. data/ext/src/mkrf.log +11 -0
  41. data/ext/src/mkrf_conf.rb +6 -0
  42. data/ext/src/read_abatch.c +5484 -0
  43. data/ext/src/read_abatch.h +63 -0
  44. data/ext/src/read_abatch.o +0 -0
  45. data/ext/src/read_bpmap.c +888 -0
  46. data/ext/src/read_bpmap.o +0 -0
  47. data/ext/src/read_cdf.h +347 -0
  48. data/ext/src/read_cdf_xda.c +1342 -0
  49. data/ext/src/read_cdf_xda.o +0 -0
  50. data/ext/src/read_cdffile2.c +1576 -0
  51. data/ext/src/read_cdffile2.o +0 -0
  52. data/ext/src/read_celfile_generic.c +2061 -0
  53. data/ext/src/read_celfile_generic.h +33 -0
  54. data/ext/src/read_celfile_generic.o +0 -0
  55. data/ext/src/read_clf.c +870 -0
  56. data/ext/src/read_clf.o +0 -0
  57. data/ext/src/read_generic.c +1446 -0
  58. data/ext/src/read_generic.h +144 -0
  59. data/ext/src/read_generic.o +0 -0
  60. data/ext/src/read_pgf.c +1337 -0
  61. data/ext/src/read_pgf.o +0 -0
  62. data/lib/bio-affy.rb +5 -0
  63. data/lib/bio/affy.rb +7 -0
  64. data/lib/bio/affyext.rb +23 -0
  65. data/lib/bio/libaffyext.so +0 -0
  66. data/spec/bio-affy_spec.rb +22 -0
  67. data/spec/spec_helper.rb +13 -0
  68. data/test/data/affy/GSM103328.CEL.gz +0 -0
  69. data/test/data/affy/GSM103329.CEL.gz +0 -0
  70. data/test/data/affy/GSM103330.CEL.gz +0 -0
  71. data/test/data/affy/MG_U74Av2.CDF.gz +0 -0
  72. metadata +190 -0
Binary file
@@ -0,0 +1,5 @@
1
+ require 'rubygems'
2
+ require 'ffi'
3
+
4
+ require 'bio/affyext'
5
+ require 'bio/affy'
@@ -0,0 +1,7 @@
1
+
2
+ module Bio
3
+
4
+ module Affy
5
+ end
6
+
7
+ end
@@ -0,0 +1,23 @@
1
+
2
+ module Bio
3
+
4
+ module Affy
5
+
6
+ module Ext
7
+
8
+ extend FFI::Library
9
+ DIR = File.dirname(__FILE__)
10
+
11
+ ffi_lib File.join(DIR,'libaffyext.so') # <-- fix for OSX
12
+ ffi_convention :stdcall
13
+
14
+ attach_function :has_affyext, [ :int ], :int
15
+ # attach_function :open_cdffile, [ :string ], :pointer
16
+ def open_cdffile s
17
+ end
18
+
19
+ end
20
+
21
+ end
22
+
23
+ end
Binary file
@@ -0,0 +1,22 @@
1
+ ROOT = File.dirname(__FILE__)
2
+ $: << File.join([ROOT, "..","lib"])
3
+ # ENV['LD_LIBRARY_PATH'] = File.join([ROOT, "..","lib"])
4
+
5
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
6
+ require 'bio-affy'
7
+
8
+ DATADIR = ROOT + File.join('test','data','affy')
9
+ CDF = DATADIR+"MG_U74Av2.CDF.gz"
10
+ CEL1 = DATADIR+"GSM103328.CEL.gz"
11
+
12
+ describe "BioAffy" do
13
+ it "should find the shared library" do
14
+ Bio::Affy::Ext.has_affyext(5).should == 60
15
+ end
16
+ it "should open a CDF file" do
17
+ @cdf = Bio::Affy::Ext.open_cdffile(CDF)
18
+ end
19
+ it "should open a CEL file"
20
+ it "should find the probe values"
21
+ it "should name the probes"
22
+ end
@@ -0,0 +1,13 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ require 'rspec'
4
+
5
+ require 'bio-affy'
6
+
7
+ # Requires supporting files with custom matchers and macros, etc,
8
+ # in ./support/ and its subdirectories.
9
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
10
+
11
+ RSpec.configure do |config|
12
+
13
+ end
metadata ADDED
@@ -0,0 +1,190 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bio-affy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.alpha.1
5
+ prerelease: 6
6
+ platform: ruby
7
+ authors:
8
+ - Pjotr Prins
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-12-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: &18461260 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 2.7.0
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *18461260
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
27
+ requirement: &18460160 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.12
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *18460160
36
+ - !ruby/object:Gem::Dependency
37
+ name: jeweler
38
+ requirement: &18459540 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 1.6.4
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *18459540
47
+ - !ruby/object:Gem::Dependency
48
+ name: rcov
49
+ requirement: &18458800 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *18458800
58
+ - !ruby/object:Gem::Dependency
59
+ name: ffi
60
+ requirement: &18458220 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: 1.0.11
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *18458220
69
+ - !ruby/object:Gem::Dependency
70
+ name: mkrf
71
+ requirement: &18457560 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: 0.2.3
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *18457560
80
+ description: ! "Affymetrix microarray file format parser\n (CEL/CDF) for Ruby. FFI
81
+ binding to Biolib port of R/Affyio by Benjamin Milo Bolstad"
82
+ email: pjotr.public01@thebird.nl
83
+ executables:
84
+ - bio-affy
85
+ extensions:
86
+ - ext/src/mkrf_conf.rb
87
+ extra_rdoc_files:
88
+ - LICENSE.txt
89
+ - README.rdoc
90
+ files:
91
+ - .document
92
+ - .rspec
93
+ - Gemfile
94
+ - Gemfile.lock
95
+ - LICENSE.txt
96
+ - README.rdoc
97
+ - Rakefile
98
+ - VERSION
99
+ - bin/bio-affy
100
+ - bio-affy.gemspec
101
+ - ext/DESCRIPTION
102
+ - ext/HISTORY
103
+ - ext/LICENSE
104
+ - ext/NAMESPACE
105
+ - ext/R/check.cdf.type.R
106
+ - ext/R/read.cdffile.list.R
107
+ - ext/R/read.celfile.R
108
+ - ext/R/read.celfile.header.R
109
+ - ext/R/read.probematrices.R
110
+ - ext/README_BIOLIB
111
+ - ext/aclocal.m4
112
+ - ext/configure
113
+ - ext/configure.in
114
+ - ext/man/check.cdf.type.Rd
115
+ - ext/man/read.cdffile.list.Rd
116
+ - ext/man/read.celfile.Rd
117
+ - ext/man/read.celfile.header.Rd
118
+ - ext/man/read.celfile.probeintensity.matrices.Rd
119
+ - ext/src/CMakeLists.txt
120
+ - ext/src/Makevars.in
121
+ - ext/src/Makevars.win
122
+ - ext/src/Rakefile
123
+ - ext/src/biolib_affyio.c
124
+ - ext/src/biolib_affyio.h
125
+ - ext/src/biolib_affyio.o
126
+ - ext/src/fread_functions.c
127
+ - ext/src/fread_functions.h
128
+ - ext/src/fread_functions.o
129
+ - ext/src/libaffyext.so
130
+ - ext/src/mkrf.log
131
+ - ext/src/mkrf_conf.rb
132
+ - ext/src/read_abatch.c
133
+ - ext/src/read_abatch.h
134
+ - ext/src/read_abatch.o
135
+ - ext/src/read_bpmap.c
136
+ - ext/src/read_bpmap.o
137
+ - ext/src/read_cdf.h
138
+ - ext/src/read_cdf_xda.c
139
+ - ext/src/read_cdf_xda.o
140
+ - ext/src/read_cdffile2.c
141
+ - ext/src/read_cdffile2.o
142
+ - ext/src/read_celfile_generic.c
143
+ - ext/src/read_celfile_generic.h
144
+ - ext/src/read_celfile_generic.o
145
+ - ext/src/read_clf.c
146
+ - ext/src/read_clf.o
147
+ - ext/src/read_generic.c
148
+ - ext/src/read_generic.h
149
+ - ext/src/read_generic.o
150
+ - ext/src/read_pgf.c
151
+ - ext/src/read_pgf.o
152
+ - lib/bio-affy.rb
153
+ - lib/bio/affy.rb
154
+ - lib/bio/affyext.rb
155
+ - lib/bio/libaffyext.so
156
+ - spec/bio-affy_spec.rb
157
+ - spec/spec_helper.rb
158
+ - test/data/affy/GSM103328.CEL.gz
159
+ - test/data/affy/GSM103329.CEL.gz
160
+ - test/data/affy/GSM103330.CEL.gz
161
+ - test/data/affy/MG_U74Av2.CDF.gz
162
+ homepage: http://github.com/pjotrp/bioruby-affy
163
+ licenses:
164
+ - MIT
165
+ post_install_message:
166
+ rdoc_options: []
167
+ require_paths:
168
+ - lib
169
+ required_ruby_version: !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - ! '>='
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ segments:
176
+ - 0
177
+ hash: 4468183158933499689
178
+ required_rubygems_version: !ruby/object:Gem::Requirement
179
+ none: false
180
+ requirements:
181
+ - - ! '>'
182
+ - !ruby/object:Gem::Version
183
+ version: 1.3.1
184
+ requirements: []
185
+ rubyforge_project: nowarning
186
+ rubygems_version: 1.8.10
187
+ signing_key:
188
+ specification_version: 3
189
+ summary: Parse Affymetrix CEL/CDF files
190
+ test_files: []