Skip to content

Commit

Permalink
feat(rpFBA): add from_cobra
Browse files Browse the repository at this point in the history
  • Loading branch information
breakthewall committed Jan 30, 2023
1 parent 720196a commit c8e3fc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rptools/rpfba/cobra_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def to_cobra(string: str) -> str:
string = string[len(bigg_prefix):]
return string.replace(at_pattern, '@')

def from_cobra(string: str) -> str:
return string.replace('@', at_pattern)

def cobra_suffix(comp_id: str) -> str:
return at_pattern+comp_id

Expand Down

0 comments on commit c8e3fc3

Please sign in to comment.