Skip to content

Commit

Permalink
slight correction again on LIPID MAPS SP notation
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-kopczynski committed Jun 30, 2022
1 parent d1f0357 commit 01c580c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pygoslin/parser/LipidMapsParserEventHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,7 @@ def set_mod_num(self, node):

def add_functional_group(self, node):
if self.mod_text != "Cp":
if self.current_fa.lipid_FA_bond_type in FattyAcid.LCB_STATES and self.mod_text == "OH":
if "OH" in self.current_fa.functional_groups and len(self.current_fa.functional_groups["OH"]) > 0:
if self.current_fa.lipid_FA_bond_type in FattyAcid.LCB_STATES and self.mod_text == "OH" and "OH" in self.current_fa.functional_groups and len(self.current_fa.functional_groups["OH"]) > 0:
self.current_fa.functional_groups["OH"][-1].position = self.mod_pos
else:
functional_group = get_functional_group(self.mod_text).copy()
Expand Down

0 comments on commit 01c580c

Please sign in to comment.