saezlab / pypath

Python module for prior knowledge integration. Builds databases of signaling pathways, enzyme-substrate interactions, complexes, annotations and intercellular communication roles.
http://omnipathdb.org/
GNU General Public License v3.0
134 stars 45 forks source link

Fixed error retrieving boolean annotations #279

Closed npalacioescat closed 7 months ago

npalacioescat commented 7 months ago

Fixed an error when processing boolean annotations that caused everything to be False. This was making some methods to give unexpected results e.g. to retrieve no ligand-receptor interactions

For some reason the attribute fields were all uppercase (e.g. "TRUE"), therefore rec[attr] == 'True' was returning False when it was actually True. Now regardless of the case ("True", "TRUE", "true", "TrUe", etc.), returns True

Similar thing applied in the check below for "False".