| Previous changeset 10:2e297d531259 (2025-04-25) |
|
Commit message:
planemo upload for repository https://unipept.ugent.be/apidocs commit 3c558355ee4f859d4356a05e79f8777fdfbede87 |
|
modified:
unipept.py unipept.xml |
| b |
| diff -r 2e297d531259 -r 4edfc76f8a29 unipept.py --- a/unipept.py Fri Apr 25 20:58:00 2025 +0000 +++ b/unipept.py Fri Nov 14 21:05:00 2025 +0000 |
| [ |
| @@ -199,16 +199,16 @@ def get_node(id, name, rank, child, seq): if id not in id_to_node: - data = {'count': 0, 'self_count': 0, 'valid_taxon': 1, 'rank': rank, 'sequences': []} - node = {'id': id, 'name': name, 'children': [], 'kids': [], 'data': data} + extra = {'valid_taxon': 1, 'rank': rank, 'sequences': []} + node = {'id': id, 'name': name, 'children': [], 'kids': [], 'count': 0, 'selfCount': 0, 'extra': extra} id_to_node[id] = node else: node = id_to_node[id] - node['data']['count'] += 1 - if seq is not None and seq not in node['data']['sequences']: - node['data']['sequences'].append(seq) + node['count'] += 1 + if seq is not None and seq not in node['extra']['sequences']: + node['extra']['sequences'].append(seq) if child is None: - node['data']['self_count'] += 1 + node['selfCount'] += 1 elif child['id'] not in node['kids']: node['kids'].append(child['id']) node['children'].append(child) @@ -249,16 +249,16 @@ def get_node(id, name, child, seq): if id not in id_to_node: - data = {'count': 0, 'self_count': 0, 'sequences': []} - node = {'id': id, 'name': name, 'children': [], 'kids': [], 'data': data} + extra = {'sequences': []} + node = {'id': id, 'name': name, 'children': [], 'kids': [], 'count': 0, 'selfCount': 0, 'extra': extra} id_to_node[id] = node else: node = id_to_node[id] - node['data']['count'] += 1 - if seq is not None and seq not in node['data']['sequences']: - node['data']['sequences'].append(seq) + node['count'] += 1 + if seq is not None and seq not in node['extra']['sequences']: + node['extra']['sequences'].append(seq) if child is None: - node['data']['self_count'] += 1 + node['selfCount'] += 1 elif child['id'] not in node['kids']: node['kids'].append(child['id']) node['children'].append(child) |
| b |
| diff -r 2e297d531259 -r 4edfc76f8a29 unipept.xml --- a/unipept.xml Fri Apr 25 20:58:00 2025 +0000 +++ b/unipept.xml Fri Nov 14 21:05:00 2025 +0000 |
| b |
| @@ -1,4 +1,4 @@ -<tool id="unipept" name="Unipept" version="6.2.4+galaxy0" profile="22.05"> +<tool id="unipept" name="Unipept" version="6.2.4+galaxy1" profile="25.0"> <description>retrieve taxonomy for peptides</description> <macros> <xml name="equate_il"> @@ -619,6 +619,11 @@ type: Optional, type of the InterPro entry. Included when the extra parameter is set to true. name: Optional, name of the InterPro entry. Included when the extra parameter is set to true. + **Note on Output JSON** + + In Unipept Galaxy Version 6.2.4+galaxy1 the structure of output Taxonomy and EC JSON files was changed to conform to non-backwards compatible changes in unipept-visualizations versions >= 2.0, utilized by the Unipept Taxonomy Viewer visualization tool in Galaxy versions >= 25.0. + + Documentation of this structure may be found here: https://github.com/unipept/unipept-visualizations/wiki/DataNode **Attributions** |