miga-base 1.2.1.0 → 1.2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miga/version.rb +1 -1
- data/utils/distance/commands.rb +6 -1
- data/utils/distance/pipeline.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab62d2e6d20aa126a5f455bd3b8159549d5c39b7b2e747587a0b0444a30d935a
|
4
|
+
data.tar.gz: 273671304affb6a21d1e4dc0374c4ff17edf39a96cba8893d2a666640ab1c7c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a157f0c4c52cfe4729eb5bda27900150153606b80f816a169ef18d6603b3fcd0ac03574cdbafbfcfe73e56a55ffbbf168a8c4316f066674ff6aebf6cef168500
|
7
|
+
data.tar.gz: 1a7b42d7dc75c5cac04f3408e6fba0e989d46ac63e926602c020e15340e24e8dc4694bf07b5f75ecc3a707db9d110d4a379841c426f7eb4a5670da5bcfa9642e
|
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.2,
|
15
|
+
VERSION = [1.2, 2, 0].freeze
|
16
16
|
|
17
17
|
##
|
18
18
|
# Nickname for the current major.minor version.
|
data/utils/distance/commands.rb
CHANGED
@@ -111,12 +111,17 @@ module MiGA::DistanceRunner::Commands
|
|
111
111
|
return unless File.size?(f1)
|
112
112
|
|
113
113
|
# Run FastANI
|
114
|
+
empty = true
|
114
115
|
File.open(f2 = tmp_file, 'w') do |fh|
|
115
116
|
targets.each do |target|
|
116
117
|
target_asm = target&.result(:assembly)&.file_path(:largecontigs)
|
117
|
-
|
118
|
+
if target_asm
|
119
|
+
fh.puts target_asm
|
120
|
+
empty = false
|
121
|
+
end
|
118
122
|
end
|
119
123
|
end
|
124
|
+
return if empty
|
120
125
|
run_cmd <<~CMD
|
121
126
|
fastANI -q "#{f1}" --rl "#{f2}" -t #{opts[:thr]} \
|
122
127
|
-o "#{f3 = tmp_file}"
|
data/utils/distance/pipeline.rb
CHANGED
@@ -33,6 +33,10 @@ module MiGA::DistanceRunner::Pipeline
|
|
33
33
|
|
34
34
|
# Builds a tree with all visited medoids from any classification level
|
35
35
|
def build_medoids_tree(metric)
|
36
|
+
# TODO Reduce impact and bring back the medoids tree
|
37
|
+
$stderr.puts 'Bypassing medoids tree'
|
38
|
+
return
|
39
|
+
|
36
40
|
$stderr.puts "Building medoids tree (metric = #{metric})"
|
37
41
|
db = query_db(metric)
|
38
42
|
return unless File.size? db
|