Skip to content

Commit 0d0ed55

Browse files
author
luke czapla
committed
Renamed MaxStagger (etc.) to maxStagger (etc.)
1 parent d8a0843 commit 0d0ed55

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

biojava-structure/src/main/java/org/biojava/nbio/structure/basepairs/MismatchedBasePairParameters.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
public class MismatchedBasePairParameters extends BasePairParameters {
4444

4545
// These are the criteria used to select proper base pairs.
46-
protected static double MaxStagger = 2.0, MaxShear = 5.0, MaxStretch = 5.0,
47-
MaxPropeller = 60.0;
46+
protected static double maxStagger = 2.0, maxShear = 5.0, maxStretch = 5.0,
47+
maxPropeller = 60.0;
4848

4949
/**
5050
* This constructor is used to create the TertiaryBasePairParameters object. The parent constructors are valid
@@ -95,13 +95,13 @@ public List<Pair<Group>> findPairs(List<Chain> chains) {
9595
Pair<Group> ga = new Pair<>(g1, g2);
9696
Matrix4d data = basePairReferenceFrame(ga);
9797
// if the stagger is greater than 2 Å, it's not really paired.
98-
if (Math.abs(pairParameters[5]) > MaxStagger) continue;
98+
if (Math.abs(pairParameters[5]) > maxStagger) continue;
9999
// similarly, extreme shear and stretch is not a good base pair
100-
if (Math.abs(pairParameters[3]) > MaxShear) continue;
101-
if (Math.abs(pairParameters[4]) > MaxStretch) continue;
100+
if (Math.abs(pairParameters[3]) > maxShear) continue;
101+
if (Math.abs(pairParameters[4]) > maxStretch) continue;
102102

103103
// if the propeller is ridiculous it's also not that good of a pair.
104-
if (Math.abs(pairParameters[1]) > MaxPropeller) {
104+
if (Math.abs(pairParameters[1]) > maxPropeller) {
105105
continue;
106106
}
107107
result.add(ga);
@@ -125,62 +125,62 @@ public List<Pair<Group>> findPairs(List<Chain> chains) {
125125
* @return the maximum propeller ("propeller-twist", in degrees) allowed.
126126
*/
127127
public static double getMaxStagger() {
128-
return MaxStagger;
128+
return maxStagger;
129129
}
130130

131131
/**
132132
* This method sets the maximum stagger allowed for a base pair, prior to analyze() call
133133
* @param maxStagger The maximum propeller (in Å) allowed to consider two bases paired
134134
*/
135135
public static void setMaxStagger(double maxStagger) {
136-
MaxStagger = maxStagger;
136+
maxStagger = maxStagger;
137137
}
138138

139139
/**
140140
* This method returns the maximum shear between bases used as criteria for the characterization of two bases as being paired.
141141
* @return the maximum shear (in Å) allowed.
142142
*/
143143
public static double getMaxShear() {
144-
return MaxShear;
144+
return maxShear;
145145
}
146146

147147
/**
148148
* This method sets the maximum shear allowed for a base pair, prior to analyze() call
149149
* @param maxShear The maximum shear (in Å) allowed to consider two bases paired
150150
*/
151151
public static void setMaxShear(double maxShear) {
152-
MaxShear = maxShear;
152+
maxShear = maxShear;
153153
}
154154

155155
/**
156156
* This method returns the maximum stretch between bases used as criteria for the characterization of two bases as being paired.
157157
* @return the maximum stretch (in Å) allowed.
158158
*/
159159
public static double getMaxStretch() {
160-
return MaxStretch;
160+
return maxStretch;
161161
}
162162

163163
/**
164164
* This method sets the maximum stretch allowed for a base pair, prior to analyze() call.
165165
* @param maxStretch The maximum stretch (in Å) allowed to consider two bases paired
166166
*/
167167
public static void setMaxStretch(double maxStretch) {
168-
MaxStretch = maxStretch;
168+
maxStretch = maxStretch;
169169
}
170170

171171
/**
172172
* This method returns the maximum propeller twist between bases used as criteria for the characterization of two bases as being paired.
173173
* @return the maximum propeller ("propeller-twist", in degrees) allowed.
174174
*/
175175
public static double getMaxPropeller() {
176-
return MaxPropeller;
176+
return maxPropeller;
177177
}
178178

179179
/**
180180
* This method sets the maximum propeller allowed for a base pair, prior to analyze() call
181181
* @param maxPropeller The maximum propeller ("propeller-twist", in degrees) allowed to consider two bases paired
182182
*/
183183
public static void setMaxPropeller(double maxPropeller) {
184-
MaxPropeller = maxPropeller;
184+
maxPropeller = maxPropeller;
185185
}
186186
}

biojava-structure/src/main/java/org/biojava/nbio/structure/basepairs/TertiaryBasePairParameters.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
public class TertiaryBasePairParameters extends BasePairParameters {
4545

4646
// These are the criteria used to select proper base pairs.
47-
protected static double MaxStagger = 2.0, MaxPropeller = 60.0;
47+
protected static double maxStagger = 2.0, maxPropeller = 60.0;
4848

4949
public TertiaryBasePairParameters(Structure structure, boolean RNA, boolean removeDups) {
5050
super(structure, RNA, removeDups);
@@ -81,9 +81,9 @@ public List<Pair<Group>> findPairs(List<Chain> chains) {
8181
Pair<Group> ga = new Pair<>(g1, g2);
8282
Matrix4d data = basePairReferenceFrame(ga);
8383
// if the stagger is greater than 2 Å, it's not really paired.
84-
if (Math.abs(pairParameters[5]) > MaxStagger) continue;
84+
if (Math.abs(pairParameters[5]) > maxStagger) continue;
8585
// if the propeller is ridiculous it's also not that good of a pair.
86-
if (Math.abs(pairParameters[1]) > MaxPropeller) {
86+
if (Math.abs(pairParameters[1]) > maxPropeller) {
8787
continue;
8888
}
8989
result.add(ga);
@@ -107,30 +107,30 @@ public List<Pair<Group>> findPairs(List<Chain> chains) {
107107
* @return the maximum stagger (in Å) allowed.
108108
*/
109109
public static double getMaxStagger() {
110-
return MaxStagger;
110+
return maxStagger;
111111
}
112112

113113
/**
114114
* This method sets the maximum stagger allowed for a base pair, prior to analyze() call
115115
* @param maxStagger The maximum stagger (in Å) allowed to consider two bases paired
116116
*/
117117
public static void setMaxStagger(double maxStagger) {
118-
MaxStagger = maxStagger;
118+
maxStagger = maxStagger;
119119
}
120120

121121
/**
122122
* This method returns the maximum propeller twist between bases used as criteria for the characterization of two bases as being paired.
123123
* @return the maximum propeller ("propeller-twist", in degrees) allowed.
124124
*/
125125
public static double getMaxPropeller() {
126-
return MaxPropeller;
126+
return maxPropeller;
127127
}
128128

129129
/**
130130
* This method sets the maximum propeller allowed for a base pair, prior to analyze() call
131131
* @param maxPropeller The maximum propeller ("propeller-twist", in degrees) allowed to consider two bases paired
132132
*/
133133
public static void setMaxPropeller(double maxPropeller) {
134-
MaxPropeller = maxPropeller;
134+
maxPropeller = maxPropeller;
135135
}
136136
}

0 commit comments

Comments
 (0)