Skip to content

Commit

Permalink
feat(rplibs>rpSBML): add rm_isolated_species()
Browse files Browse the repository at this point in the history
  • Loading branch information
breakthewall committed Nov 29, 2023
1 parent 7739b41 commit 66895b1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rptools/rplibs/rpSBML.py
Original file line number Diff line number Diff line change
Expand Up @@ -1807,6 +1807,16 @@ def copyTitles(
)


def rm_isolated_species(self) -> None:
"""
Remove isolated species.
"""
group = self.getModel().getPlugin('groups').getGroup("rp_fba_ignored_species")
if group:
self.getModel().getPlugin('groups').removeGroup(group.getId())
self.logger.debug("Remove " + str(group.getId()) + " group")


def get_isolated_species(self) -> List[str]:
"""
Return speices that are isolated, i.e. are only consumed or only produced.
Expand Down

0 comments on commit 66895b1

Please sign in to comment.