EnzymeML-Rust
This is the official EnzymeML Rust library.
[!WARNING] The library is currently under development and is not yet ready for production use.
Installation
Examples
Create an EnzymeML document
use *;
let mut enzmldoc = default;
// Create small molecules
let substrate = default
.id
.name
.build?;
let product = default
.id
.name
.build?;
enzmldoc.to_small_molecules;
enzmldoc.to_small_molecules;
// Create a reaction
let reaction = build_reaction!;
enzmldoc.to_reactions;
// Create an equation
let equation = default
.species_id
.equation
.build?;
enzmldoc.to_equations;
// Serialize the document
let enzmldoc = enzmldoc.build?;
let serialized = to_string_pretty?;
println!;
Deserialize an EnzymeML document
use *;
use Path;
let path = new;
let enzmldoc: EnzymeMLDocument = from_reader?;
println!;