miga-base 1.2.17.2 → 1.2.17.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/remote_dataset/download.rb +1 -1
- data/lib/miga/remote_dataset.rb +9 -4
- data/lib/miga/version.rb +2 -2
- 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: 57016515d9789927d6eda96e04be04dd9d47e6f330ea8f2f489971d7f0ad3845
|
4
|
+
data.tar.gz: 3e42b22e637fc5ad47405eaac88fcc7ba00d94abfe86035c8a8a613b54e06bbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2b8cf60bfc487960e66d4a35a61fcb691d166baf31656e115c28dd3854276e062f6c9325d2d4ff924a563327a01c05f4ecfd570004deb54db05b065b955281a
|
7
|
+
data.tar.gz: 6124879ca61700d6cf58aaa27c2db405874b1fdcaeed829b835662eeb92f6a59383f1fb2ed5bb073d5b97d1bef2ed15f0580821a267cd6f5f0c65ef2dbb2f1bc
|
@@ -61,7 +61,7 @@ class MiGA::RemoteDataset
|
|
61
61
|
# Supported +opts+ (Hash) are the same as #download_rest and #ncbi_asm_rest.
|
62
62
|
def ncbi_gb_rest(opts)
|
63
63
|
# Simply use defaults, but ensure that the URL can be properly formed
|
64
|
-
o = download_rest(opts.merge(universe: :ncbi, db: :nuccore
|
64
|
+
o = download_rest(opts.merge(universe: :ncbi, db: :nuccore))
|
65
65
|
return o unless o.strip.empty?
|
66
66
|
|
67
67
|
MiGA::MiGA.DEBUG 'Empty sequence, attempting download from NCBI assembly'
|
data/lib/miga/remote_dataset.rb
CHANGED
@@ -134,7 +134,10 @@ class MiGA::RemoteDataset < MiGA::MiGA
|
|
134
134
|
# Get taxonomy
|
135
135
|
@metadata[:tax] = get_gtdb_taxonomy
|
136
136
|
when :seqcode
|
137
|
-
#
|
137
|
+
# Taxonomy already defined
|
138
|
+
# Copy IDs over to allow additional metadata linked
|
139
|
+
@metadata[:ncbi_asm] = @metadata[:seqcode_asm]
|
140
|
+
@metadata[:ncbi_nuccore] = @metadata[:seqcode_nuccore]
|
138
141
|
end
|
139
142
|
|
140
143
|
if metadata[:get_ncbi_taxonomy]
|
@@ -276,6 +279,10 @@ class MiGA::RemoteDataset < MiGA::MiGA
|
|
276
279
|
def get_type_status_ncbi_asm(metadata)
|
277
280
|
return metadata if ncbi_asm_json_doc.nil?
|
278
281
|
|
282
|
+
metadata[:suspect] = (ncbi_asm_json_doc['exclfromrefseq'] || [])
|
283
|
+
metadata[:suspect] = nil if metadata[:suspect].empty?
|
284
|
+
return metadata if metadata[:is_type] # If predefined, as in SeqCode
|
285
|
+
|
279
286
|
from_type = ncbi_asm_json_doc['from_type']
|
280
287
|
from_type = ncbi_asm_json_doc['fromtype'] if from_type.nil?
|
281
288
|
case from_type
|
@@ -292,8 +299,6 @@ class MiGA::RemoteDataset < MiGA::MiGA
|
|
292
299
|
metadata[:is_type] = true
|
293
300
|
metadata[:type_rel] = from_type
|
294
301
|
end
|
295
|
-
metadata[:suspect] = (ncbi_asm_json_doc['exclfromrefseq'] || [])
|
296
|
-
metadata[:suspect] = nil if metadata[:suspect].empty?
|
297
302
|
MiGA.DEBUG "Got type: #{from_type}"
|
298
303
|
metadata
|
299
304
|
end
|
@@ -306,7 +311,7 @@ class MiGA::RemoteDataset < MiGA::MiGA
|
|
306
311
|
File.open("#{base}.start", 'w') { |ofh| ofh.puts Time.now.to_s }
|
307
312
|
if udb[:format] == :fasta_gz
|
308
313
|
download "#{l_ctg}.gz"
|
309
|
-
system "gzip -
|
314
|
+
system "gzip -fd '#{l_ctg}.gz'"
|
310
315
|
else
|
311
316
|
download l_ctg
|
312
317
|
end
|
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.2, 17,
|
15
|
+
VERSION = [1.2, 17, 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(2023, 2,
|
23
|
+
VERSION_DATE = Date.new(2023, 2, 22)
|
24
24
|
|
25
25
|
##
|
26
26
|
# References of MiGA
|
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.2.17.
|
4
|
+
version: 1.2.17.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: 2023-02-
|
11
|
+
date: 2023-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daemons
|