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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ed682917cf2e5645f7ae31789932c2d14eaf06faa29aca1b13142862f653d49
4
- data.tar.gz: fce8e42084a3896c49a01ce603d0c99ac766b1bade878b43ac55fd5be11ba523
3
+ metadata.gz: c6cd171c44ec3139121607db27badddcd12e8cefd45f49acc6bc5f018184943f
4
+ data.tar.gz: 8ca59c51be7224fb7e0d3b0561cb72ef9f95594a2b51fa9a3c04c65ab60d7b66
5
5
  SHA512:
6
- metadata.gz: 1eacee695bac46bbed8c1bb13694c2ff614020eef89d8547939a6d976f21659464185d648ff2244f25e5ddba2ae429a1d87758034eefa48ce84e8636f072c686
7
- data.tar.gz: 04fb36c2c58b9fde72e48f9a9983a3505f6368ac231e412c7844380fa4a497dcd71d3209c09b97d961f393b6b3c9965092e72620b88d226fa4275a3a8993db0d
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, 2].freeze
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.20.2
4
+ version: 1.3.20.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R