Skip to content

Commit d2644ea

Browse files
committed
Set default max RMSD for SmWat3D high to maintain default behavior
1 parent 16d0311 commit d2644ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/align/seq/SmithWaterman3DParameters.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public List<String> getUserConfigParameters() {
6868
List<String> params = new ArrayList<String>();
6969
params.add("GapOpen");
7070
params.add("GapExtend");
71-
params.add("MaxRMSD");
71+
params.add("MaxRmsd");
7272
params.add("MinLen");
7373

7474
return params;
@@ -90,7 +90,7 @@ public List<Class> getUserConfigTypes() {
9090
public void reset() {
9191
gapOpen = (short) 8;
9292
gapExtend = (short) 1;
93-
maxRmsd = 10.0;
93+
maxRmsd = 99;
9494
minLen = 30;
9595

9696
}
@@ -111,15 +111,15 @@ public void setGapOpen(Short gapOpen) {
111111
this.gapOpen = gapOpen;
112112
}
113113

114-
public double getMaxRmsd() {
114+
public Double getMaxRmsd() {
115115
return maxRmsd;
116116
}
117117

118118
public void setMaxRmsd(Double maxRmsd) {
119119
this.maxRmsd = maxRmsd;
120120
}
121121

122-
public int getMinLen() {
122+
public Integer getMinLen() {
123123
return minLen;
124124
}
125125

biojava-structure/src/main/java/org/biojava/nbio/structure/align/util/AlignmentTools.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ public static AFPChain deleteColumn(AFPChain afpChain, Atom[] ca1,
14621462
"Block index requested (%d) is higher than the total number of AFPChain blocks (%d).",
14631463
block, afpChain.getBlockNum()));
14641464
}
1465-
if (afpChain.getBlockSize()[block] <= pos) {
1465+
if (afpChain.getOptAln()[block][0].length <= pos) {
14661466
throw new IndexOutOfBoundsException(String.format(
14671467
"Position index requested (%d) is higher than the total number of aligned position in the AFPChain block (%d).",
14681468
block, afpChain.getBlockSize()[block]));

0 commit comments

Comments
 (0)