Skip to content

Commit 9a24074

Browse files
committed
Do not divide internal repeats into chains to calculate QS
1 parent 07fe43b commit 9a24074

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

biojava-structure-gui/src/main/java/org/biojava/nbio/structure/symmetry/gui/SymmetryDisplay.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ public static String printSymmetryAxes(CeSymmResult symm)
210210
throws StructureException {
211211
return printSymmetryAxes(symm,true);
212212
}
213+
213214
/**
214215
* Generates a String that displays the symmetry axes of a structure.
215216
*

biojava-structure/src/main/java/org/biojava/nbio/structure/symmetry/utils/SymmetryTools.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ public static MultipleAlignment toRepeatsAlignment(CeSymmResult result)
593593

594594
MultipleAlignment msa = result.getMultipleAlignment();
595595
MultipleAlignmentEnsemble newEnsemble = msa.getEnsemble().clone();
596-
596+
597597
// Modify atom arrays to include the repeat atoms only
598598
List<Atom[]> atomArrays = new ArrayList<Atom[]>();
599599
Structure divided = SymmetryTools.getQuaternaryStructure(result);
@@ -734,10 +734,10 @@ public static QuatSymmetryResults getQuaternarySymmetry(CeSymmResult result)
734734
throws StructureException {
735735

736736
// Obtain the clusters of aligned Atoms and repeat variables
737-
MultipleAlignment repeats = SymmetryTools.toRepeatsAlignment(result);
738-
List<Atom[]> alignedCA = repeats.getAtomArrays();
739-
List<Integer> corePos = MultipleAlignmentTools.getCorePositions(repeats
740-
.getBlock(0));
737+
List<Atom[]> alignedCA = result.getMultipleAlignment().getAtomArrays();
738+
MultipleAlignment msa = result.getMultipleAlignment();
739+
List<Integer> corePos = MultipleAlignmentTools.getCorePositions(result
740+
.getMultipleAlignment().getBlock(0));
741741

742742
List<Point3d[]> caCoords = new ArrayList<Point3d[]>();
743743
List<Integer> folds = new ArrayList<Integer>();
@@ -752,7 +752,7 @@ public static QuatSymmetryResults getQuaternarySymmetry(CeSymmResult result)
752752
for (int str = 0; str < alignedCA.size(); str++) {
753753
Atom[] array = alignedCA.get(str);
754754
List<Point3d> points = new ArrayList<Point3d>();
755-
List<Integer> alignedRes = repeats.getBlock(0).getAlignRes()
755+
List<Integer> alignedRes = msa.getBlock(0).getAlignRes()
756756
.get(str);
757757
for (int pos = 0; pos < alignedRes.size(); pos++) {
758758
Integer residue = alignedRes.get(pos);
@@ -1000,7 +1000,7 @@ public static Atom[] getRepresentativeAtoms(Structure structure) {
10001000
}
10011001
return atomList.toArray(new Atom[0]);
10021002
}
1003-
1003+
10041004
}
10051005

10061006
}

0 commit comments

Comments
 (0)