Skip to content

Commit

Permalink
deduplicate AMRfinder phenotypes
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkc committed Dec 12, 2023
1 parent af20d4e commit d4273d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prp/parse/phenotype/amrfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _parse_amrfinder_amr_results(predictions: dict) -> Tuple[ResistanceGene, ...
# concat resistance profile
sr_profile = {
"susceptible": [],
"resistant": [pheno.name for gene in genes for pheno in gene.phenotypes]
"resistant": list({ pheno.name for gene in genes for pheno in gene.phenotypes })
}
return ElementTypeResult(phenotypes=sr_profile, genes=genes, mutations=[])

Expand Down

0 comments on commit d4273d4

Please sign in to comment.