miga-base 1.3.15.1 → 1.3.15.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 +1 -1
- data/scripts/miga.bash +5 -0
- data/scripts/mytaxa.bash +4 -6
- data/scripts/mytaxa_scan.bash +3 -4
- data/scripts/ssu.bash +1 -1
- data/scripts/trimmed_reads.bash +2 -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: fc7061e7db5ea3abbd360cbb333a80200c7c4ee3ab9f12f9c13e3c780c5d6137
|
4
|
+
data.tar.gz: 3e72007cc93f82eab23bc4663dc0fdf4f609ee1ab5dee2661c7d076e56da07bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 126fe24613362de8ea56e457294d87846ed6155402f853c12eee7a64ba55a0108fa79f4de52b3fe9a46cf3ede18893ad170fb63189637c12a3074dde107488cf
|
7
|
+
data.tar.gz: 411aeb6de107190ac6d7b1024cf4fd77996ad7f9be2127dec54a12dd6fac9f1659e606e901a2b7a5cc1a0f62363426b23c817beeef3ae77a92f1643532e7b44d
|
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, 15,
|
15
|
+
VERSION = [1.3, 15, 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, 5,
|
23
|
+
VERSION_DATE = Date.new(2024, 5, 21)
|
24
24
|
|
25
25
|
##
|
26
26
|
# References of MiGA
|
data/scripts/cds.bash
CHANGED
data/scripts/miga.bash
CHANGED
@@ -15,6 +15,11 @@ function exists { [[ -e "$1" ]] ; }
|
|
15
15
|
# Evaluates if the first passed argument is a function
|
16
16
|
function fx_exists { [[ $(type -t "$1") == "function" ]] ; }
|
17
17
|
|
18
|
+
# Override gzip with pigz (if available)
|
19
|
+
if command -v pigz &>/dev/null ; then
|
20
|
+
function gzip { pigz -p ${CORES:-2} "$@" ; }
|
21
|
+
fi
|
22
|
+
|
18
23
|
# Initiate a project-wide run
|
19
24
|
function miga_start_project_step {
|
20
25
|
local dir="$1"
|
data/scripts/mytaxa.bash
CHANGED
@@ -86,12 +86,10 @@ else
|
|
86
86
|
ktImportText -o "$DATASET.html" -n biota "$DATASET.mytaxa.krona,$DATASET"
|
87
87
|
|
88
88
|
# Gzip and cleanup
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
gzip -9 -f "$DATASET.mytaxain"
|
94
|
-
gzip -9 -f "$DATASET.blast"
|
89
|
+
for i in "../../../06.cds/$DATASET.gff2" "../../../06.cds/$DATASET.gff3" \
|
90
|
+
"$DATASET.mytaxain" "$DATASET.blast" ; do
|
91
|
+
[[ -e $i ]] && gzip -9f $i
|
92
|
+
done
|
95
93
|
rm "$DATASET.daa"
|
96
94
|
fi
|
97
95
|
|
data/scripts/mytaxa_scan.bash
CHANGED
@@ -72,7 +72,7 @@ else
|
|
72
72
|
awk "NR==$win" "$DATASET.wintax.genes" | tr "\\t" "\\n" \
|
73
73
|
> "$DATASET.reg/$i.ids"
|
74
74
|
if [[ "$FAA" == *.gz ]] ; then
|
75
|
-
gzip -
|
75
|
+
gzip -cd "$FAA" \
|
76
76
|
| FastA.filter.pl -q "$DATASET.reg/$i.ids" /dev/stdin \
|
77
77
|
> "$DATASET.reg/$i.faa"
|
78
78
|
else
|
@@ -81,8 +81,7 @@ else
|
|
81
81
|
fi
|
82
82
|
done
|
83
83
|
# Archive regions
|
84
|
-
tar -
|
85
|
-
gzip -9 "$DATASET.reg.tar"
|
84
|
+
tar -c "$DATASET.reg" | gzip -9c > "$DATASET.reg.tar.gz"
|
86
85
|
rm -r "$DATASET.reg"
|
87
86
|
fi
|
88
87
|
|
@@ -91,7 +90,7 @@ else
|
|
91
90
|
[[ -e "$DATASET.$x" ]] && rm "$DATASET.$x"
|
92
91
|
done
|
93
92
|
[[ -s "$DATASET.mytaxa" && ! -s "$DATASET.mytaxa.gz" ]] \
|
94
|
-
&& gzip -
|
93
|
+
&& gzip -9f "$DATASET.mytaxa"
|
95
94
|
fi
|
96
95
|
|
97
96
|
fi
|
data/scripts/ssu.bash
CHANGED
data/scripts/trimmed_reads.bash
CHANGED
@@ -30,7 +30,8 @@ FastQ.tag.rb -i "$in1" -p "$b-" -s "/1" -o "$b.1.fastq.gz"
|
|
30
30
|
[[ -e "$in2" ]] && FastQ.tag.rb -i "$in2" -p "$b-" -s "/2" -o "$b.2.fastq.gz"
|
31
31
|
|
32
32
|
# Multitrim
|
33
|
-
CMD="multitrim.py --
|
33
|
+
CMD="multitrim.py --level 9 --threads $CORES -o $b"
|
34
|
+
command -v pigz &>/dev/null && CMD="$CMD --zip pigz"
|
34
35
|
if [[ -s "$b.2.fastq.gz" ]] ; then
|
35
36
|
# Paired
|
36
37
|
$CMD -1 "$b.1.fastq.gz" -2 "$b.2.fastq.gz"
|
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.15.
|
4
|
+
version: 1.3.15.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-05-
|
11
|
+
date: 2024-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daemons
|