psamm.translate_id
– ID Translation Functions¶
-
class
psamm.translate_id.
TranslatedModel
(ref_model, compound_map, reaction_map, compartment_map=None)¶ A
NativeModel
with translated ids based on reference model.The compound_map, reaction_map and compartment_map are three dict that use original id as key and new id as value. Use
write_model()
to output yaml files.-
write_model
(dest, **kwargs)¶ Output model into YAML files.
-