miga-base 1.3.4.3 → 1.3.5.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: '04760780c4ec69edaeb55949c2f15933c7d9ecc1c620bbeca28a01679f957db3'
4
- data.tar.gz: 885e191e8c77a7e117d1e22875f6c90615f7cc001d0215930fd690022a88fb0d
3
+ metadata.gz: d17244b326441f224e4626b53702018fd0f3915d44e16e9be939a70dd86ceefa
4
+ data.tar.gz: 8f6c7544ab57957dbfeb53230e56ba9e7eda37c7bab2fea538ee17d9f54fd9f7
5
5
  SHA512:
6
- metadata.gz: 2b47739ea450c9217119ad61317559e7429f87b04531ad624555538885207ffbb054715d18f60757a41f5c7816cb3cdc06b4b81a378b509ac3c1518452ba02ec
7
- data.tar.gz: a3c08caf1d98ea5de2c7b137004c126a5b1541403cacd8ab88d0fa3da8a0617fe380448370f3e038bd70d3a4342b20d6476a94a5062c6aec9615838f694c5e6a
6
+ metadata.gz: bd77962a43caa04c72d01ddbe251fb02650f0f003c55b2b13a44ac1affb77b52535e5dd5fd7713c387f5a7bafdd8839255f2cd8d82be8d4c025b562a7beabfbd
7
+ data.tar.gz: b0cd50e25aa16ce2c64202daa5bbbb256e3f83742513ac984715f1b7c96f7297887856a2853ac6ec49dd43fe63b5c37cd96e83f8047ebcd32fdbc47addf892f7
@@ -141,12 +141,16 @@ module MiGA::Result::Stats
141
141
  # Determine qualitative range
142
142
  stats[:quality] = stats[:completeness][0] - stats[:contamination][0] * 5
143
143
  source.metadata[:quality] =
144
- case stats[:quality]
145
- when 80..100; :excellent
146
- when 50..80; :high
147
- when 20..50; :intermediate
148
- else; :low
144
+ if stats[:completeness][0] >= 90 && stats[:contamination][0] <= 5
145
+ :excellent # Finished or High-quality draft*
146
+ elsif stats[:completeness][0] >= 50 && stats[:contamination][0] <= 10
147
+ :high # Medium-quality draft*
148
+ elsif stats[:quality] >= 25
149
+ :intermediate # Low-quality draft* but sufficient for classification
150
+ else
151
+ :low # Low-quality draft* and insufficient for classification
149
152
  end
153
+ # * Bowers et al 2017, DOI: 10.1038/nbt.3893
150
154
  source.save
151
155
 
152
156
  # Inactivate low-quality datasets
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.3, 4, 3].freeze
15
+ VERSION = [1.3, 5, 0].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(2023, 4, 20)
23
+ VERSION_DATE = Date.new(2023, 4, 21)
24
24
 
25
25
  ##
26
26
  # References of MiGA
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.3.4.3
4
+ version: 1.3.5.0
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: 2023-04-20 00:00:00.000000000 Z
11
+ date: 2023-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons