Migrating to CORNETO 1.0#
The documented guides, tutorials, and API index define the supported CORNETO 1.0 surface. Undocumented beta-era experiments and duplicate implementations were removed instead of being carried as permanent compatibility aliases.
Canonical imports#
Earlier import |
CORNETO 1.0 import |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module-level graph serialization |
|
The old future, K, and ops paths in this table remain warning
compatibility paths throughout 1.x. The private _ml path and duplicate graph
serialization functions do not have shims.
Removed without compatibility shims#
The legacy
FBAProblem/fba_problemformulation and the oldmulticondition_imatimplementation.Undocumented beta-era method aliases such as
runVanillaCarnival,runInverseCarnival, andfast_carnival.Duplicate private graph, data, I/O, NetworkX, and legacy implementation modules (
corneto._graph,corneto._data,corneto._io,corneto._nx,corneto._core, andcorneto._legacy).The British-spelling
corneto.methods.signallingimplementation and the old module-shapedcorneto.methods.signaling, as well as the singularcorneto.methods.signalcompatibility namespace; signaling methods now live in thecorneto.methods.signalingpackage.Duplicate module-level graph serialization helpers from
corneto.io.
Multi-condition convention#
Modern formulations use explicit method-specific arguments through build for
one condition and named condition mappings through build_many. The advanced
build_from_data(graph, data) interface accepts a corneto.Data object when
custom feature metadata is needed. Passing Data directly to build is a
deprecated compatibility path.
Choosing a CARNIVAL entry point#
milp_carnival(graph, perturbations, measurements, ...)is the supported simple single-condition ILP and accepts two mappings directly.CarnivalILP(...).build(pkn, perturbations=..., transcription_factors=...)is the default single-condition ILP interface; usebuild_manyfor named conditions.CarnivalFlowprovides the same explicit inputs with a flow-based formulation.
Alternative-solution sampling#
The sampler used by the indexed tutorials remains supported:
from corneto.methods.sampler import sample_alternative_solutions