anncrsnp 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/grdbfinder.rb +4 -8
- data/lib/anncrsnp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a5b68efa127fe9ae6c1b409daa38ee22236068b
|
4
|
+
data.tar.gz: 4714dfd569a2568ddf055e346747de2bd03a5057
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a73bd75040ddf05079ba4555c9769ae45a41610520ae42827fda4f9e6ba45807b79501b947c1dd3d1dd9addc032107c8ac56ae047edba9ba9040534af906de8d
|
7
|
+
data.tar.gz: 874fb9ec1a453b33451d7d44710ec114de44bf5ba1c8701d1f17622a4222c96259f75bfb12e51a5b226ff835b6da492c82e67791a3553ed77c8289557d63f770
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ For further RVM installation, please visit https://rvm.io/
|
|
37
37
|
|
38
38
|
### Windows
|
39
39
|
|
40
|
-
|
40
|
+
To use AnNCR-SNP in your Windows system, you can install Ruby using RubyInstaller (http://rubyinstaller.org/downloads/), but taking into consideration that Ruby version must be lower than 2.3 and x64. You can download this concrete version: http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.2.5-x64.exe
|
41
41
|
|
42
42
|
During the installation, you have to mark all available options before continuing (Install Td/Tk support, Add Ruby executables to your PATH, Associate .rb and .rbw files with this Ruby installation).
|
43
43
|
|
data/bin/grdbfinder.rb
CHANGED
@@ -8,8 +8,8 @@ require 'optparse'
|
|
8
8
|
require 'dataset'
|
9
9
|
require 'sqlite3'
|
10
10
|
require 'benchmark'
|
11
|
-
require 'net/http'
|
12
11
|
require 'zip'
|
12
|
+
require 'open-uri'
|
13
13
|
|
14
14
|
######################################################################################################################
|
15
15
|
## METHODS
|
@@ -347,15 +347,11 @@ def download_database(database_path)
|
|
347
347
|
out_path = File.dirname(database_path)
|
348
348
|
puts "Downloading database in #{out_path}, please be patient..."
|
349
349
|
zip_path = File.join(out_path, 'database.zip')
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
resp.read_body do |segment|
|
354
|
-
f.write(segment)
|
355
|
-
end
|
350
|
+
File.open(zip_path, "wb") do |saved_file|
|
351
|
+
open("http://bio-267-data.uma.es/database.zip", "rb") do |read_file|
|
352
|
+
saved_file.write(read_file.read)
|
356
353
|
end
|
357
354
|
end
|
358
|
-
f.close
|
359
355
|
puts "Decompressing database..."
|
360
356
|
Zip::File.open(zip_path) do |zip_file|
|
361
357
|
zip_file.each do |entry|
|
data/lib/anncrsnp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anncrsnp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elena Rojano
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-07-
|
12
|
+
date: 2016-07-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|