diff --git a/foreman/data_refinery_foreman/surveyor/transcriptome_index.py b/foreman/data_refinery_foreman/surveyor/transcriptome_index.py index 9adac2916..414d8f556 100644 --- a/foreman/data_refinery_foreman/surveyor/transcriptome_index.py +++ b/foreman/data_refinery_foreman/surveyor/transcriptome_index.py @@ -370,7 +370,7 @@ def discover_division_species( if strain_mapping: organism_strain_name = f"{organism_name}_{strain_mapping['strain'].lower()}" assembly_matches = list( - filter(lambda s: s["assembly_name"] == strain_mapping["assembly"], all_species) + utils.filter_dicts_on_key("assembly_name", strain_mapping["assembly"], all_species) ) if len(assembly_matches) != 1: