Skip to content

Commit 58c6743

Browse files
committed
update for 2VH3 TY2
1 parent 913d1ef commit 58c6743

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

biojava-modfinder/src/main/resources/org/biojava/nbio/protmod/ptm_list.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4550,30 +4550,37 @@
45504550
</Component>
45514551
<Bond>
45524552
<Atom component="1">SG</Atom>
4553+
<!--<Atom component="8">*</Atom>-->
45534554
<Atom component="8">FE1,FE2,FE3,FE4,FE5,FE6,FE7,FE8</Atom>
45544555
</Bond>
45554556
<Bond>
45564557
<Atom component="2">SG</Atom>
4558+
<!--<Atom component="8">*</Atom>-->
45574559
<Atom component="8">FE1,FE2,FE3,FE4,FE5,FE6,FE7,FE8</Atom>
45584560
</Bond>
45594561
<Bond>
45604562
<Atom component="3">SG</Atom>
4563+
<!--<Atom component="8">*</Atom>-->
45614564
<Atom component="8">FE1,FE2,FE3,FE4,FE5,FE6,FE7,FE8</Atom>
45624565
</Bond>
45634566
<Bond>
45644567
<Atom component="4">SG</Atom>
4568+
<!--<Atom component="8">*</Atom>-->
45654569
<Atom component="8">FE1,FE2,FE3,FE4,FE5,FE6,FE7,FE8</Atom>
45664570
</Bond>
45674571
<Bond>
45684572
<Atom component="5">SG</Atom>
4573+
<!--<Atom component="8">*</Atom>-->
45694574
<Atom component="8">FE1,FE2,FE3,FE4,FE5,FE6,FE7,FE8</Atom>
45704575
</Bond>
45714576
<Bond>
45724577
<Atom component="6">SG</Atom>
4578+
<!--<Atom component="8">*</Atom>-->
45734579
<Atom component="8">FE1,FE2,FE3,FE4,FE5,FE6,FE7,FE8</Atom>
45744580
</Bond>
45754581
<Bond>
45764582
<Atom component="7">OG</Atom>
4583+
<!--<Atom component="8">*</Atom>-->
45774584
<Atom component="8">FE1,FE2,FE3,FE4,FE5,FE6,FE7,FE8</Atom>
45784585
</Bond>
45794586
</Condition>
@@ -7035,7 +7042,7 @@
70357042
<Id source="PDBCC">TY2</Id>
70367043
</Component>
70377044
<Bond>
7038-
<Atom component="1">CE2,CE1</Atom>
7045+
<Atom component="1">CE2</Atom>
70397046
<Atom component="2">NE2</Atom>
70407047
</Bond>
70417048
</Condition>

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

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
import junit.framework.TestCase;
2828
import org.biojava.nbio.protmod.ProteinModification;
2929
import org.biojava.nbio.protmod.ProteinModificationRegistry;
30-
import org.biojava.nbio.structure.ResidueNumber;
31-
import org.biojava.nbio.structure.Structure;
32-
import org.biojava.nbio.structure.StructureException;
30+
import org.biojava.nbio.structure.*;
3331
import org.slf4j.Logger;
3432
import org.slf4j.LoggerFactory;
3533

@@ -109,6 +107,9 @@ public static String[][] setUpShortTest() {
109107
{"1ACD","AA0262"}, // test for CSD
110108
{"1AA6","AA0022"} , // test for SEC
111109

110+
{"1WCT","AA0179"},
111+
{"2VH3","AA0459"},
112+
112113
};
113114
return strucs;
114115
}
@@ -341,16 +342,35 @@ private void parserTest(String pdbId, String residId) throws IOException, Struct
341342

342343
private void parserTest(String pdbId, Set<ProteinModification> mods) throws IOException, StructureException {
343344
Structure struc = TmpAtomCache.cache.getStructure(pdbId);
345+
/*
346+
//needed for testing 1G20
347+
if ( pdbId.equalsIgnoreCase("1G20")) {
348+
Structure n = new StructureImpl();
349+
350+
n.addChain(struc.getPolyChainByPDB("A"));
351+
n.addChain(struc.getPolyChainByPDB("B"));
352+
for (Chain c : struc.getNonPolyChainsByPDB("A"))
353+
n.addChain(c);
354+
355+
for (Chain c : struc.getNonPolyChainsByPDB("B"))
356+
n.addChain(c);
357+
358+
359+
struc = n;
360+
}
361+
*/
344362

345363
ProteinModificationIdentifier parser = new ProteinModificationIdentifier();
346364
boolean recordUnidentifiable = false;
347365
parser.setRecordUnidentifiableCompounds(recordUnidentifiable);
348-
// parser.setbondLengthTolerance(2);
366+
//parser.setbondLengthTolerance(2);
349367

350368
assertFalse(mods.isEmpty());
351369

352370
parser.identify(struc, mods);
353371

372+
//System.out.println(parser.getUnidentifiableModifiedResidues());
373+
354374
if ( parser.getIdentifiedModifiedCompound().isEmpty() ){
355375
String msg = "Did not identify any modified compounds for " + pdbId;
356376
logger.warn(msg);

0 commit comments

Comments
 (0)