miga-base 1.0.5.2 → 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/bin/miga-env +6 -0
- 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/scripts/miga.bash +2 -2
- 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
- data/utils/requirements.txt +7 -7
- metadata +7 -4
@@ -36,19 +36,15 @@ HMM.essential.rb \
|
|
36
36
|
> "${DATASET}.ess/log"
|
37
37
|
|
38
38
|
# Index for FastAAI
|
39
|
-
NOMULTI=$(miga
|
39
|
+
NOMULTI=$(miga ls -P "$PROJECT" -D "$DATASET" --no-multi \
|
40
40
|
| wc -l | awk '{print $1}')
|
41
41
|
if [[ "$NOMULTI" -eq "1" ]] ; then
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
--ext ".faix" --index --input-paths --all-vs-all --threads "$CORES"
|
49
|
-
rm "${DATASET}.faix"
|
50
|
-
rm "${DATASET}.faix.hmm"
|
51
|
-
rm "${DATASET}.faix.hmm.filt"
|
42
|
+
echo "$FAA" > "$DATASET"
|
43
|
+
FastAAI build_db --protein_file "$DATASET" \
|
44
|
+
-o "${DATASET}.faix.d" --threads "$CORES"
|
45
|
+
rm "$DATASET"
|
46
|
+
mv "${DATASET}.faix.d/database/FastAAI_database.sqlite.db" "${DATASET}.faix"
|
47
|
+
rm -r "${DATASET}.faix.d"
|
52
48
|
fi
|
53
49
|
|
54
50
|
# Reduce files
|
data/scripts/miga.bash
CHANGED
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
|