Class MultipleAlignmentJmol

    • Constructor Detail

      • MultipleAlignmentJmol

        public MultipleAlignmentJmol()
        Default constructor creates an empty JmolPanel window, from where alignments can be made through the align menu.
      • MultipleAlignmentJmol

        public MultipleAlignmentJmol​(org.biojava.nbio.structure.align.multiple.MultipleAlignment msa,
                                     List<org.biojava.nbio.structure.Atom[]> rotatedAtoms)
        The constructor displays the Mutltiple Alignment in a new JmolPanel Frame.
        Parameters:
        msa - : contains the aligned residues.
        rotatedAtoms - : contains the transformed Atom coordinates.
    • Method Detail

      • getJmolString

        public static String getJmolString​(org.biojava.nbio.structure.align.multiple.MultipleAlignment multAln,
                                           List<org.biojava.nbio.structure.Atom[]> transformedAtoms,
                                           org.jcolorbrewer.ColorBrewer colorPalette,
                                           boolean colorByBlocks)
        Generate a Jmol command String that colors the aligned residues of every structure.
      • getMultiBlockJmolString

        public static String getMultiBlockJmolString​(org.biojava.nbio.structure.align.multiple.MultipleAlignment multAln,
                                                     List<org.biojava.nbio.structure.Atom[]> transformedAtoms,
                                                     org.jcolorbrewer.ColorBrewer colorPalette,
                                                     boolean colorByBlocks)
        Colors every Block of the structures with a different color, following the palette. It colors each Block differently, no matter if it is from the same or different BlockSet.
      • getDistanceMatrices

        public List<org.biojava.nbio.structure.jama.Matrix> getDistanceMatrices()
        Description copied from class: AbstractAlignmentJmol
        Returns a List of internal Distance Matrices, one for each structure in the alignment. Returns null if no alignment is being displayed.
        Specified by:
        getDistanceMatrices in class AbstractAlignmentJmol
      • setColorByBlocks

        public void setColorByBlocks​(boolean colorByBlocks)
      • getFrame

        public JFrame getFrame()
      • getMultipleAlignment

        public org.biojava.nbio.structure.align.multiple.MultipleAlignment getMultipleAlignment()