Skip to content

Commit ad192d9

Browse files
committed
distance have to be looked up by element name, not atom name
1 parent b39840a commit ad192d9

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

biojava-modfinder/src/main/java/org/biojava/nbio/protmod/structure/StructureUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public static Atom[] findLinkage(final Group group1, final Group group2,
250250

251251
if ( a1.getElement().isMetal() || a2.getElement().isMetal()){
252252

253-
MetalBondDistance defined = getMetalDistanceCutoff(a1.getName(),a2.getName());
253+
MetalBondDistance defined = getMetalDistanceCutoff(a1.getElement().name(),a2.getElement().name());
254254

255255
if ( defined != null) {
256256

biojava-modfinder/src/test/java/org/biojava/nbio/protmod/structure/ProteinModificationParserTest.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,23 @@ public static String[][] setUpShortTest() {
9090
{"3H8L", "AA0513"}, // CYS-S3H-CYS
9191
{"1CAD", null}, // FE and 4 Cys, cross-link4
9292

93-
// Terbium
93+
// Terbium cases
9494
{"1NCZ", null},
9595
{"3LTQ",null}, // has metalc,
96-
9796
{"4ESQ",null},
9897
{"1TJB",null},
9998
{"2V15",null},
10099
{"2K61",null},
101100

101+
// iron bond to CYS
102+
//{"1G20","AA0300"},
103+
104+
{"3CM6",null},
105+
{"1W6Z",null},
106+
//{"1Z2M",null}, distances are too big for the new cutoffs
107+
{"2O6N",null},
108+
{"1GA7",null},
109+
102110
};
103111
return strucs;
104112
}

0 commit comments

Comments
 (0)