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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afb7c816474f73c547c7f54982293fe72c24d7829184801ab51fc848adf3d9e3
4
- data.tar.gz: 06d51ebc47e96c28072c8415321014535ea7576d9e6f1c381e3ca62dc880df15
3
+ metadata.gz: ab62d2e6d20aa126a5f455bd3b8159549d5c39b7b2e747587a0b0444a30d935a
4
+ data.tar.gz: 273671304affb6a21d1e4dc0374c4ff17edf39a96cba8893d2a666640ab1c7c9
5
5
  SHA512:
6
- metadata.gz: a4f5279fdba54ad1f8bcbce86cb84a7643b473b7742686e8e9992f8c4af7c982d5776a5a06775b10df67b61de90c4a32f915b51a17a9b11a223474574e7f8159
7
- data.tar.gz: bcd547a1dc5337fbf036ba8e2df6de6db4c4fb34979afeb30ce6c1a692e76166b5412457fb3cc778e03cb601a192af0c8d33709b2e5d7233508dfdbd1c5156ed
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, 1, 0].freeze
15
+ VERSION = [1.2, 2, 0].freeze
16
16
 
17
17
  ##
18
18
  # Nickname for the current major.minor version.
@@ -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
- fh.puts target_asm if target_asm
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}"
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1.0
4
+ version: 1.2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R