Skip to content

Commit

Permalink
Corrected a bug where Reaction._genes was a list
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhyduke committed Aug 14, 2013
1 parent 62006a8 commit 01ec76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cobra/core/Reaction.py
Expand Up @@ -263,7 +263,7 @@ def parse_gene_association(self, the_type='gene'):
self._genes = set((re.compile(' {2,}').sub(' ', re.compile('\(| and| or|\+|\)').sub('', self.gene_reaction_rule))).split(' ' ))
if '' in self._genes:
self._genes.remove('')
self._genes = map(Gene, self._genes)
self._genes = set(map(Gene, self._genes))
#Make the gene aware that it is involved in this reaction
[x._reaction.add(self) for x in self._genes]

Expand Down

0 comments on commit 01ec76b

Please sign in to comment.