You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new v2 database schema: every ring-cut attachment point now carries the isotope label [1*:n]
cremdb_create writes v2 only
cremdb_merge refuses to merge databases of different schema versions (mixing conventions would silently produce a database in which only part of the ring-arc space is reachable)
cremdb_create canonicalises the core SMILES of every fragment, so the interchangeable labellings of a symmetric core (C([:1])[:2] and C([:2])[:1]) collapse into one row. Reduce DB size by ~9% and the number of internally generated duplicates
radius 0 support: an optional radius0 table matching replacements only by attachment-point class (RxAy - x ring-cut points, y acyclic), with no context constraint. Note radius-0 result sets are huge: pass max_replacements
cremdb_convert: new --target-version {1,2} (default 2); v0 sources only - a v1 or v2 input is now rejected with an explanation
cremdb_info: new script reporting the schema version, fragment sets and property columns of one or more databases. The same report is available programmatically as crem.db.get_db_info. cremdb_get_set_names is superseded by it and deprecated: it still works and will be removed in a future release
v1 databases remain readable but raise a FutureWarning; support may be dropped in a future release. There is no v1 -> v2 converter: the upgrade is a rebuild from the source SMILES with cremdb_create
link_mols on a v2 database draws only acyclic-cut linkers; on v1 it could also reach ring arcs at radius 1 through an env collision
make_cycle: new spiro argument (False by default, True, or 'only') closes a ring through a single atom. Eligible are ring atoms with two replaceable hydrogens; an acyclic atom is not eligible, a closure through one of those being an ordinary core replacement that mutate_mol already produces.
ring geometry filter: products whose newly formed ring may not exist are now discarded. It is on by default in make_cycle, mutate_mol and get_mols_from_replacements
return_rxn_freq now reports a real occurrence count on v1/v2 databases instead of always 0: the maximum count across the sets selected by set_names, matching the min_freq filter (a fragment is selected when any one set reaches the threshold)
set names and fragment property names are quoted wherever they are interpolated into SQL, so a name colliding with an SQLite keyword (all, order, index, ...) no longer causes a syntax error. Quoting is purely syntactic
set_names validation rejects schema columns such as dist2 that are not per-set counts, and de-duplicates repeated names
__crem now always describes the current call: markers left by an earlier call are cleared from the input molecule
fix: mol_context.get_canon_context_core / get_std_context_core_permutations now default to preserve_dummy_isotopes=True, so ring-cut labels are kept unless stripping is asked for explicitly
fix: crem.db.create_db with a dict set_name created two sets per ID-filtered entry
performance: faster product assembly - context hydrogens are stripped once per context instead of once per product
the example directory has been removed; the tutorial notebooks, along with one-page reference cards, now live in a separate repository, https://github.com/DrrDom/crem-tutorials, linked from README
remove unused __cycle_pattern; use a raw string for the empty-bracket regex so crem.crem imports cleanly under -W error