Package chemaxon.marvin.alignment
Class AlignmentMoleculeFactory
java.lang.Object
chemaxon.marvin.alignment.AlignmentMoleculeFactory
Creates an
AlignmentMolecule form a
Molecule based on the settings.- Since:
- Marvin 5.4
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ShapeData shapeData, AlignmentProperties.DegreeOfFreedomType df) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated.byte[]generateData(int molID, Molecule m, boolean enableTranslateAndRotate, boolean flexible) Deprecated, for removal: This API element is subject to removal in a future version.useinstead.invalid reference
ShapeData.toDataintintbooleanDeprecated, for removal: This API element is subject to removal in a future version.booleanbooleanDeprecated, for removal: This API element is subject to removal in a future version.The explicit Hydrogens are not removed from the original input structure.booleanvoidsetAromatize(boolean aromatize) Deprecated, for removal: This API element is subject to removal in a future version.The original input structure is not aromatized.voidsets which atomtypes to use.voidsetDehidrogenize(boolean dehidrogenize) Deprecated, for removal: This API element is subject to removal in a future version.The explicit Hydrogens are not removed from the original input structure.voidsetFlexibleRingRotatableBondCount(int rotatableBondsInRings) voidsetFlexibleRingSize(int flexibleRingSize) voidsetForcedFlexible(boolean forcedFlexible) Deprecated, for removal: This API element is subject to removal in a future version.useAlignmentProperties.DegreeOfFreedomType.TRANSLATE_ROTATE_FLEXIBLE_EXTRAto get the same behavior in thecreate(chemaxon.marvin.alignment.ShapeData, chemaxon.marvin.alignment.AlignmentProperties.DegreeOfFreedomType)methods.voidsetGenerateDistanceRanges(boolean generateDistanceRanges) Generate intermolecular atomic distance ranges by tweaking conformation.voidsetNodeType(AlignmentProperties.NodeType nodeType) voidvoidvoidsetUseAllAtoms(boolean useAllAtoms) voidsetUseOriginal(boolean useOriginal) Deprecated, for removal: This API element is subject to removal in a future version.always false: Molecule is always converted before alignment, but coordinates are written back to the original one.
-
Constructor Details
-
AlignmentMoleculeFactory
public AlignmentMoleculeFactory()
-
-
Method Details
-
generateData
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public byte[] generateData(int molID, Molecule m, boolean enableTranslateAndRotate, boolean flexible) throws AlignmentException Deprecated, for removal: This API element is subject to removal in a future version.useinstead.invalid reference
ShapeData.toDataCreates anAlignmentMoleculeform aMoleculebased on the values of the setters.- Parameters:
molID- molID of the molecule to return.m- inputMoleculeenableTranslateAndRotate- Enables translation and rotation degrees of freedom for this moleculeflexible- Enables rotation around rotatable bonds.- Returns:
AlignmentMoleculeorFlexibleMoleculeserialized to byte[] ready for writing to DB.- Throws:
AlignmentException
-
getProgressBar
-
setProgressBar
-
setUseAllAtoms
public void setUseAllAtoms(boolean useAllAtoms) - Parameters:
useAllAtoms- the useAllAtoms to set
-
setForcedFlexible
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public void setForcedFlexible(boolean forcedFlexible) Deprecated, for removal: This API element is subject to removal in a future version.useAlignmentProperties.DegreeOfFreedomType.TRANSLATE_ROTATE_FLEXIBLE_EXTRAto get the same behavior in thecreate(chemaxon.marvin.alignment.ShapeData, chemaxon.marvin.alignment.AlignmentProperties.DegreeOfFreedomType)methods. -
setUseOriginal
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public void setUseOriginal(boolean useOriginal) Deprecated, for removal: This API element is subject to removal in a future version.always false: Molecule is always converted before alignment, but coordinates are written back to the original one.Use original input structure during the calculation. Normally modifications are performed on the structure prior alignment.- Parameters:
useOriginal- the useOriginal to set
-
create
-
generate
@Deprecated public AlignmentMolecule generate(int molID, Molecule m, boolean enableTranslateAndRotate, boolean flexible) throws AlignmentException Deprecated.Creates anAlignmentMoleculeform aMoleculebased on the values of the setters.- Parameters:
molID- molID of the molecule to return.m- inputMoleculeenableTranslateAndRotate- Enables translation and rotation degrees of freedom for this moleculeflexible- Enables rotation around rotatable bonds.- Returns:
AlignmentMoleculeorFlexibleMolecule.- Throws:
AlignmentException
-
generate
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public AlignmentMolecule generate(int cdID, int molID, Molecule m, boolean enableTranslateAndRotate, boolean flexible) throws AlignmentException Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
AlignmentMoleculeorFlexibleMolecule.- Throws:
AlignmentException
-
create
-
isCreateRingCenters
public boolean isCreateRingCenters() -
setNotSpecCase
-
setDehidrogenize
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public void setDehidrogenize(boolean dehidrogenize) Deprecated, for removal: This API element is subject to removal in a future version.The explicit Hydrogens are not removed from the original input structure. No need to use.- Parameters:
dehidrogenize- no effect.
-
setGenerateDistanceRanges
public void setGenerateDistanceRanges(boolean generateDistanceRanges) Generate intermolecular atomic distance ranges by tweaking conformation. Finding min max. Can take long.- Parameters:
generateDistanceRanges- default is false.
-
setAromatize
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public void setAromatize(boolean aromatize) Deprecated, for removal: This API element is subject to removal in a future version.The original input structure is not aromatized. No need to use.Aromatize the molecule.- Parameters:
aromatize- has no effect.
-
setFlexibleRingRotatableBondCount
public void setFlexibleRingRotatableBondCount(int rotatableBondsInRings) -
setFlexibleRingSize
public void setFlexibleRingSize(int flexibleRingSize) -
setNodeType
-
setColor
sets which atomtypes to use. -
isAromatize
Deprecated, for removal: This API element is subject to removal in a future version.Original input structure is not aromatized- Returns:
- false
-
isDehidrogenize
Deprecated, for removal: This API element is subject to removal in a future version.The explicit Hydrogens are not removed from the original input structure. No need to use.- Returns:
- false
-
isGenerateDistanceRanges
public boolean isGenerateDistanceRanges() -
getFlexibleRingRotatableBondCount
public int getFlexibleRingRotatableBondCount() -
getFlexibleRingSize
public int getFlexibleRingSize() -
getResultMolecule
- Returns:
- the resultMolecule
-
create(Molecule, AlignmentProperties.DegreeOfFreedomType)instead.