From 9c5c10137a5cfdf7ee13f04a6896dab7ca7c2984 Mon Sep 17 00:00:00 2001 From: Mike Robeson Date: Tue, 13 Aug 2024 03:00:47 -0500 Subject: [PATCH] adding silva 138.2 download option (#198) --- rescript/get_data.py | 4 ++-- rescript/plugin_setup.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rescript/get_data.py b/rescript/get_data.py index 09ef8132..35db9c2f 100644 --- a/rescript/get_data.py +++ b/rescript/get_data.py @@ -20,7 +20,7 @@ def get_silva_data(ctx, - version='138.1', + version='138.2', target='SSURef_NR99', include_species_labels=False, rank_propagation=True, @@ -86,7 +86,7 @@ def _assemble_silva_data_urls(version, target, download_sequences=True): tax_url = base_url_tax + '.txt' # add ".gz" for the following versions: - if version in ['138', '138.1']: + if version in ['138', '138.1', '138.2']: tree_url += '.gz' tax_url += '.gz' diff --git a/rescript/plugin_setup.py b/rescript/plugin_setup.py index 1164d2a2..50e50f1c 100644 --- a/rescript/plugin_setup.py +++ b/rescript/plugin_setup.py @@ -729,7 +729,7 @@ "[default: '" + "', '".join(DEFAULT_RANKS) + "']") -_SILVA_VERSIONS = ['128', '132', '138', '138.1'] +_SILVA_VERSIONS = ['128', '132', '138', '138.1', '138.2'] _SILVA_TARGETS = ['SSURef_NR99', 'SSURef', 'LSURef_NR99', 'LSURef'] version_map, target_map, _ = TypeMap({ @@ -737,7 +737,7 @@ Str % Choices('SSURef_NR99', 'SSURef', 'LSURef')): Visualization, (Str % Choices('138'), Str % Choices('SSURef_NR99', 'SSURef')): Visualization, - (Str % Choices('138.1'), + (Str % Choices('138.1', '138.2'), Str % Choices('SSURef_NR99', 'SSURef', 'LSURef_NR99', 'LSURef')): Visualization, })