Skip to content

Commit 5bffe75

Browse files
committed
Add a test for helical symmetry detection
1 parent 04bb5ba commit 5bffe75

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

biojava-structure/src/test/java/org/biojava/nbio/structure/symmetry/core/TestQuatSymmetryDetector.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,28 @@ public void testInternalSymmetry() throws IOException, StructureException {
171171
assertEquals("A6", symmetry.getSubunits().getStoichiometry());
172172

173173
}
174+
175+
/**
176+
* A structure with helical symmetry: 1B47
177+
*
178+
* @throws IOException
179+
* @throws StructureException
180+
*/
181+
@Test
182+
public void testHelical() throws IOException, StructureException {
183+
184+
AtomCache cache = new AtomCache();
185+
cache.setUseMmCif(true);
186+
Structure pdb = cache.getStructure("BIO:1B47:1");
187+
188+
SubunitClustererParameters cp = new SubunitClustererParameters();
189+
QuatSymmetryParameters symmParams = new QuatSymmetryParameters();
190+
QuatSymmetryResults symmetry = QuatSymmetryDetector.calcGlobalSymmetry(
191+
pdb, symmParams, cp);
192+
193+
// H symmetry A3 stoichiometry
194+
assertEquals("H", symmetry.getSymmetry());
195+
assertEquals("A3", symmetry.getSubunits().getStoichiometry());
196+
197+
}
174198
}

0 commit comments

Comments
 (0)