Skip to content

Commit

Permalink
Update SeqCode API endpoint to v1
Browse files Browse the repository at this point in the history
  • Loading branch information
lmrodriguezr committed May 2, 2024
1 parent bf90851 commit a71e2a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/miga/cli/action/download/seqcode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def remote_list
:seqcode, :'type-genomes', nil, :json, nil, page: current_page
)
doc = MiGA::Json.parse(json, contents: true)
current_page = doc[:current_page] + 1
total_pages = doc[:total_pages]
current_page = doc.dig(:response, :current_page) + 1
total_pages = doc.dig(:response, :total_pages)

doc[:values].each do |name|
next unless name[:type_material]
Expand Down
2 changes: 1 addition & 1 deletion lib/miga/remote_dataset/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module MiGA::RemoteDataset::Base
@@_EUTILS = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/'
@@_EBI_API = 'https://www.ebi.ac.uk/Tools/'
@@_GTDB_API = 'https://gtdb-api.ecogenomic.org/'
@@_SEQCODE_API = 'https://disc-genomics.uibk.ac.at/seqcode/'
@@_SEQCODE_API = 'https://api.seqco.de/v1/'
@@_EUTILS_BUILD = lambda { |service, q|
q[:api_key] = ENV['NCBI_API_KEY'] if ENV['NCBI_API_KEY']
uri_safe_join(@@_EUTILS, "#{service}.fcgi")
Expand Down
4 changes: 2 additions & 2 deletions lib/miga/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ module MiGA
# - String indicating release status:
# - rc* release candidate, not released as gem
# - [0-9]+ stable release, released as gem
VERSION = [1.3, 14, 7].freeze
VERSION = [1.3, 15, 0].freeze

##
# Nickname for the current major.minor version.
VERSION_NAME = 'mezzotint'

##
# Date of the current gem relese.
VERSION_DATE = Date.new(2024, 4, 24)
VERSION_DATE = Date.new(2024, 5, 2)

##
# References of MiGA
Expand Down

0 comments on commit a71e2a6

Please sign in to comment.