miga-base 1.3.20.1 → 1.3.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/miga/version.rb +2 -2
  3. data/scripts/cds.bash +11 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6c4afd4c7ece4cbb7c188d59b1743b149e1b721a44f12dfa90e47d960716266
4
- data.tar.gz: cb37cb26f5ced17d58172ca00f90860a984071c628878f4e65ecf019347cda7d
3
+ metadata.gz: c6cd171c44ec3139121607db27badddcd12e8cefd45f49acc6bc5f018184943f
4
+ data.tar.gz: 8ca59c51be7224fb7e0d3b0561cb72ef9f95594a2b51fa9a3c04c65ab60d7b66
5
5
  SHA512:
6
- metadata.gz: de3a104391e4742b5fa26ed4e96c35ca64780d244c591895a9465089825e11d5521d301467daf520fb06acbe837afc0fc0f75da26fdbc19fdff78cfb31085d53
7
- data.tar.gz: 746203077d5ec8a48b85129324b954cfa587a89a3f9eee4c0dc23075925ad3ecf2649b251979ac0e03ef8fc4f18f68f03afc4a72df034f18b134d3ffda1f0075
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, 1].freeze
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, 7, 25)
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 single -g "$ct" \
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.1
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-07-25 00:00:00.000000000 Z
11
+ date: 2024-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons