miga-base 1.1.3.2 → 1.1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miga/project.rb +7 -0
- data/lib/miga/version.rb +2 -2
- data/utils/FastAAI/FastAAI +4 -2
- data/utils/distance/commands.rb +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 529121bd6f55dfeb21559b77af71a4537db91cda1fe2fdfc9bdee9adfcaaa962
|
4
|
+
data.tar.gz: 8b892eb88019c4c5d0ec654c722142004867665892a38cf96233afc0b1f30aef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab6397d8b74d163cac4afa9a8e79776b91c1c4175da947d669bcc9ae441d04a0345f9c31feffbbb6349e5d9375ccd61b6396740763f3d96d0606a9f2312d9ad0
|
7
|
+
data.tar.gz: db534b553aca1ecbcee679edaf33b7cdea972e648b507b2a2e7841f8865f7572e3d498714672b8f49b21babda9f5db311bb580a4e8f90e70470a6fff13f51e6e
|
data/lib/miga/project.rb
CHANGED
data/lib/miga/version.rb
CHANGED
@@ -12,7 +12,7 @@ module MiGA
|
|
12
12
|
# - String indicating release status:
|
13
13
|
# - rc* release candidate, not released as gem
|
14
14
|
# - [0-9]+ stable release, released as gem
|
15
|
-
VERSION = [1.1, 3,
|
15
|
+
VERSION = [1.1, 3, 6].freeze
|
16
16
|
|
17
17
|
##
|
18
18
|
# Nickname for the current major.minor version.
|
@@ -20,7 +20,7 @@ module MiGA
|
|
20
20
|
|
21
21
|
##
|
22
22
|
# Date of the current gem relese.
|
23
|
-
VERSION_DATE = Date.new(2021,
|
23
|
+
VERSION_DATE = Date.new(2021, 12, 1)
|
24
24
|
|
25
25
|
##
|
26
26
|
# References of MiGA
|
data/utils/FastAAI/FastAAI
CHANGED
@@ -2954,10 +2954,12 @@ def merge_db(recipient, donors, donor_file, verbose, threads):
|
|
2954
2954
|
pass
|
2955
2955
|
except:
|
2956
2956
|
#Error
|
2957
|
-
|
2957
|
+
if os.path.exists(temp_dir):
|
2958
|
+
shutil.rmtree(temp_dir)
|
2958
2959
|
finally:
|
2959
2960
|
#Success
|
2960
|
-
|
2961
|
+
if os.path.exists(temp_dir):
|
2962
|
+
shutil.rmtree(temp_dir)
|
2961
2963
|
|
2962
2964
|
print("\nDatabases merged!")
|
2963
2965
|
|
data/utils/distance/commands.rb
CHANGED
@@ -153,13 +153,15 @@ module MiGA::DistanceRunner::Commands
|
|
153
153
|
return nil if donors.empty?
|
154
154
|
|
155
155
|
# Build target database
|
156
|
-
f1 =
|
157
|
-
if donors.size
|
156
|
+
f1 = tmp_file
|
157
|
+
if donors.size == 1
|
158
|
+
FileUtils.cp(donors.first, f1)
|
159
|
+
else
|
158
160
|
File.open(f0 = tmp_file, 'w') { |fh| donors.each { |i| fh.puts i } }
|
159
161
|
run_cmd(
|
160
162
|
<<~CMD
|
161
163
|
FastAAI merge_db --threads #{opts[:thr]} \
|
162
|
-
--donor_file "#{f0}" --recipient "#{f1
|
164
|
+
--donor_file "#{f0}" --recipient "#{f1}"
|
163
165
|
CMD
|
164
166
|
)
|
165
167
|
raise "Cannot merge databases into: #{f1}" unless File.size?(f1)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: miga-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.3.
|
4
|
+
version: 1.1.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luis M. Rodriguez-R
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daemons
|