Package chemaxon.struc.sgroup
Class AminoAcidSgroup
java.lang.Object
chemaxon.struc.Sgroup
chemaxon.struc.sgroup.SuperatomSgroup
chemaxon.struc.sgroup.AminoAcidSgroup
- All Implemented Interfaces:
Expandable,Serializable
Amino acid S-groups.
- Since:
- Marvin 6.1, 2013.05.27.
- See Also:
-
Field Summary
Fields inherited from class chemaxon.struc.Sgroup
atomSet, brackets, CHARGE_ON_ATOMS, CHARGE_ON_GROUP, parentSgroup, PR_ATSYMS, RA_IN_EXPAND, RA_REMOVE_EXCEPT_RU, SCN_EITHER_UNKNOWN, SCN_HEAD_TO_HEAD, SCN_HEAD_TO_TAIL, SGROUP_TYPE_COUNT, sgroupGraph, sgroupType, SORT_CHILD_PARENT, SORT_PARENT_CHILD, SST_ALTERNATING, SST_BLOCK, SST_RANDOM, ST_AMINOACID, ST_ANY, ST_COMPONENT, ST_COPOLYMER, ST_CROSSLINK, ST_DATA, ST_FORMULATION, ST_GENERIC, ST_GRAFT, ST_MER, ST_MIXTURE, ST_MODIFICATION, ST_MONOMER, ST_MULTICENTER, ST_MULTIPLE, ST_SRU, ST_SUPERATOM, XSTATE_C, XSTATE_NONE, XSTATE_X, XSTATE_XCFields inherited from interface chemaxon.struc.sgroup.Expandable
DEFAULT_OPTIONS, FAST_COORDS, LEAVE_COORDS_UNCHANGED, MDL_EXPAND, NONRECURSIVE_EXPAND -
Constructor Summary
ConstructorsModifierConstructorDescriptionAminoAcidSgroup(Molecule parent) Constructs an AminoAcidSgroup in expanded state.AminoAcidSgroup(Molecule parent, boolean expanded) Constructs an aminoAcidSgroup.AminoAcidSgroup(Molecule parent, String oneLetterName, String threeLetterName) Creates an expanded amino acid s-group with the given one and three letter names.protectedAminoAcidSgroup(AminoAcidSgroup aminoSg, Molecule m, Sgroup psg, int[] atomIndexMap) Copy constructor.protectedAminoAcidSgroup(SuperatomSgroup sasg, Molecule m, Sgroup psg, int[] atomIndexMap) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcalculateCoordinates(Molecule parentMol, MolBond[] xbonds, MoleculeGraph g, int opts, boolean isContract, SelectionMolecule otherSgroup, List<Double> xBondLength) Calculates the coordinates during expand and contract.clone()Clones the AminoAcidSgroup (and not the Molecule).protected SgroupcloneSgroup(Molecule m, Sgroup psg, int[] atomIndexMap) Gets a new amino acid s-group instance.protected AminoAcidSgroupReturns the one letter name of the amino acid.Gets the S-group type.Gets the three letter name if it isn't empty, otherwise the one letter name (or empty String if both of them are empty).Returns the three letter name of the amino acid.booleanChecks whether the amino acid is modified or not.final voidsetOneLetterName(String oneLetterName) Sets the one letter name of the amino acid.final voidsetThreeLetterName(String threeLetterName) Sets the three letter name of the amino acid.Methods inherited from class chemaxon.struc.sgroup.SuperatomSgroup
add, addAttachmentPoint, addAttachmentPoint, addAttachmentPoint, areChildSgroupsVisible, calculateAttachmentPoints, checkBonds, checkSgroupGraphConsistency, clearSavedAtomIndices, contract, createMolecule, expand, expandOther, findAttachAtom, findCrossingBonds, getAllAttachAtoms, getAttachmentPoint, getAttachmentPointCount, getAttachmentPointOrders, getAttachmentPointOrders, getAttachmentPoints, getBoundAttachAtoms, getCrossingAtoms, getExternalConnections, getFreeAttachAtoms, getFreeAttachmentPointCount, getFreeAttachmentPointOrders, getFreeAttachmentPointOrders, getParentSgroupGraph, getSgroupGraph, getSuperAtom, hasAtom, hasBrackets, hasOrder, isAttachmentAtom, isBracketVisible, isContracted, isExpanded, isFreeAttachAtom, isTotalSelected, removeAllAttachmentPoints, removeAtom, removeAttachmentPoint, removeAttachmentPoints, removeBond, replaceAtom, setAtom, setAttachmentPointOrder, setCrossingBond, setGUIStateRecursively, setSgroupGraph, toString, transformByParent, updateAttachmentPointsMethods inherited from class chemaxon.struc.Sgroup
addBracket, addChildSgroup, checkConsistency, checkConsistencyInEmbeddings, clearObjects, cloneSgroup, cloneStructure, contains, containsAllAtomsOf, countAllAtoms, createMolecule, findSmallestSgroupContaining, findSmallestSgroupOf, getAtom, getAtomArray, getAtomCount, getAtomSymbolListAsString, getAttach, getBondArray, getBracketCount, getBrackets, getChargeLocation, getChildSgroup, getChildSgroupCount, getChildSgroups, getConnectivity, getId, getParentMolecule, getParentSgroup, getSubType, getSuperscript, getTotalCharge, getType, getXState, indexOf, indexOf, initBrackets, isBracketCrossingBond, isDescendantOf, isEmpty, isOrderedComponentSgroup, isPartSelected, isRemovable, isSelected, isVisible, removeAtom, removeAtom, removeBonds, removeChildSgroup, removeGroupedAtom, removeObject, replaceAtom, selectAllObjects, setChargeLocation, setConnectivity, setGUIStateRecursively, setId, setParentMolecule, setSubscript, setSubType, setXState, setXState, setXState0, sort, toString
-
Constructor Details
-
AminoAcidSgroup
Constructs an AminoAcidSgroup in expanded state. Please note the S-group is not added automatically to the parent molecule.- Parameters:
parent- the parent molecule- See Also:
-
AminoAcidSgroup
Constructs an aminoAcidSgroup. Its superatom is automatically created. Please note the S-group is not added automatically to the parent molecule.- Parameters:
parent- the parent moleculeexpanded- whether the S-group is created in expanded state or not- See Also:
-
AminoAcidSgroup
Copy constructor.- Parameters:
aminoSg- the amino acid s-group to copym- the new moleculepsg- the new parent s-group ornullatomIndexMap- indices of cloned atoms in the original molecule ornull- Since:
- Marvin 6.1 2013.05.27.
-
AminoAcidSgroup
Copy constructor.- Parameters:
sasg- the superatom s-group to copym- the new moleculepsg- the new parent s-group ornullatomIndexMap- indices of cloned atoms in the original molecule ornull- Since:
- Marvin 6.1 2013.05.27.
-
AminoAcidSgroup
Creates an expanded amino acid s-group with the given one and three letter names.- Parameters:
parent- the parent moleculeoneLetterName- the one letter name of the amino acidthreeLetterName- the three letter name of the amino acid- Since:
- Marvin 6.1, 2013.05.27.
-
-
Method Details
-
getOneLetterName
Returns the one letter name of the amino acid.- Returns:
- the one letter name of the amino acid
- Since:
- Marvin 6.1, 2013.05.27.
-
setOneLetterName
Sets the one letter name of the amino acid.- Parameters:
oneLetterName- the one letter name of the amino acid- Since:
- Marvin 6.1, 2013.05.27.
-
getThreeLetterName
Returns the three letter name of the amino acid.- Returns:
- the three letter name of the amino acid
- Since:
- Marvin 6.1, 2013.05.27.
-
setThreeLetterName
Sets the three letter name of the amino acid.- Parameters:
threeLetterName- the three letter name of the amino acid- Since:
- Marvin 6.1, 2013.05.27.
-
isModified
public boolean isModified()Checks whether the amino acid is modified or not.- Returns:
trueif the amino acid is modified,falseotherwise- Since:
- Marvin 6.1, 2013.05.27.
-
clone
Clones the AminoAcidSgroup (and not the Molecule).- Overrides:
clonein classSuperatomSgroup- Returns:
- the cloned amino acid s-group
- Since:
- Marvin 6.1, 2013.05.27.
-
cloneSgroup
Gets a new amino acid s-group instance.- Overrides:
cloneSgroupin classSuperatomSgroup- Parameters:
m- the new parent moleculepsg- the new parent s-groupatomIndexMap- indices of cloned atoms in the original molecule ornull- Returns:
- the new object
- Since:
- Marvin 6.1 2013.05.27.
-
getSubscript
Gets the three letter name if it isn't empty, otherwise the one letter name (or empty String if both of them are empty). If the AminoAcid is modified, the string gets the "(mod)" suffix.- Overrides:
getSubscriptin classSgroup- Returns:
- the subscript
-
createGroup
- Overrides:
createGroupin classSuperatomSgroup
-
calculateCoordinates
protected void calculateCoordinates(Molecule parentMol, MolBond[] xbonds, MoleculeGraph g, int opts, boolean isContract, SelectionMolecule otherSgroup, List<Double> xBondLength) Description copied from class:SuperatomSgroupCalculates the coordinates during expand and contract.- Overrides:
calculateCoordinatesin classSuperatomSgroup- Parameters:
parentMol- the parent molecule of the superatomSgroupxbonds- array of the crossing bondsg- graph of the sgroupopts- expand optionisContract- true if it is called from contract, false if do so from expandotherSgroup- graph of the other sgroup in expandOther
-
getSgroupType
Description copied from class:SgroupGets the S-group type.- Overrides:
getSgroupTypein classSgroup- Returns:
- the type of the S-group
- See Also:
-