phenome 1.0.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/lib/phenome.rb +22 -0
- metadata +46 -0
data/lib/phenome.rb
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
require "csv"
|
|
2
|
+
require "open-uri"
|
|
3
|
+
|
|
4
|
+
class Phenome
|
|
5
|
+
class Database
|
|
6
|
+
attr_accessor :home_url
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
class JAX < Database
|
|
10
|
+
def initialize
|
|
11
|
+
@home_url = "http://phenome.jax.org/"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def download_csv(csv_url, destination)
|
|
15
|
+
CSV.open(destination, "wb") do |csv|
|
|
16
|
+
open(csv_url).each_line do |line|
|
|
17
|
+
csv << line.split(",")
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: phenome
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Benjamin Godlove
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2014-02-27 00:00:00.000000000 Z
|
|
13
|
+
dependencies: []
|
|
14
|
+
description: ''
|
|
15
|
+
email: bgodlove88@gmail.com
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- lib/phenome.rb
|
|
21
|
+
homepage: http://github.com/brg8/phenome
|
|
22
|
+
licenses:
|
|
23
|
+
- GNU
|
|
24
|
+
post_install_message:
|
|
25
|
+
rdoc_options: []
|
|
26
|
+
require_paths:
|
|
27
|
+
- lib
|
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
29
|
+
none: false
|
|
30
|
+
requirements:
|
|
31
|
+
- - ! '>='
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
35
|
+
none: false
|
|
36
|
+
requirements:
|
|
37
|
+
- - ! '>='
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
40
|
+
requirements: []
|
|
41
|
+
rubyforge_project:
|
|
42
|
+
rubygems_version: 1.8.23
|
|
43
|
+
signing_key:
|
|
44
|
+
specification_version: 3
|
|
45
|
+
summary: Download mouse phenome data from http://phenome.jax.org/
|
|
46
|
+
test_files: []
|