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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 86ef45c34434fe55228b2b6afd8fb499daca3281e51667991dfb82ba289cc6cf
4
- data.tar.gz: 687149cc4b7d296411950e0261b65f9905c3ccdafadfa8a5a3592cfc6d0b3371
2
+ SHA1:
3
+ metadata.gz: 68bbae81342f57b41aaacd150e3a36acb5eac0f2
4
+ data.tar.gz: 986ca4c8dacb3b2b0a2a48d41c70e1abfcf119f7
5
5
  SHA512:
6
- metadata.gz: 5d30436e144e010c21db260b6113cd1787f26f792ae625fe83e0311ffffd864b184d924d11fec1b1db1595f1cbdc48715a5f38d6f07daba8406a6ed3fc179b73
7
- data.tar.gz: 9c5c6e45b893f144c9db30849fb2575684e91d228d6d4909789232fb48a05377f831ad2106eca54b03f4eeb4633ecc90d20d5f1059c31d259ef5247fb401ca31
6
+ metadata.gz: dc93c022fedafb6e1528f14d3c526701680b394cded7bd7828e73e876e1bceac98caa9beca5600bec2de5838a75e6bdf5a202a44d63278f78803dd432c9d3561
7
+ data.tar.gz: 1032afb33b2a4602a023954d40b9258386b9aaa809af5eeaedbabb92015751d5ed27fb736f148eb954357f2dc433c15f701b03ac6fd36c169e62b92ac05d07fa
@@ -1,3 +1,3 @@
1
1
  module GENOME
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
data/lib/genome.rb CHANGED
@@ -37,7 +37,7 @@ module GENOME
37
37
  [rsid, snp]
38
38
  end
39
39
 
40
- def self.load(_filename, _provider = '23andme')
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.2
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-17 00:00:00.000000000 Z
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
- rubygems_version: 3.0.4
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