sorgerlab/pysb — Issue #21: Method in Monomer object to return strings specifying name and site states
Author: jablists
Created: 2012-03-06 22:48:24+00:00
State: open

Write now the macro code is littered with the following type of statement, used to generate rule names:

r_name_fwd = 'cat_%s%s_to_%s%s' % (sub.monomer.name, ''.join(filter(lambda a: a != None, sub.site_conditions.values())),
prod.monomer.name, ''.join(filter(lambda a: a != None, prod.site_conditions.values())))

Would be nice if monomer had an alternative kind of to_string method that would give information on site states in a string friendly way.