Skip to content

Commit 3b967b0

Browse files
committed
Using mergeIdentical breaks a test, reverting
1 parent 47e4cfb commit 3b967b0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/cluster/SubunitClusterer.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,10 @@ public static Stoichiometry cluster(List<Subunit> subunits, SubunitClustererPara
7474
if (params.isUseEntityIdForSeqIdentityDetermination() &&
7575
clusters.get(c1).mergeIdenticalByEntityId(clusters.get(c2))) {
7676
// This we will only do if the switch is for entity id comparison is on.
77-
// In some cases in can save enormous amounts of time, e.g. for clustering full
77+
// In some cases it can save enormous amounts of time, e.g. for clustering full
7878
// chains of deposited PDB entries. For instance for 6NHJ: with pure alignments it
7979
// takes ~ 6 hours, with entity id comparisons it takes 2 minutes.
8080
clusters.remove(c2);
81-
} else if (clusters.get(c1).mergeIdentical(clusters.get(c2))) {
82-
// This always makes sense as an optimization: it's far cheaper to compare the sequence
83-
// string than doing a full S-W alignment
84-
clusters.remove(c2);
8581
} else if (clusters.get(c1).mergeSequence(clusters.get(c2), params)) {
8682
clusters.remove(c2);
8783
}

0 commit comments

Comments
 (0)