miga-base 0.7.25.1 → 0.7.26.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 +4 -4
- data/lib/miga/cli/action/init.rb +23 -9
- data/lib/miga/version.rb +2 -2
- data/utils/distance/pipeline.rb +1 -1
- data/utils/distance/runner.rb +2 -1
- data/utils/requirements.txt +4 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a4edaaac424eb59fe5956b98c74b6926bfd57b90fd80e0dff9556c5ec75aae5
|
4
|
+
data.tar.gz: 0d2bba4f71074ef9efbeb03482a2d860b3c56ecd6734e7e8aeb82a928c2eec7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0052068c9d5a055d2c13694f1bacf755a37aa294d6db76ea8ed10a1464ddd58f6a536513f8d3f8817cf2491b7f2b01825fcf891bea75e72d699b0d2b9b82804e'
|
7
|
+
data.tar.gz: bbef9fa36b8b8900a3c9de38b3e69daf23fddf2fea59d0899d2781edecd96d32c6f612945ed8f32c373ea669ee7ee02c9c0d9db5db8b13cd92c95c94601494ca
|
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, 2].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/distance/pipeline.rb
CHANGED
@@ -15,7 +15,7 @@ module MiGA::DistanceRunner::Pipeline
|
|
15
15
|
values = send(metric, sbj_datasets)
|
16
16
|
max_idx = values.map(&:to_f).each_with_index.max[1]
|
17
17
|
max_val = values[max_idx]
|
18
|
-
val_med =
|
18
|
+
val_med = sbj_datasets[max_idx].name
|
19
19
|
val_cls = max_idx + 1
|
20
20
|
puts "[#{classif}] New max: #{val_med} (#{val_cls}): #{max_val}"
|
21
21
|
|
data/utils/distance/runner.rb
CHANGED
@@ -102,7 +102,8 @@ class MiGA::DistanceRunner
|
|
102
102
|
cl_path = res.file_path :clades_ani95
|
103
103
|
if !cl_path.nil? && File.size?(cl_path) && tsk[0] == :clade_finding
|
104
104
|
clades = File.foreach(cl_path).map { |i| i.chomp.split(',') }
|
105
|
-
|
105
|
+
sbj_dataset_names = clades.find { |i| i.include?(closest[:ds]) }
|
106
|
+
sbj_datasets = sbj_dataset_names&.map { |i| ref_project.dataset(i) }
|
106
107
|
ani_after_aai(sbj_datasets, 80.0) if sbj_datasets
|
107
108
|
end
|
108
109
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luis M. Rodriguez-R
|
8
|
-
autorequire:
|
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
|
@@ -554,7 +554,7 @@ homepage: http://enve-omics.ce.gatech.edu/miga
|
|
554
554
|
licenses:
|
555
555
|
- Artistic-2.0
|
556
556
|
metadata: {}
|
557
|
-
post_install_message:
|
557
|
+
post_install_message:
|
558
558
|
rdoc_options:
|
559
559
|
- lib
|
560
560
|
- README.md
|
@@ -576,7 +576,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
576
576
|
version: '0'
|
577
577
|
requirements: []
|
578
578
|
rubygems_version: 3.1.4
|
579
|
-
signing_key:
|
579
|
+
signing_key:
|
580
580
|
specification_version: 4
|
581
581
|
summary: MiGA
|
582
582
|
test_files: []
|