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
-
Constructor Summary
-
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.useShapeData.toData
instead.int
int
boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
boolean
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.boolean
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.void
sets which atomtypes to use.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.void
setFlexibleRingRotatableBondCount
(int rotatableBondsInRings) void
setFlexibleRingSize
(int flexibleRingSize) void
setForcedFlexible
(boolean forcedFlexible) Deprecated, for removal: This API element is subject to removal in a future version.useAlignmentProperties.DegreeOfFreedomType.TRANSLATE_ROTATE_FLEXIBLE_EXTRA
to get the same behavior in thecreate(chemaxon.marvin.alignment.ShapeData, chemaxon.marvin.alignment.AlignmentProperties.DegreeOfFreedomType)
methods.void
setGenerateDistanceRanges
(boolean generateDistanceRanges) Generate intermolecular atomic distance ranges by tweaking conformation.void
setNodeType
(AlignmentProperties.NodeType nodeType) void
void
void
setUseAllAtoms
(boolean useAllAtoms) 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.
-
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.useShapeData.toData
instead.Creates anAlignmentMolecule
form aMolecule
based on the values of the setters.- Parameters:
molID
- molID of the molecule to return.m
- inputMolecule
enableTranslateAndRotate
- Enables translation and rotation degrees of freedom for this moleculeflexible
- Enables rotation around rotatable bonds.- Returns:
AlignmentMolecule
orFlexibleMolecule
serialized 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_EXTRA
to 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 anAlignmentMolecule
form aMolecule
based on the values of the setters.- Parameters:
molID
- molID of the molecule to return.m
- inputMolecule
enableTranslateAndRotate
- Enables translation and rotation degrees of freedom for this moleculeflexible
- Enables rotation around rotatable bonds.- Returns:
AlignmentMolecule
orFlexibleMolecule
.- 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:
AlignmentMolecule
orFlexibleMolecule
.- 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.