public class BasePairParameters extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected static String[] |
BASE_LIST_DNA |
protected static String[] |
BASE_LIST_RNA |
protected static Map<String,Integer> |
BASE_MAP |
protected boolean |
canonical |
protected boolean |
nonredundant |
protected List<String> |
pairingNames |
protected double[][] |
pairingParameters |
protected double[] |
pairParameters |
protected String |
pairSequence |
protected List<javax.vecmath.Matrix4d> |
referenceFrames |
protected static Map<Integer,List<String>> |
RING_MAP |
static 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.
|
List<Pair<Group>> |
findPairs(List<Chain> chains)
This method performs a search for base pairs in the structure.
|
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().
|
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.
|
Double |
getOpening(int bp)
This method returns the opening in degrees for the given base pair
|
List<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 Å).
|
String |
getPairSequence()
This method returns the primary strand's sequence where parameters were found.
|
Double |
getPropeller(int bp)
This method returns the propeller ("propeller-twist") in degrees for the given base pair
|
List<javax.vecmath.Matrix4d> |
getReferenceFrames() |
Double |
getRise(int bp)
This method returns the rise for the given base pair, relative to the one before it.
|
Double |
getRoll(int bp)
This method returns the roll for the given base pair, relative to the one before it.
|
Double |
getShear(int bp)
This method returns the shear in Å for the given base pair
|
Double |
getShift(int bp)
Return the shift for the given base pair, relative to the one before it.
|
Double |
getSlide(int bp)
This method returns the slide for the given base pair, relative to the one before it.
|
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 Å).
|
Double |
getStretch(int bp)
This method returns the stretch in Å for the given base pair
|
Double |
getTilt(int bp)
This method returns the tilt for the given base pair, relative to the one before it.
|
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.
|
String |
toString() |
public static final String[] STANDARD_BASES
protected static final String[] BASE_LIST_DNA
protected static final String[] BASE_LIST_RNA
protected boolean canonical
protected boolean useRNA
protected boolean nonredundant
protected double[] pairParameters
protected String pairSequence
protected double[][] pairingParameters
protected double[][] stepParameters
protected List<String> pairingNames
protected 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 String getPairSequence()
public List<String> getPairingNames()
public List<javax.vecmath.Matrix4d> getReferenceFrames()
public Double getBuckle(int bp)
bp
- the number of the base pair (starting with 0)public Double getPropeller(int bp)
bp
- the number of the base pair (starting with 0)public Double getOpening(int bp)
bp
- the number of the base pair (starting with 0)public Double getShear(int bp)
bp
- the number of the base pair (starting with 0)public Double getStretch(int bp)
bp
- the number of the base pair (starting with 0)public Double getStagger(int bp)
bp
- the number of the base pair (starting with 0)public Double getTilt(int bp)
bp
- the number of the base pair (starting with 0)public Double getRoll(int bp)
bp
- the number of the base pair (starting with 0)public Double getTwist(int bp)
bp
- the number of the base pair (starting with 0)public Double getShift(int bp)
bp
- the number of the base pair (starting with 0)public Double getSlide(int bp)
bp
- the number of the base pair (starting with 0)public Double getRise(int bp)
bp
- the number of the base pair (starting with 0)public List<Chain> getNucleicChains(boolean removeDups)
removeDups
- If true, it will ignore duplicate chainspublic List<Pair<Group>> findPairs(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 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–2018 BioJava. All rights reserved.