diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 350344cb9..336e215ec 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -64,6 +64,7 @@ to [Common Changelog](https://common-changelog.org)
### Fixed
+- Fix PFAM identifiers missing leading 0. ([#105](https://github.com/metagenlab/zDB/pull/105)) (Niklaus Johner)
- Fix product representation in GWAS view for orthogroups. ([#102](https://github.com/metagenlab/zDB/pull/102)) (Niklaus Johner)
- Fix Scoary-2 integration. ([#101](https://github.com/metagenlab/zDB/pull/101)) (Niklaus Johner)
- Fix search_bar results view when all loci miss any gene annotation. ([#99](https://github.com/metagenlab/zDB/pull/99)) (Niklaus Johner)
diff --git a/webapp/templates/chlamdb/fam.html b/webapp/templates/chlamdb/fam.html
index 1085bb2d9..3567ec39a 100644
--- a/webapp/templates/chlamdb/fam.html
+++ b/webapp/templates/chlamdb/fam.html
@@ -84,7 +84,7 @@
Description
{% if object_type == 'pfam' %}
External link |
- {{ fam }} |
+ {{ fam }} |
{% elif object_type == 'interpro' %}
diff --git a/webapp/templates/chlamdb/home.html b/webapp/templates/chlamdb/home.html
index 41640f5e1..7701eb451 100644
--- a/webapp/templates/chlamdb/home.html
+++ b/webapp/templates/chlamdb/home.html
@@ -290,7 +290,7 @@ {{metadata.group_metadata.object_name_plural}}
- COG (clusters of orthologous groups, reference DB version {{versions|keyvalue:"CDD"}})
{% endif %}
{% if optional2status|keyvalue:"pfam" == 1 %}
- - Pfam (protein families, reference DB version {{versions|keyvalue:"Pfam"}})
+ - Pfam (protein families, reference DB version {{versions|keyvalue:"Pfam"}})
{% endif %}
{% if optional2status|keyvalue:"KEGG" == 1 %}
- KEGG (Kegg orthologs, reference DB version {{versions|keyvalue:"Ko"}})
@@ -321,7 +321,7 @@ {{metadata.group_metadata.object_name_plural}}
-COG (clusters of orthologous groups)
{% endif %}
{% if not optional2status|keyvalue:"pfam" == 1 %}
- - Pfam (protein families)
+ - Pfam (protein families)
{% endif %}
{% if not optional2status|keyvalue:"KEGG" == 1 %}
- KEGG (Kegg orthologs)
diff --git a/webapp/views/utils.py b/webapp/views/utils.py
index df5c8f8c9..105bd40ca 100644
--- a/webapp/views/utils.py
+++ b/webapp/views/utils.py
@@ -144,7 +144,7 @@ def format_hmm_url(hmm_id):
def format_pfam(pfam_id, base=None, to_url=False):
if base is None:
- fmt_entry = f"PF{pfam_id:04d}"
+ fmt_entry = f"PF{pfam_id:05d}"
else:
fmt_entry = base
if to_url: