Skip to content

IMP: updating GTDB url selection - #271

Merged
mikerobeson merged 3 commits into
bokulich-lab:masterfrom
mikerobeson:gtdb-links
Sep 29, 2026
Merged

mikerobeson merged 3 commits into
bokulich-lab:masterfrom
mikerobeson:gtdb-links

Conversation

@mikerobeson

@mikerobeson mikerobeson commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Description

This PR replaces --p-url-type with --p-db-url. GTDB no longer uses Primary and Mirror as their url options. They now suggest the options outlined here.

I've currently made this a required parameter, and the user needs to select one of the following url options:

  • world-wide-europe
  • world-wide-asia
  • australia

I was considering setting world-wide-europe as the default. But that might defeat the purpose... 🤷 I am open to suggestions.

Contains updated and newly added new unit tests.

AI Disclosure

  • NO AI USED.
  • AI USED.

AI Usage Details

@mikerobeson mikerobeson changed the title initial refactoring of url selection IMP: updating GTDB url selection Sep 25, 2026

@VinzentRisch VinzentRisch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mikerobeson
I ran the download with all three urls and it all works fine.
See some comments below.

Comment thread rescript/plugin_setup.py Outdated
'data from European servers. \'world-wide-asia\' will '
'download data from Asian-Pacific servers. and '
'\'australia\' will download from Australian servers. '
'Choose the server that is best for your reagion.'},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'Choose the server that is best for your reagion.'},
'Choose the server that is best for your region.'},

Comment thread rescript/get_gtdb.py Outdated


def _assemble_queries(version='232.0',
def _assemble_queries(db_url,

@VinzentRisch VinzentRisch Sep 29, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def _assemble_queries(db_url,
def _assemble_queries(db_url='world-wide-europe',

I would set 'world-wide-europe' as default. It is recommended for worldwide downloads on the website and will work anywhere. If there is no default a user always has to set it themselves for a parameter that does not matter that much because the download is quick anyway.

@mikerobeson
mikerobeson merged commit f7aa578 into bokulich-lab:master Sep 29, 2026
5 checks passed
@mikerobeson
mikerobeson deleted the gtdb-links branch September 29, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants