Preprocessing

MolecularGraph.depolarizeMethod
depolarize(mol::SimpleMolGraph; negative=:O, positive=[:C, :P]) -> Nothing

Depolarize dipole double bonds of the molecule.

source
MolecularGraph.extract_largest_component!Method
extract_largest_component!(mol::SimpleMolGraph) -> Nothing

Return the largest connected component of the molecular graph.

This should be useful when you want to remove salt and water molecules from the molecular graph simply. On the other hand, this can remove important components from the mixture so carefully apply this preprocess method.

source
MolecularGraph.kekulizeMethod
kekulize(mol::SimpleMolGraph) -> Vector{Int}

Return an array of bond orders with kekulization applied.

Double bonds and single bonds will be assigned to aromatic rings which consist of SMILES lowercase atoms (called Kekulization). Kekulization is necessary for the valence and implicit hydrogens of a molecule parsed from SMILES to be correctly evaluated.

source
MolecularGraph.polarizeMethod
polarize(mol::SimpleMolGraph; negative=:O, positive=[:N, :S]) -> Nothing

Polarize dipole double bonds of the molecule.

source
MolecularGraph.removable_hydrogensMethod
removable_hydrogens(mol::SimpleMolGraph{T,V,E}) -> Vector{T}

Return a vector of removable hydrogen nodes.

Removable hydrogens are not charged, have no unpaired electron, have no specific mass, are non-stereospecific and are attached to organic heavy atoms.

source
MolecularGraph.remove_all_hydrogens!Method
remove_all_hydrogens!(mol::SimpleMolGraph{T,V,E}) -> Vector{T}

Remove all hydrogen vertices from the molecule.

This returns vmap array similar to Graphs.rem_vertices!.

source
MolecularGraph.remove_hydrogens!Method
remove_hydrogens!(mol::SimpleMolGraph{T,V,E}) -> Vector{T}

Remove following hydrogen vertices from the molecule: that are not charged, have no unpaired electron, have no specific mass, are non-stereospecific and are attached to organic heavy atoms.

This returns vmap array similar to Graphs.rem_vertices!.

source
MolecularGraph.to_allene_likeMethod
to_allene_like(mol::SimpleMolGraph) -> Nothing

Standardize the molecule so that all 1,3-dipole groups are represented as allene-like structure (e.g. Diazo group [C-][N+]#N -> C=[N+]=[N-]).

source
MolecularGraph.to_triple_bondMethod
to_triple_bond(mol::SimpleMolGraph) -> Nothing

Standardize the molecule so that all 1,3-dipole groups are represented as triple bond and single bond (e.g. Diazo group C=[N+]=[N-] -> [C-][N+]#N).

source