def get_charge(self):
        '''Returns charge'''
        charge = parsers.get_charge(self.__chebi_id)

        if math.isnan(charge):
            charge = parsers.get_charge(self.get_parent_id())

        if math.isnan(charge):
            for parent_or_child_id in self.__get_all_ids():
                charge = parsers.get_charge(parent_or_child_id)

                if not math.isnan(charge):
                    break

        return charge
Returns charge