miga-base 1.4.1.1 → 1.4.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f62f3128a245915ab0a7fc73a71e2819e672c68f1003ea387b51ad227654b59f
4
- data.tar.gz: cb374513b9b38a32934a88dae8849ec80aafafded609eae429c90d4072bc4afa
3
+ metadata.gz: e8a9efe7d6856ed97bd734817d4c244e90aa217eb951862447b3cbc37de4e53a
4
+ data.tar.gz: 7f235a9dc35a5782c35857ef6fda7cd2ba31aadbf348e54ceffa42312b79f68c
5
5
  SHA512:
6
- metadata.gz: 237e9a0dcd2ac5ee740233fd6912ff393ebb333a14897b9b0a4422b8931cab8a0e0a6c9fea68ee2075d6be40261d4f245453f8b2db97aa3e0845d8ea92dc8516
7
- data.tar.gz: 85df874e633b48bdb0c98073c5f0557b248ab0b65a36e11eb0e0c78996539a6946665884b43af9a73e81ce73c3c3b8806c0aee268317ded831fba315797b180e
6
+ metadata.gz: dbc4345086a35fcac1837f8f5d24c16f73354e80c70d6bb52998e1503f29f3070073edc08af22e1b6462a4099c7947081914591c724581459ae661a79d1b8113
7
+ data.tar.gz: 1705185d4668bd5922729879e64d949c0b41f59bdee7bef325a9ed5c6909305559f7e5dcd47b31fe4a21a0d3eba74ba8775463e0b334b51720b510c36560d512
@@ -20,7 +20,7 @@ class MiGA::Cli::Action::Env < MiGA::Cli::Action
20
20
  done
21
21
  # Override gzip with pigz (if available)
22
22
  if command -v pigz &>/dev/null ; then
23
- function gzip { pigz -p ${CORES:-2} "$@" ; }
23
+ gzip() { pigz -p ${CORES:-2} "$@" ; }
24
24
  fi
25
25
  BASH
26
26
  end
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.4, 1, 1].freeze
15
+ VERSION = [1.4, 1, 2].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(2025, 11, 19)
23
+ VERSION_DATE = Date.new(2026, 2, 3)
24
24
 
25
25
  ##
26
26
  # References of MiGA
@@ -10,7 +10,7 @@ DIR="$PROJECT/data/09.distances/02.aai"
10
10
  miga_start_project_step "$DIR"
11
11
 
12
12
  # Extract values
13
- function foreach_database_aai {
13
+ foreach_database_aai() {
14
14
  local SQL="SELECT seq1, seq2, aai, sd, n, omega from aai;"
15
15
  local k=0
16
16
  while [[ -n ${DS[$k]} ]] ; do
@@ -19,7 +19,7 @@ function foreach_database_aai {
19
19
  done
20
20
  }
21
21
 
22
- function aai_tsv {
22
+ aai_tsv() {
23
23
  DS=($(miga ls -P "$PROJECT" --ref --no-multi --active))
24
24
  echo "a b value sd n omega" | tr " " "\\t"
25
25
  if [[ ${#DS[@]} -gt 40000 ]] ; then
@@ -10,7 +10,7 @@ DIR="$PROJECT/data/09.distances/03.ani"
10
10
  miga_start_project_step "$DIR"
11
11
 
12
12
  # Extract values
13
- function foreach_database_ani {
13
+ foreach_database_ani() {
14
14
  local SQL="SELECT seq1, seq2, ani, sd, n, omega from ani;"
15
15
  local k=0
16
16
  while [[ -n ${DS[$k]} ]] ; do
@@ -19,7 +19,7 @@ function foreach_database_ani {
19
19
  done
20
20
  }
21
21
 
22
- function ani_tsv {
22
+ ani_tsv() {
23
23
  DS=($(miga ls -P "$PROJECT" --ref --no-multi --active))
24
24
  echo "a b value sd n omega" | tr " " "\\t"
25
25
  foreach_database_ani
data/scripts/init.bash CHANGED
@@ -2,7 +2,7 @@
2
2
  set -e
3
3
 
4
4
  #=======[ Functions ]
5
- function ask_user {
5
+ ask_user() {
6
6
  local question=$1
7
7
  local default=$2
8
8
  echo "$question" >&2
@@ -12,7 +12,7 @@ function ask_user {
12
12
  echo -n "$user_answer"
13
13
  }
14
14
 
15
- function check_req {
15
+ check_req() {
16
16
  local bin=$1
17
17
  local default
18
18
  default=$(dirname "$(which "$bin")")
@@ -26,14 +26,14 @@ function check_req {
26
26
  fi
27
27
  }
28
28
 
29
- function check_rlib {
29
+ check_rlib() {
30
30
  local rlib=$1
31
31
  gotit=$(echo "if(require($rlib)) cat('GOT','IT')" | R --vanilla -q 2>&1 \
32
32
  | grep -c "GOT IT")
33
33
  [[ "$gotit" == "1" ]]
34
34
  }
35
35
 
36
- function check_gem {
36
+ check_gem() {
37
37
  local gem=$1
38
38
  gotit=$(echo "require '$gem'" | ruby 2>/dev/null && echo 1)
39
39
  [[ "$gotit" == "1" ]]
data/scripts/miga.bash CHANGED
@@ -10,13 +10,13 @@ SCRIPT=${SCRIPT:-"$(basename "$0" .bash)"}
10
10
  # Ancillary functions
11
11
 
12
12
  # Evaluates if the first passed argument is an existing file
13
- function exists { [[ -e "$1" ]] ; }
13
+ exists() { [[ -e "$1" ]] ; }
14
14
 
15
15
  # Evaluates if the first passed argument is a function
16
- function fx_exists { [[ $(type -t "$1") == "function" ]] ; }
16
+ fx_exists() { [[ $(type -t "$1") == "function" ]] ; }
17
17
 
18
18
  # Initiate a project-wide run
19
- function miga_start_project_step {
19
+ miga_start_project_step() {
20
20
  local dir="$1"
21
21
  local dir_r="${dir}.running"
22
22
  mkdir -p "$dir"
@@ -26,7 +26,7 @@ function miga_start_project_step {
26
26
  }
27
27
 
28
28
  # Finalize a project-wide run
29
- function miga_end_project_step {
29
+ miga_end_project_step() {
30
30
  local dir="$1"
31
31
  local dir_r="${dir}.running"
32
32
  cd "$dir"
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.4.1.1
4
+ version: 1.4.1.2
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: 2025-11-19 00:00:00.000000000 Z
11
+ date: 2026-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons