Molecular structure drawing
MolecularGraph.atomnumber
— Methodatomnumber(atomsymbol::Symbol) -> Int
atomnumber(atom::Atom) -> Int
Return atom number.
MolecularGraph.atomsymbol
— Methodatomsymbol(n::Int) -> Symbol
Return atom symbol of given atomic number.
MolecularGraph.graphmol
— Methodgraphmol(mol::SubgraphView{GraphMol}) -> GraphMol
Generate a new GraphMol
from a substructure view.
Graph property caches and attributes are not inherited.
MolecularGraph.graphmol
— Methodgraphmol(atoms::Vector{Atom}, bonds::Vector{Bond}) -> GraphMol
Generate GraphMol
that has the given atom objects and edge objects.
MolecularGraph.graphmol
— Methodgraphmol() -> GraphMol
Generate empty GraphMol
.
MolecularGraph.graphmol
— Methodgraphmol(mol::GraphMol; clearcache=true) -> GraphMol
Copy GraphMol
. Cached properties will be removed.
MolecularGraph.querymol
— Methodquerymol(atoms::Vector{Atom}, bonds::Vector{Bond}) -> GraphMol
Generate QueryMol
that has the given atom objects and edge objects.
MolecularGraph.querymol
— Methodquerymol() -> QueryMol
Generate empty QueryMol
.
MolecularGraph.todict
— Methodtodict(graph::GraphMol) -> Dict{String,Any}
Convert molecule object into JSON compatible dictionary.