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 +4 -4
- data/lib/miga/cli/action/get.rb +9 -0
- data/lib/miga/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8659bae6ee7d40a76a464840a56b4aff77f9a848d777349e98d8c316717b0021
|
4
|
+
data.tar.gz: dab1cbd8ee24503b4dfbe0e8b034da195120251c258c798bbba92668a52d3cfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09a916e1db7bb4912111e83c2d832a779a245c8eb326aee3cfcead8611d484f737a1cbcae1a1279a2673a2f31a8252c859b533b7ae9b6c74c8881b41e63e7c40'
|
7
|
+
data.tar.gz: 43e7065632d2642abb0c6bb5fac8ae96e0696c0f48b128376fa5d1ac929c1c7b787df61af78bee5a4824049da7b2baf976f9bb3d3f083184ca02deefc166114e
|
data/lib/miga/cli/action/get.rb
CHANGED
@@ -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,
|
15
|
+
VERSION = [1.3, 13, 0].freeze
|
16
16
|
|
17
17
|
##
|
18
18
|
# Nickname for the current major.minor version.
|