Molecular graph models
Basic molecular graph type and interfaces
MolecularGraph.to_dict
— Methodto_dict(mol::MolGraph) -> Dict{String,Any}
Convert molecule object into JSON compatible dictionary.
MolecularGraph.to_json
— Methodto_json(mol::MolGraph) -> String
Convert molecule object into JSON String.
MolecularGraph.u_edge
— Methodu_edge(::Type{T}, src, dst) where T <: Integer -> Edge{T}
u_edge(g::SimpleGraph{T}, src, dst) where T -> Edge{T}
u_edge(mol::AbstractMolGraph{T}, src, dst) where T -> Edge{T}
A workaround for UndirectedEdge that are not yet implemented in SimpleGraph
MolecularGraph.Reaction
— TypeReaction{T}
Reaction type.
MolecularGraph.MolGraph
— TypeMolGraph{T,V,E} <: SimpleMolGraph{T,V,E}
Basic molecular graph type.
Default atom and bond types
MolecularGraph.atomnumber
— Methodatomnumber(atomsymbol::Symbol) -> Int
Return atom number.
MolecularGraph.atomsymbol
— Methodatomsymbol(n::Int) -> Symbol
Return atom symbol of given atomic number.
MolecularGraph.SDFAtom
— TypeSDFAtom
SDFile (CTAB) atom property type.
MolecularGraph.SMILESAtom
— TypeSMILESAtom
SMILES atom property type.
MolecularGraph.SDFBond
— TypeSDFBond
SDFile (CTAB) bond property type.
- SDFile bond notation
- Single bond
- 0: u - v
- 1: u ◀ v (Up-arrow)
- 4: u ~ v (Up or down)
- 6: u ◁ v (Down-arrow)
- Double bond
- 0: v = u
- 3: u x v (Cis-Trans Unknown)
- Single bond
MolecularGraph.SMILESBond
— TypeSMILESBond
SMILES bond property type.