Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove standalone PointFinder support #98

Merged
merged 14 commits into from
Jan 3, 2025
Prev Previous commit
Next Next commit
ResFinder: fix variant phenotype collection
zwets committed Dec 30, 2024
commit a6b4d4518b4079e735fe8cc730a8bfd0f2d187af
6 changes: 3 additions & 3 deletions hAMRonization/ResFinderIO.py
Original file line number Diff line number Diff line change
@@ -118,9 +118,9 @@ def set_variation_fields(r, vs):
_codon.append(v.get('codon_change'))

# Add the content of the list fields to the bags above
fold(lambda s, e: s.add(e), _phenos, v.get('phenotypes', []))
fold(lambda s, e: s.add(e), _notes, v.get('notes', []))
fold(lambda s, e: s.add(e), _pmids, v.get('pmids', []))
_phenos.update(v.get('phenotypes', []))
_notes.update(v.get('notes', []))
_pmids.update(v.get('pmids', []))

# We have collected all variations on region r, now collapse into fields on res
res.predicted_phenotype = _empty_to_none(", ".join(filter(None, _phenos)))