Class MismatchedBasePairParameters

  • All Implemented Interfaces:
    Serializable

    public class MismatchedBasePairParameters
    extends BasePairParameters
    This class allows for finding inter-strand base pairs that are not necessarily canonical Watson-Crick pairs. The implementation of findPair is different than that of the base class. This class does not consider intra-strand base pairing and for that, the TertiaryBasePairParameters class should be used.
    Since:
    5.0.0
    Author:
    Luke Czapla
    See Also:
    Serialized Form
    • Constructor Detail

      • MismatchedBasePairParameters

        public MismatchedBasePairParameters​(Structure structure,
                                            boolean RNA,
                                            boolean removeDups,
                                            boolean canonical)
        This constructor is used to create the TertiaryBasePairParameters object. The parent constructors are valid as well, but for this class, it makes the most sense to specify the exact parameters for the analysis.
        Parameters:
        structure - The Structure to analyze
        RNA - Whether to analyze RNA (if false, it will analyze DNA)
        removeDups - Whether to remove duplicate sequences (useful for RCSB data with redundant units).
        canonical - Whether to only consider canonical Watson-Crick base pairs. If false, any pairing will be identified as long it falls below the maximum values of stagger, shear, and stretch.
    • Method Detail

      • findPairs

        public List<Pair<Group>> findPairs​(List<Chain> chains)
        This is an implementation for finding non-canonical base pairs when there may be missing or overhanging bases.
        Overrides:
        findPairs in class BasePairParameters
        Parameters:
        chains - The list of chains already found to be nucleic acids.
        Returns:
        The list of the atom groups (residues) that are pairs, as a Pair of nucleic acid Groups.
      • getMaxStagger

        public double getMaxStagger()
        This method returns the maximum stagger between bases used as criteria for the characterization of two bases as being paired.
        Returns:
        the maximum propeller ("propeller-twist", in degrees) allowed.
      • setMaxStagger

        public void setMaxStagger​(double maxStagger)
        This method sets the maximum stagger allowed for a base pair, prior to analyze() call
        Parameters:
        maxStagger - The maximum propeller (in Å) allowed to consider two bases paired
      • getMaxShear

        public double getMaxShear()
        This method returns the maximum shear between bases used as criteria for the characterization of two bases as being paired.
        Returns:
        the maximum shear (in Å) allowed.
      • setMaxShear

        public void setMaxShear​(double maxShear)
        This method sets the maximum shear allowed for a base pair, prior to analyze() call
        Parameters:
        maxShear - The maximum shear (in Å) allowed to consider two bases paired
      • getMaxStretch

        public double getMaxStretch()
        This method returns the maximum stretch between bases used as criteria for the characterization of two bases as being paired.
        Returns:
        the maximum stretch (in Å) allowed.
      • setMaxStretch

        public void setMaxStretch​(double maxStretch)
        This method sets the maximum stretch allowed for a base pair, prior to analyze() call.
        Parameters:
        maxStretch - The maximum stretch (in Å) allowed to consider two bases paired
      • getMaxPropeller

        public double getMaxPropeller()
        This method returns the maximum propeller twist between bases used as criteria for the characterization of two bases as being paired.
        Returns:
        the maximum propeller ("propeller-twist", in degrees) allowed.
      • setMaxPropeller

        public void setMaxPropeller​(double maxPropeller)
        This method sets the maximum propeller allowed for a base pair, prior to analyze() call
        Parameters:
        maxPropeller - The maximum propeller ("propeller-twist", in degrees) allowed to consider two bases paired