gruenewald-lab / CGsmiles

Coarse-Grained Smiles (CGsmiles) for representing abitrarily complex molecules using a compact line notation
5 stars 2 forks source link

Sampler #17

Closed fgrunewald closed 2 months ago

fgrunewald commented 4 months ago

Initial draft for a sampler class that takes fragments and makes random molecules according to bonding probabilities

fgrunewald commented 2 months ago

@pckroon All reactivities are probabilities. Reactivities is used when the decision is based on a bonding descriptor. I've added a clarification in the docs.

they should all be from_fragment_string but some examples were older from before

Not entirely because at the CG level branch termination cannot be determined by the bonding descriptor when no end-group is added. Otherwise, yes one could do as suggest. Of course one other option is to simply define an empty or fake terminal. But not sure that makes it easier.