miga-base 1.3.12.3 → 1.3.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a824f1edbe1778b4a7e5a0bb88062f81be5a29acfbaf22bc12d46e662f9fe15e
4
- data.tar.gz: 4ccbc1577786a1c967fa93dfd15ad0e1d46f3daf4e6f31eb8f1fc401a29c0bf6
3
+ metadata.gz: 8659bae6ee7d40a76a464840a56b4aff77f9a848d777349e98d8c316717b0021
4
+ data.tar.gz: dab1cbd8ee24503b4dfbe0e8b034da195120251c258c798bbba92668a52d3cfa
5
5
  SHA512:
6
- metadata.gz: aa3313457cae5bc365afa7d58ede79a7644afa5f051ed711d7fd7ade38961749ff8188491df675e7652037a440f24bb0e2bdba229e79b0c5b1eefcf2b015d8e4
7
- data.tar.gz: be5039aa64d97347c65d290992a7022e7e069f9afb330265bd4b571b5936f2fcac686d92951cecb9c3d57ca52f83e659b3977b66aaa617c80ecafa3600769ff2
6
+ metadata.gz: '09a916e1db7bb4912111e83c2d832a779a245c8eb326aee3cfcead8611d484f737a1cbcae1a1279a2673a2f31a8252c859b533b7ae9b6c74c8881b41e63e7c40'
7
+ data.tar.gz: 43e7065632d2642abb0c6bb5fac8ae96e0696c0f48b128376fa5d1ac929c1c7b787df61af78bee5a4824049da7b2baf976f9bb3d3f083184ca02deefc166114e
@@ -5,6 +5,9 @@ require 'miga/cli/action'
5
5
  require 'miga/remote_dataset'
6
6
 
7
7
  class MiGA::Cli::Action::Get < MiGA::Cli::Action
8
+ require 'miga/cli/action/download/base'
9
+ include MiGA::Cli::Action::Download::Base
10
+
8
11
  def parse_cli
9
12
  cli.defaults = {
10
13
  query: false, universe: :ncbi, db: :nuccore, get_md: false, only_md: false
@@ -69,12 +72,18 @@ class MiGA::Cli::Action::Get < MiGA::Cli::Action
69
72
  '--api-key STRING',
70
73
  'API key for the given universe'
71
74
  ) { |v| cli[:api_key] = v }
75
+ opt.on(
76
+ '--ncbi-taxonomy-dump [path]',
77
+ 'Path to an NCBI Taxonomy dump directory to query instead of API calls',
78
+ 'If the path is not passed, the dump is automatically downloaded'
79
+ ) { |v| cli[:ncbi_taxonomy_dump] = v || true }
72
80
  end
73
81
  end
74
82
 
75
83
  def perform
76
84
  glob = get_sub_cli
77
85
  p = cli.load_project
86
+ load_ncbi_taxonomy_dump
78
87
  glob.each do |sub_cli|
79
88
  rd = create_remote_dataset(sub_cli, p)
80
89
  next if rd.nil?
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, 12, 3].freeze
15
+ VERSION = [1.3, 13, 0].freeze
16
16
 
17
17
  ##
18
18
  # Nickname for the current major.minor version.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.12.3
4
+ version: 1.3.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R