miga-base 1.3.20.2 → 1.3.20.3
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/scripts/cds.bash +8 -2
- 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: c6cd171c44ec3139121607db27badddcd12e8cefd45f49acc6bc5f018184943f
|
4
|
+
data.tar.gz: 8ca59c51be7224fb7e0d3b0561cb72ef9f95594a2b51fa9a3c04c65ab60d7b66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 281aa0434dbeb5d4d5c69e5df44a459e77d22ce1664c68553fe61c04640ec27128002428aaffca3f1913973d2cb689afba51e683f7e3ca594bfede38b1ad79be
|
7
|
+
data.tar.gz: 2f37a8bc9fd5e516a669185b56e71339fca60314d7505917e1c4d4291801c81f4d9a3a36988e63bf0e0829d63046b3dc1b34c072a893449df2b63aa849cb1a05
|
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, 20,
|
15
|
+
VERSION = [1.3, 20, 3].freeze
|
16
16
|
|
17
17
|
##
|
18
18
|
# Nickname for the current major.minor version.
|
data/scripts/cds.bash
CHANGED
@@ -16,6 +16,14 @@ if [[ -e "../05.assembly/$DATASET.LargeContigs.fna.gz" \
|
|
16
16
|
miga add_result -P "$PROJECT" -D "$DATASET" -r assembly -f
|
17
17
|
fi
|
18
18
|
|
19
|
+
# Check if the input assembly is empty
|
20
|
+
ASM_LEN=$(grep -v '^>' "../05.assembly/${DATASET}.LargeContigs.fna" \
|
21
|
+
| wc -lc | awk '{ print $2-$1 }')
|
22
|
+
if [[ "$ASM_LEN" -lt 1 ]] ; then
|
23
|
+
miga edit -P "$PROJECT" -D "$DATASET" --inactivate "Empty assembly"
|
24
|
+
exit 0
|
25
|
+
fi
|
26
|
+
|
19
27
|
# Run Prodigal
|
20
28
|
TYPE=$(miga ls -P "$PROJECT" -D "$DATASET" -m type | cut -f 2)
|
21
29
|
case "$TYPE" in
|
@@ -27,8 +35,6 @@ case "$TYPE" in
|
|
27
35
|
P_LEN=0
|
28
36
|
BEST_CT=0
|
29
37
|
PROCEDURE=single
|
30
|
-
ASM_LEN=$(grep -v '^>' "../05.assembly/${DATASET}.LargeContigs.fna" \
|
31
|
-
| wc -lc | awk '{ print $2-$1 }')
|
32
38
|
[[ "$ASM_LEN" -lt 2000 ]] && PROCEDURE=meta
|
33
39
|
echo "# Codon table selection:" > "${DATASET}.ct.t"
|
34
40
|
for ct in 11 4 ; do
|