miga-base 1.3.20.1 → 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 +2 -2
- data/scripts/cds.bash +11 -1
- metadata +2 -2
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.
|
@@ -20,7 +20,7 @@ module MiGA
|
|
20
20
|
|
21
21
|
##
|
22
22
|
# Date of the current gem relese.
|
23
|
-
VERSION_DATE = Date.new(2024,
|
23
|
+
VERSION_DATE = Date.new(2024, 8, 29)
|
24
24
|
|
25
25
|
##
|
26
26
|
# References of MiGA
|
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
|
@@ -26,10 +34,12 @@ case "$TYPE" in
|
|
26
34
|
*)
|
27
35
|
P_LEN=0
|
28
36
|
BEST_CT=0
|
37
|
+
PROCEDURE=single
|
38
|
+
[[ "$ASM_LEN" -lt 2000 ]] && PROCEDURE=meta
|
29
39
|
echo "# Codon table selection:" > "${DATASET}.ct.t"
|
30
40
|
for ct in 11 4 ; do
|
31
41
|
prodigal -a "${DATASET}.faa.$ct" -d "${DATASET}.fna.$ct" \
|
32
|
-
-o "${DATASET}.gff3.$ct" -f gff -q -p
|
42
|
+
-o "${DATASET}.gff3.$ct" -f gff -q -p $PROCEDURE -g "$ct" \
|
33
43
|
-i "../05.assembly/${DATASET}.LargeContigs.fna"
|
34
44
|
C_LEN=$(grep -v '^>' "${DATASET}.faa.$ct" \
|
35
45
|
| perl -pe 's/[^A-Z]//ig' | wc -c | awk '{print $1}')
|
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.20.
|
4
|
+
version: 1.3.20.3
|
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: 2024-
|
11
|
+
date: 2024-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daemons
|