Skip to content

Commit 543d730

Browse files
committed
Reducing assumptions that structures are protein
Rather than checking for CA atoms, check for a generic representative (e.g. the C4' atom of nucleic acids). This paves the way for RNA structure comparisons. Mostly deprecates CA-specific functions in favor of ones named 'getRepresentativeAtom' or similar. A few functions change behavior, notably: - StructureTools.get1LetterCode returns a value for nucleotides, rather than null - StructureTools.getBackboneAtomArray returns atoms from DNA/RNA
1 parent ce7dbcb commit 543d730

File tree

11 files changed

+437
-135
lines changed

11 files changed

+437
-135
lines changed

biojava-integrationtest/src/test/java/org/biojava/nbio/structure/test/align/fatcat/MyTestHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static String compareAlignment(String pdb1, String chain1, String pdb2, S
9090
for (int i = 0 ; i < ca2.length; i++){
9191
Group g = (Group)ca2[i].getGroup().clone();
9292
g.setChain(ca2[i].getGroup().getChain());
93-
ca3[i] = g.getAtom(StructureTools.CA_ATOM_NAME);
93+
ca3[i] = g.getAtom(ca2[i].getName());
9494
}
9595

9696
StructureAlignment fatCat;

0 commit comments

Comments
 (0)