public class BasePairParameters
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String[] |
BASE_LIST_DNA |
protected static java.lang.String[] |
BASE_LIST_RNA |
protected static java.util.Map<java.lang.String,java.lang.Integer> |
BASE_MAP |
protected boolean |
canonical |
protected boolean |
nonredundant |
protected java.util.List<java.lang.String> |
pairingNames |
protected double[][] |
pairingParameters |
protected double[] |
pairParameters |
protected java.lang.String |
pairSequence |
protected java.util.List<javax.vecmath.Matrix4d> |
referenceFrames |
protected static java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> |
RING_MAP |
static java.lang.String[] |
STANDARD_BASES |
protected double[][] |
stepParameters |
protected Structure |
structure |
protected boolean |
useRNA |
| Constructor and Description |
|---|
BasePairParameters(Structure structure)
This constructor takes a Structure object, finds base pair and base-pair step parameters
for double-helical regions within the structure for only canonical DNA pairs.
|
BasePairParameters(Structure structure,
boolean useRNA)
This constructor takes a Structure object, and whether to use the RNA standard bases.
|
BasePairParameters(Structure structure,
boolean useRNA,
boolean removeDups)
This constructor takes a Structure object, whether to use RNA, and whether to remove duplicate sequences.
|
BasePairParameters(Structure structure,
boolean useRNA,
boolean removeDups,
boolean canonical)
This constructor takes a Structure object, finds base pair and base-pair step parameters
for double-helical regions within the structure.
|
| Modifier and Type | Method and Description |
|---|---|
BasePairParameters |
analyze()
This method is the main function call to extract all step parameters, pairing parameters, and sequence
information from the Structure object provided to the constructor.
|
javax.vecmath.Matrix4d |
basePairReferenceFrame(Pair<Group> pair)
This method calculates the central frame (4x4 transformation matrix) of a single base pair.
|
static double[] |
calculateTp(javax.vecmath.Matrix4d input)
This method calculates pairing and step parameters from 4x4 transformation matrices (used internally)
that comes out as a Matrix4d.
|
protected static char |
complementBase(char base,
boolean RNA)
This method returns the complement of a base.
|
java.util.List<Pair<Group>> |
findPairs(java.util.List<Chain> chains)
This method performs a search for base pairs in the structure.
|
java.lang.Double |
getBuckle(int bp)
This method returns the buckle in degrees for the given base pair
|
int |
getLength()
This method returns the total number of base pairs that were found, used after the call to analyze().
|
java.util.List<Chain> |
getNucleicChains(boolean removeDups)
This method reports all the nucleic acid chains and has an option to remove duplicates if you
are considering an analysis of only unique DNA or RNA helices in the Structure.
|
java.lang.Double |
getOpening(int bp)
This method returns the opening in degrees for the given base pair
|
java.util.List<java.lang.String> |
getPairingNames()
This method returns the names of the pairs in terms of A, G, T/U, and C for each base pair group in the
list.
|
double[][] |
getPairingParameters()
This method reports all the pair parameters, in the order of:
buckle, propeller, opening (in degrees), shear, stagger, stretch (in Å).
|
java.lang.String |
getPairSequence()
This method returns the primary strand's sequence where parameters were found.
|
java.lang.Double |
getPropeller(int bp)
This method returns the propeller ("propeller-twist") in degrees for the given base pair
|
java.util.List<javax.vecmath.Matrix4d> |
getReferenceFrames() |
java.lang.Double |
getRise(int bp)
This method returns the rise for the given base pair, relative to the one before it.
|
java.lang.Double |
getRoll(int bp)
This method returns the roll for the given base pair, relative to the one before it.
|
java.lang.Double |
getShear(int bp)
This method returns the shear in Å for the given base pair
|
java.lang.Double |
getShift(int bp)
Return the shift for the given base pair, relative to the one before it.
|
java.lang.Double |
getSlide(int bp)
This method returns the slide for the given base pair, relative to the one before it.
|
java.lang.Double |
getStagger(int bp)
This method returns the stagger in Å for the given base pair
|
double[][] |
getStepParameters()
This method reports all the base-pair step parameters, in the order of:
tilt, roll, twist (in degrees), shift, slide, rise (in Å).
|
java.lang.Double |
getStretch(int bp)
This method returns the stretch in Å for the given base pair
|
java.lang.Double |
getTilt(int bp)
This method returns the tilt for the given base pair, relative to the one before it.
|
java.lang.Double |
getTwist(int bp)
This method returns the twist for the given base pair, relative to the one before it.
|
protected static boolean |
match(char a,
char b,
boolean RNA)
This returns true if a is the complement of b, false otherwise.
|
java.lang.String |
toString() |
public static final java.lang.String[] STANDARD_BASES
protected static final java.lang.String[] BASE_LIST_DNA
protected static final java.lang.String[] BASE_LIST_RNA
protected static final java.util.Map<java.lang.String,java.lang.Integer> BASE_MAP
protected static final java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> RING_MAP
protected Structure structure
protected boolean canonical
protected boolean useRNA
protected boolean nonredundant
protected double[] pairParameters
protected java.lang.String pairSequence
protected double[][] pairingParameters
protected double[][] stepParameters
protected java.util.List<java.lang.String> pairingNames
protected java.util.List<javax.vecmath.Matrix4d> referenceFrames
public BasePairParameters(Structure structure, boolean useRNA, boolean removeDups, boolean canonical)
structure - The already-loaded structure to analyze.useRNA - whether to look for canonical RNA pairs. By default (false) it analyzes DNA.removeDups - whether to only look for base-pair parameters for each unique sequence in
the structure (if set to true)canonical - Whether to consider only Watson-Crick base pairspublic BasePairParameters(Structure structure, boolean useRNA, boolean removeDups)
structure - The already-loaded structure to analyze.useRNA - if true, the RNA standard bases will be used. Otherwise, if false, it will work on standard DNA bases.removeDups - if true, duplicate sequences will not be considered. This is for the analysis of X-ray structures from
RCSB, where there may be identical or similar units.public BasePairParameters(Structure structure, boolean useRNA)
structure - The already-loaded structure to analyze.useRNA - if true, the RNA standard bases will be used. Otherwise, if false, it will work on standard DNA bases.public BasePairParameters(Structure structure)
structure - The already-loaded structure to analyze.public BasePairParameters analyze()
public int getLength()
public double[][] getPairingParameters()
public double[][] getStepParameters()
public java.lang.String getPairSequence()
public java.util.List<java.lang.String> getPairingNames()
public java.util.List<javax.vecmath.Matrix4d> getReferenceFrames()
public java.lang.Double getBuckle(int bp)
bp - the number of the base pair (starting with 0)public java.lang.Double getPropeller(int bp)
bp - the number of the base pair (starting with 0)public java.lang.Double getOpening(int bp)
bp - the number of the base pair (starting with 0)public java.lang.Double getShear(int bp)
bp - the number of the base pair (starting with 0)public java.lang.Double getStretch(int bp)
bp - the number of the base pair (starting with 0)public java.lang.Double getStagger(int bp)
bp - the number of the base pair (starting with 0)public java.lang.Double getTilt(int bp)
bp - the number of the base pair (starting with 0)public java.lang.Double getRoll(int bp)
bp - the number of the base pair (starting with 0)public java.lang.Double getTwist(int bp)
bp - the number of the base pair (starting with 0)public java.lang.Double getShift(int bp)
bp - the number of the base pair (starting with 0)public java.lang.Double getSlide(int bp)
bp - the number of the base pair (starting with 0)public java.lang.Double getRise(int bp)
bp - the number of the base pair (starting with 0)public java.util.List<Chain> getNucleicChains(boolean removeDups)
removeDups - If true, it will ignore duplicate chainspublic java.util.List<Pair<Group>> findPairs(java.util.List<Chain> chains)
chains - The list of chains already found to be nucleic acidspublic javax.vecmath.Matrix4d basePairReferenceFrame(Pair<Group> pair)
pair - An array of the two groups that make a hypothetical pairpublic java.lang.String toString()
toString in class java.lang.Objectpublic static double[] calculateTp(javax.vecmath.Matrix4d input)
input - the 4x4 matrix representing the transformation from strand II -> strand I or pair i to pair i+1protected static char complementBase(char base,
boolean RNA)
base - The letter of the baseRNA - Whether it is RNA (if false, it is DNA)protected static boolean match(char a,
char b,
boolean RNA)
a - First letterb - Potential matching letterRNA - Whether it is RNA (if false, DNA rules are used)Copyright © 2000-2020 BioJava. All Rights Reserved.