genome-rb 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/genome/version.rb +1 -1
- data/lib/genome.rb +3 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 68bbae81342f57b41aaacd150e3a36acb5eac0f2
|
4
|
+
data.tar.gz: 986ca4c8dacb3b2b0a2a48d41c70e1abfcf119f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc93c022fedafb6e1528f14d3c526701680b394cded7bd7828e73e876e1bceac98caa9beca5600bec2de5838a75e6bdf5a202a44d63278f78803dd432c9d3561
|
7
|
+
data.tar.gz: 1032afb33b2a4602a023954d40b9258386b9aaa809af5eeaedbabb92015751d5ed27fb736f148eb954357f2dc433c15f701b03ac6fd36c169e62b92ac05d07fa
|
data/lib/genome/version.rb
CHANGED
data/lib/genome.rb
CHANGED
@@ -37,7 +37,7 @@ module GENOME
|
|
37
37
|
[rsid, snp]
|
38
38
|
end
|
39
39
|
|
40
|
-
def self.
|
40
|
+
def self.validate?(_filename, _provider = '23andme')
|
41
41
|
raise ProviderError, "provider is not supported." unless %w[23andme ancestry].include? _provider
|
42
42
|
|
43
43
|
first_line = File.open(_filename, &:readline)
|
@@ -46,7 +46,9 @@ module GENOME
|
|
46
46
|
elsif _provider == 'ancestry'
|
47
47
|
raise FileTypeError, "format is not correct" unless first_line.downcase.include? 'ancestry'.downcase
|
48
48
|
end
|
49
|
+
end
|
49
50
|
|
51
|
+
def self.load(_filename, _provider = '23andme')
|
50
52
|
genome = Genome.new(name = _filename)
|
51
53
|
reader = if _provider == '23andme'
|
52
54
|
:ttandme_reader
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: genome-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gary Lai
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -96,7 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
|
-
|
99
|
+
rubyforge_project:
|
100
|
+
rubygems_version: 2.5.2.3
|
100
101
|
signing_key:
|
101
102
|
specification_version: 4
|
102
103
|
summary: ruby library to read genome data
|