miga-base 0.7.25.3 → 0.7.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miga/cli/action/init.rb +23 -9
- data/lib/miga/version.rb +2 -2
- data/utils/requirements.txt +4 -4
- 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: dda80476da72166bd5eb6bc22a5ae7afc94285a58afe312633a06115e7336d80
|
4
|
+
data.tar.gz: 176c5a3c167232bb221b778b2bb3762c6795893171740dbff83b899d68034cd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90b69b23c515e7f8ce2508b5c719856112e2b874876c81bc18767fa5b384d3d6b2e1b819b313f7afbc6d9260ddbaf9b143bd3503c641eed29f1738197837c13b
|
7
|
+
data.tar.gz: f25b7224d1b37c386e0d4776a40be0a05496bfa9fd9715c59722794e298405280b3043ac26f7cbd5d033090673776b93a7744610aa24fd0bf7331329f0561e64
|
data/lib/miga/cli/action/init.rb
CHANGED
@@ -14,6 +14,8 @@ class MiGA::Cli::Action::Init < MiGA::Cli::Action
|
|
14
14
|
cli.defaults = {
|
15
15
|
mytaxa: nil,
|
16
16
|
rdp: nil,
|
17
|
+
reads: nil,
|
18
|
+
optional: nil,
|
17
19
|
config: File.join(ENV['MIGA_HOME'], '.miga_modules'),
|
18
20
|
ask: false,
|
19
21
|
auto: false,
|
@@ -35,6 +37,16 @@ class MiGA::Cli::Action::Init < MiGA::Cli::Action
|
|
35
37
|
'Should I try setting up the RDP classifier?',
|
36
38
|
'By default: interactive (true if --auto)'
|
37
39
|
) { |v| cli[:rdp] = v }
|
40
|
+
opt.on(
|
41
|
+
'--[no-]read-processing',
|
42
|
+
'Should I try setting up read processing software?',
|
43
|
+
'By default: interactive (true if --auto)'
|
44
|
+
) { |v| cli[:reads] = v }
|
45
|
+
opt.on(
|
46
|
+
'--[no-]optional',
|
47
|
+
'Should I try setting up the optional software?',
|
48
|
+
'Automatically sets answers for mytaxa, rdp, and reads'
|
49
|
+
) { |v| cli[:optional] = v }
|
38
50
|
opt.on(
|
39
51
|
'--daemon-type STRING',
|
40
52
|
'Type of daemon launcher, one of: bash, ssh, qsub, msub, slurm',
|
@@ -104,6 +116,8 @@ class MiGA::Cli::Action::Init < MiGA::Cli::Action
|
|
104
116
|
rc_fh.puts "export MIGA_MYTAXA='#{cli[:mytaxa] ? 'yes' : 'no'}'"
|
105
117
|
ask_for_optional(:rdp, 'RDP classifier')
|
106
118
|
rc_fh.puts "export MIGA_RDP='#{cli[:rdp] ? 'yes' : 'no'}'"
|
119
|
+
ask_for_optional(:reads, 'read processing')
|
120
|
+
rc_fh.puts "export MIGA_READS='#{cli[:reads] ? 'yes' : 'no'}'"
|
107
121
|
paths = {}
|
108
122
|
rc_fh.puts 'MIGA_PATH=""'
|
109
123
|
req_path = File.expand_path('utils/requirements.txt', MiGA.root_path)
|
@@ -123,20 +137,20 @@ class MiGA::Cli::Action::Init < MiGA::Cli::Action
|
|
123
137
|
def define_software(ln)
|
124
138
|
r = ln.chomp.split(/\t+/)
|
125
139
|
return if %w[Software --------].include?(r[0])
|
126
|
-
return if r[0] =~ /\(
|
127
|
-
return if r[0] =~ /\(rdp\)$/ && !cli[:rdp]
|
140
|
+
%i[mytaxa rdp reads].each { |i| return if r[0] =~ /\(#{i}\)$/ && !cli[i] }
|
128
141
|
|
129
142
|
r
|
130
143
|
end
|
131
144
|
|
132
145
|
def ask_for_optional(symbol, name)
|
133
|
-
if cli[symbol].nil?
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
146
|
+
cli[symbol] = cli[:optional] if !cli[:optional].nil? && cli[symbol].nil?
|
147
|
+
return cli[symbol] unless cli[symbol].nil?
|
148
|
+
|
149
|
+
cli[symbol] =
|
150
|
+
cli.ask_user(
|
151
|
+
"Should I include #{name} modules?",
|
152
|
+
'yes', %w(yes no)
|
153
|
+
) == 'yes'
|
140
154
|
end
|
141
155
|
|
142
156
|
def find_software(exec)
|
data/lib/miga/version.rb
CHANGED
@@ -10,7 +10,7 @@ module MiGA
|
|
10
10
|
# - Float representing the major.minor version.
|
11
11
|
# - Integer representing gem releases of the current version.
|
12
12
|
# - Integer representing minor changes that require new version number.
|
13
|
-
VERSION = [0.7,
|
13
|
+
VERSION = [0.7, 26, 0].freeze
|
14
14
|
|
15
15
|
##
|
16
16
|
# Nickname for the current major.minor version.
|
@@ -18,7 +18,7 @@ module MiGA
|
|
18
18
|
|
19
19
|
##
|
20
20
|
# Date of the current gem release.
|
21
|
-
VERSION_DATE = Date.new(2021,
|
21
|
+
VERSION_DATE = Date.new(2021, 3, 1)
|
22
22
|
|
23
23
|
##
|
24
24
|
# Reference of MiGA.
|
data/utils/requirements.txt
CHANGED
@@ -10,12 +10,12 @@ FastANI fastANI https://github.com/ParBLiSS/FastANI Required version: 1.1+
|
|
10
10
|
HMMer 3.0+ hmmsearch http://hmmer.janelia.org/software
|
11
11
|
Bedtools bedtools http://bedtools.readthedocs.org/en/latest/
|
12
12
|
Prodigal prodigal http://prodigal.ornl.gov
|
13
|
-
IDBA idba_ud http://i.cs.hku.hk/~alse/hkubrg/projects/idba
|
14
13
|
MCL mcl http://micans.org/mcl/
|
15
14
|
Barrnap barrnap http://www.vicbioinformatics.com/software.barrnap.shtml
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
IDBA (reads) idba_ud http://i.cs.hku.hk/~alse/hkubrg/projects/idba
|
16
|
+
Scythe (reads) scythe https://github.com/vsbuffalo/scythe Required version: 0.991+
|
17
|
+
FastQC (reads) fastqc http://www.bioinformatics.babraham.ac.uk/projects/fastqc
|
18
|
+
SolexaQA++ (reads) SolexaQA++ http://solexaqa.sourceforge.net Required version: v3.1.3+
|
19
19
|
OpenJDK (rdp) java https://adoptopenjdk.net/ Any Java VM would work
|
20
20
|
MyTaxa (mytaxa) MyTaxa http://enve-omics.ce.gatech.edu/mytaxa
|
21
21
|
Krona (mytaxa) ktImportText https://github.com/marbl/Krona/wiki
|
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: 0.7.
|
4
|
+
version: 0.7.26.0
|
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: 2021-
|
11
|
+
date: 2021-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daemons
|