miga-base 1.0.5.5 → 1.1.0.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/cli/action/doctor.rb +12 -4
- data/lib/miga/cli/action/env.rb +1 -1
- data/lib/miga/cli/action/init.rb +1 -1
- data/lib/miga/cli/action/ncbi_get/downloads.rb +230 -0
- data/lib/miga/cli/action/ncbi_get.rb +9 -217
- data/lib/miga/cli/action/wf.rb +7 -3
- data/lib/miga/common.rb +12 -11
- data/lib/miga/dataset/result.rb +2 -1
- data/lib/miga/version.rb +3 -3
- data/scripts/essential_genes.bash +7 -11
- data/test/common_test.rb +7 -7
- data/utils/FastAAI/FastAAI +3630 -0
- data/utils/FastAAI/{FastAAI → FastAAI-legacy}/FastAAI +1 -1
- data/utils/FastAAI/{kAAI_v1.0_virus.py → FastAAI-legacy/kAAI_v1.0_virus.py} +0 -0
- data/utils/distance/commands.rb +24 -13
- metadata +6 -4
data/test/common_test.rb
CHANGED
@@ -78,21 +78,21 @@ class CommonTest < Test::Unit::TestCase
|
|
78
78
|
|
79
79
|
# Check advance when missing total
|
80
80
|
o = capture_stderr { m.advance('x', 0) }.string
|
81
|
-
assert_match(
|
81
|
+
assert_match(%r{\] x *\r}, o)
|
82
82
|
|
83
83
|
# Initialize advance
|
84
|
-
o = capture_stderr { m.advance('x', 0,
|
85
|
-
assert_match(
|
84
|
+
o = capture_stderr { m.advance('x', 0, 1001) }.string
|
85
|
+
assert_match(%r{\] x 0\.0% \(0/1001\) *\r}, o)
|
86
86
|
|
87
87
|
# Insufficient data for prediction
|
88
88
|
sleep(1)
|
89
|
-
o = capture_stderr { m.advance('x', 1,
|
90
|
-
assert_match(
|
89
|
+
o = capture_stderr { m.advance('x', 1, 1000) }.string
|
90
|
+
assert_match(%r{\] x 0\.1% \(1/1000\) *\r}, o)
|
91
91
|
|
92
92
|
# Predict time
|
93
93
|
sleep(1)
|
94
|
-
o = capture_stderr { m.advance('x', 2,
|
95
|
-
assert_match(
|
94
|
+
o = capture_stderr { m.advance('x', 2, 1000) }.string
|
95
|
+
assert_match(%r{\] x 0\.2% \(2/1000\) 1\d\.\dm left *\r}, o)
|
96
96
|
end
|
97
97
|
|
98
98
|
def test_num_suffix
|