Skip to content

Commit 244ebad

Browse files
author
Jon Palmer
committed
fix taxonomy, JGI changed format of superkingdom/domain;#8
1 parent 7232365 commit 244ebad

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

CITATION.cff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cff-version: version = "25.4.30"
1+
cff-version: version = "25.5.26"
22
title: 'funannotate2: eukaryotic genome annotation'
33
message: >-
44
If you use this software, please cite it using the
@@ -17,5 +17,5 @@ keywords:
1717
- functional annotation
1818
- consensus gene models
1919
license: BSD-2-Clause
20-
version: version = "25.4.30"
21-
date-released: '2025-05-01'
20+
version: version = "25.5.26"
21+
date-released: '2025-05-26'

funannotate2/utilities.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def lookup_taxonomy(name):
299299
This function retrieves a taxonomy dictionary for a specified organism by querying
300300
an external taxonomy service. If the species name is valid, it returns a dictionary
301301
containing taxonomic levels and names. If the name is invalid or an error occurs,
302-
it returns False.
302+
it returns False. EDIT: JGI changed superkingdom to domain, so map it.
303303
304304
Parameters:
305305
- name (str): The name of the organism to fetch, e.g., 'Aspergillus nidulans'.
@@ -321,7 +321,7 @@ def lookup_taxonomy(name):
321321
# reformat result to simpler version
322322
data = {}
323323
for i in [
324-
"superkingdom",
324+
"domain",
325325
"kingdom",
326326
"phylum",
327327
"class",
@@ -331,7 +331,10 @@ def lookup_taxonomy(name):
331331
"species",
332332
]:
333333
if i in result:
334-
data[i] = result[i]["name"]
334+
if i == "domain":
335+
data["superkingdom"] = result[i]["name"]
336+
else:
337+
data[i] = result[i]["name"]
335338
return data
336339
except requests.exceptions.RequestException as e:
337340
print("ERROR in taxonomy lookup: {}".format(e))

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "funannotate2"
7-
version = "25.4.30"
7+
version = "25.5.26"
88
description = "Funannotate2: eukarytoic genome annotation pipeline"
99
readme = {file = "README.md", content-type = "text/markdown"}
1010
authors = [

0 commit comments

Comments
 (0)