GenomicMedLab / dgipy

Python client for fast access to the Drug-Gene Interaction Database (DGIDb)
MIT License
0 stars 0 forks source link

Handle 'nan' type searches to avoid errors #41

Open mcannon068nw opened 3 months ago

mcannon068nw commented 3 months ago

Was doing a bulk search for a different project using dgipy.get_interactions and encountered a 'nan' in the dataset of type 'float'

This produced the error:

InvalidJSONError: Out of range float values are not JSON compliant

Screenshot 2024-06-11 at 9 01 03 AM

I think ideally a person using this search will have filtered out nan's or None's beforehand, but we should probably have something there to handle it just in case.