Skip to content

Commit

Permalink
don't add annotation if accession is None
Browse files Browse the repository at this point in the history
  • Loading branch information
ivagljiva committed Nov 20, 2023
1 parent eefc80c commit 3934b39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anvio/kegg.py
Original file line number Diff line number Diff line change
Expand Up @@ -5149,7 +5149,8 @@ def init_hits_for_pangenome(self, gene_cluster_list: list):
for source in self.annotation_sources_to_use:
if source in pan_super.gene_clusters_functions_summary_dict[cluster_id]:
acc = pan_super.gene_clusters_functions_summary_dict[cluster_id][source]['accession']
enzyme_cluster_split_contig.append((acc,cluster_id,"NA","NA"))
if acc: # avoid introducing 'None' values here
enzyme_cluster_split_contig.append((acc,cluster_id,"NA","NA"))

return enzyme_cluster_split_contig

Expand Down

0 comments on commit 3934b39

Please sign in to comment.