Class ExtAtomContainerManipulator
java.lang.Object
org.openscience.cdk.tools.manipulator.AtomContainerManipulator
org.openscience.cdk.smsd.tools.ExtAtomContainerManipulator
Deprecated.
SMSD has been deprecated from the CDK with a newer, more recent
version of SMSD is available at http://github.com/asad/smsd.
Class that handles some customised features for SMSD atom containers.
This is an extension of CDK AtomContainer. Some part of this code was taken from CDK source code and modified.
- Author:
- Syed Asad Rahman <asad@ebi.ac.uk>
-
Field Summary
Fields inherited from class AtomContainerManipulator
MolWeight, MolWeightIgnoreSpecified, MonoIsotopic, MostAbundant, NAT_ABUN_COMPModifier and TypeFieldDescriptionstatic final intFor use withAtomContainerManipulator.getMass(IAtomContainer).static final intFor use withAtomContainerManipulator.getMass(IAtomContainer).static final intFor use withAtomContainerManipulator.getMass(IAtomContainer).static final intFor use withAtomContainerManipulator.getMass(IAtomContainer).static final Comparator<IIsotope> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeprecated.This function finds rings and uses aromaticity detection code to aromatize the molecule.static IAtomContainerconvertExplicitToImplicitHydrogens(IAtomContainer atomContainer) Deprecated.Returns IAtomContainer without Hydrogen.static intgetExplicitHydrogenCount(IAtomContainer atomContainer, IAtom atom) Deprecated.Returns The number of explicit hydrogens for a given IAtom.static intgetHydrogenCount(IAtomContainer atomContainer, IAtom atom) Deprecated.The summed implicit + explicit hydrogens of the given IAtom.static intDeprecated.Returns The number of Implicit Hydrogen Count for a given IAtom.static IAtomContainermakeDeepCopy(IAtomContainer container) Deprecated.Retrurns deep copy of the moleculestatic voidpercieveAtomTypesAndConfigureAtoms(IAtomContainer container) Deprecated.Convenience method to perceive atom types for allIAtoms in theIAtomContainer, using theCDKAtomTypeMatcher.static IAtomContainerremoveHydrogensExceptSingleAndPreserveAtomID(IAtomContainer atomContainer) Deprecated.Returns IAtomContainer without Hydrogen.Methods inherited from class AtomContainerManipulator
anonymise, clearAtomConfigurations, convertImplicitToExplicitHydrogens, copy, copy, copy, copyAndSuppressedHydrogens, countExplicitHydrogens, countHydrogens, createAllCarbonAllSingleNonAromaticBondAtomContainer, extractSubstructure, extractSubstructure, getAllIDs, getAtomArray, getAtomArray, getAtomById, getBondArray, getBondArray, getBondOrderSum, getElectronContainerArray, getElectronContainerArray, getHeavyAtoms, getImplicitHydrogenCount, getIntersection, getMass, getMass, getMaximumBondOrder, getMolecularWeight, getNaturalExactMass, getSingleBondEquivalentSum, getTotalCharge, getTotalExactMass, getTotalFormalCharge, getTotalHydrogenCount, getTotalNaturalAbundance, getTotalNegativeFormalCharge, getTotalPositiveFormalCharge, normalizeHydrogens, percieveAtomTypesAndConfigureUnsetProperties, removeHydrogens, removeHydrogensPreserveMultiplyBonded, removeNonChiralHydrogens, replaceAtomByAtom, setAtomProperties, setSingleOrDoubleFlags, skeleton, suppressHydrogens, unregisterAtomListeners, unregisterElectronContainerListenersModifier and TypeMethodDescriptionstatic IAtomContaineranonymise(IAtomContainer src) Anonymise the provided container to single-bonded carbon atoms.static voidclearAtomConfigurations(IAtomContainer container) This method will reset all atom configuration to UNSET.static voidconvertImplicitToExplicitHydrogens(IAtomContainer atomContainer) Adds explicit hydrogens (without coordinates) to the IAtomContainer, equaling the number of set implicit hydrogens.static voidcopy(IAtomContainer dest, IAtomContainer source, Collection<IAtom> atoms) Copy atoms in the collection from a 'source' molecule to the provideddestination.static voidcopy(IAtomContainer dest, IAtomContainer source, Predicate<IAtom> atomFilter) Copy selected atoms from a 'source' molecule to the provideddestination.static voidcopy(IAtomContainer dest, IAtomContainer source, Predicate<IAtom> atomFilter, Predicate<IBond> bondFilter) Copy selected atoms/bonds from a 'source' molecule to the provideddestination.static IAtomContainerCopy the input container and suppress any explicit hydrogens.static intcountExplicitHydrogens(IAtomContainer atomContainer, IAtom atom) Count explicit hydrogens.static intcountHydrogens(IAtomContainer atomContainer, IAtom atom) static IAtomContainerDeprecated.not all attributes are removed producing unexpected results, useAtomContainerManipulator.anonymise(IAtomContainer)static IAtomContainerextractSubstructure(IAtomContainer atomContainer, int... atomIndices) Deprecated.static IAtomContainerextractSubstructure(IAtomContainer source, Collection<IAtom> atoms) Extract a substructure from a 'source' molecule to the provideddestination based on the collection of atoms.getAllIDs(IAtomContainer mol) static IAtom[]getAtomArray(List<IAtom> list) Constructs an array of Atom objects from a List of Atom objects.static IAtom[]getAtomArray(IAtomContainer container) Constructs an array of Atom objects from an AtomContainer.static IAtomgetAtomById(IAtomContainer ac, String id) Returns an atom in an atomcontainer identified by idstatic IBond[]getBondArray(List<IBond> list) Constructs an array of Atom objects from a List of Atom objects.static IBond[]getBondArray(IAtomContainer container) Constructs an array of Bond objects from an AtomContainer.static doublegetBondOrderSum(IAtomContainer container, IAtom atom) Returns the sum of the bond order equivalents for a given IAtom.static IElectronContainer[]Constructs an array of Atom objects from a List of Atom objects.static IElectronContainer[]getElectronContainerArray(IAtomContainer container) Constructs an array of Bond objects from an AtomContainer.getHeavyAtoms(IAtomContainer container) Returns a set of nodes excluding all the hydrogens.static intgetImplicitHydrogenCount(IAtomContainer container) Counts the number of implicit hydrogens on the provided IAtomContainer.static IAtomContainergetIntersection(IAtomContainer container1, IAtomContainer container2) Compares this AtomContainer with another given AtomContainer and returns the Intersection between them.static doublegetMass(IAtomContainer mol) Calculate the mass of a molecule, this function takes an optional 'mass flavour' that switches the computation type.static doublegetMass(IAtomContainer mol, int flav) Calculate the mass of a molecule, this function takes an optional 'mass flavour' that switches the computation type.static IBond.OrdergetMaximumBondOrder(IAtomContainer container) static doublestatic doublestatic intgetSingleBondEquivalentSum(IAtomContainer container) Returns the sum of bond orders, where a single bond counts as one single bond equivalent, a double as two, etc.static doublegetTotalCharge(IAtomContainer atomContainer) Get the summed charge of all atoms in an AtomContainerstatic doublestatic intgetTotalFormalCharge(IAtomContainer atomContainer) Get the total formal charge on a molecule.static intgetTotalHydrogenCount(IAtomContainer container) Counts the number of hydrogens on the provided IAtomContainer.static doublegetTotalNaturalAbundance(IAtomContainer atomContainer) Get the summed natural abundance of all atoms in an AtomContainerstatic intgetTotalNegativeFormalCharge(IAtomContainer atomContainer) Get the total formal negative charge on a molecule.static intgetTotalPositiveFormalCharge(IAtomContainer atomContainer) Get the total positive formal charge on a molecule.static voidnormalizeHydrogens(IAtomContainer container, HydrogenState state) Normalize the state in which hydrogens are represented/store in the provided molecule.static voidConvenience method to perceive atom types for allIAtoms in theIAtomContainer, using theCDKAtomTypeMatcher.static IAtomContainerCreate an copy of theorgstructure with explicit hydrogens removed.static IAtomContainerDeprecated.AtomContainerManipulator.suppressHydrogens(IAtomContainer)will now not removed bridging hydrogens by defaultstatic IAtomContainerremoveNonChiralHydrogens(IAtomContainer container) Produces an AtomContainer without explicit non stereo-relevant Hs but with H count from one with Hs.static booleanreplaceAtomByAtom(IAtomContainer container, IAtom oldAtom, IAtom newAtom) Substitute one atom in a container for another adjusting bonds, single electrons, lone pairs, and stereochemistry as required.static voidsetAtomProperties(IAtomContainer container, Object propKey, Object propVal) Sets a property on allAtoms in the given container.static IAtomContainerAssignsIChemObject.SINGLE_OR_DOUBLEflags to the bonds of a container.static IAtomContainerskeleton(IAtomContainer src) Create a skeleton copy of the provided structure.static IAtomContainersuppressHydrogens(IAtomContainer container) Suppress any explicit hydrogens in the provided container.static voidunregisterAtomListeners(IAtomContainer container) A method to remove AtomListeners.static voidA method to remove ElectronContainerListeners.
-
Constructor Details
-
ExtAtomContainerManipulator
public ExtAtomContainerManipulator()Deprecated.
-
-
Method Details
-
makeDeepCopy
Deprecated.Retrurns deep copy of the molecule- Parameters:
container-- Returns:
- deep copy of the mol
-
aromatizeMolecule
Deprecated.This function finds rings and uses aromaticity detection code to aromatize the molecule.- Parameters:
mol- input molecule
-
getExplicitHydrogenCount
Deprecated.Returns The number of explicit hydrogens for a given IAtom.- Parameters:
atomContainer-atom-- Returns:
- The number of explicit hydrogens on the given IAtom.
-
getImplicitHydrogenCount
Deprecated.Returns The number of Implicit Hydrogen Count for a given IAtom.- Parameters:
atom-- Returns:
- Implicit Hydrogen Count
-
getHydrogenCount
Deprecated.The summed implicit + explicit hydrogens of the given IAtom.- Parameters:
atomContainer-atom-- Returns:
- The summed implicit + explicit hydrogens of the given IAtom.
-
removeHydrogensExceptSingleAndPreserveAtomID
public static IAtomContainer removeHydrogensExceptSingleAndPreserveAtomID(IAtomContainer atomContainer) Deprecated.Returns IAtomContainer without Hydrogen. If an AtomContainer has atom single atom which is atom Hydrogen then its not removed.- Parameters:
atomContainer-- Returns:
- IAtomContainer without Hydrogen. If an AtomContainer has atom single atom which is atom Hydrogen then its not removed.
-
convertExplicitToImplicitHydrogens
Deprecated.Returns IAtomContainer without Hydrogen. If an AtomContainer has atom single atom which is atom Hydrogen then its not removed.- Parameters:
atomContainer-- Returns:
- IAtomContainer without Hydrogen. If an AtomContainer has atom single atom which is atom Hydrogen then its not removed.
-
percieveAtomTypesAndConfigureAtoms
Deprecated.Convenience method to perceive atom types for allIAtoms in theIAtomContainer, using theCDKAtomTypeMatcher. If the matcher finds atom matching atom type, theIAtomwill be configured to have the same properties as theIAtomType. If no matching atom type is found, no configuration is performed.- Parameters:
container-- Throws:
CDKException
-