Class SymmetryDisplay
java.lang.Object
org.biojava.nbio.structure.symmetry.gui.SymmetryDisplay
Class that provides visualizations methods for symmetry alignments. Call the
display() method for the default visualization of symmetry.
- Since:
- 4.2.0
- Author:
- Aleix Lafita
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractAlignmentJmol
display
(CeSymmResult symmResult) Displays a single structure in a cartoon representation with each symmetric repeat colored differently.static MultipleAlignmentJmol
displayFull
(CeSymmResult symm) Displays a multiple alignment of the whole structure transformations colored by blocks, corresponding to the symmetric protodomains.static MultipleAlignmentJmol
displayRepeats
(CeSymmResult symm) Displays a multiple alignment of the symmetry repeats.static String
getSymmTitle
(CeSymmResult result) Create a symmetry title for a display frame (Jmol, alignment, etc).static String
Generates a String that displays the symmetry axes of a structure.static String
printSymmetryAxes
(CeSymmResult symm, boolean allAxes) Generates a String that displays the symmetry axes of a structure.static String
Given a symmetry alignment, it draws the symmetry group axes and the polyhedron box around the structure.
-
Constructor Details
-
SymmetryDisplay
public SymmetryDisplay()
-
-
Method Details
-
displayRepeats
Displays a multiple alignment of the symmetry repeats. * @param symm CeSymmResult- Throws:
StructureException
-
displayFull
Displays a multiple alignment of the whole structure transformations colored by blocks, corresponding to the symmetric protodomains.- Parameters:
symm
- CeSymmResult- Throws:
StructureException
-
display
Displays a single structure in a cartoon representation with each symmetric repeat colored differently.- Parameters:
msa
- the symmetry multiple alignment obtained from CeSymm- Throws:
StructureException
-
printSymmetryAxes
Generates a String that displays the symmetry axes of a structure.- Parameters:
symm
- CeSymmResult- Returns:
- Throws:
StructureException
-
printSymmetryAxes
public static String printSymmetryAxes(CeSymmResult symm, boolean allAxes) throws StructureException Generates a String that displays the symmetry axes of a structure.- Parameters:
symm
- CeSymmResultallAxes
- Indicates whether all axes should be displayed or just the elemenatary ones- Returns:
- Throws:
StructureException
-
printSymmetryGroup
Given a symmetry alignment, it draws the symmetry group axes and the polyhedron box around the structure. It uses the quaternary symmetry detection code, but tries to factor out the alignment and detection steps.- Parameters:
symm
- CeSymmResult- Returns:
- Throws:
StructureException
-
getSymmTitle
Create a symmetry title for a display frame (Jmol, alignment, etc). The title contains information about the algorithm, structure id and parameters used.- Parameters:
result
-- Returns:
- title String
-