Skip to content

Commit de6d033

Browse files
committed
merging in updated ptm_list.xml
1 parent 80dc3a9 commit de6d033

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7041,10 +7041,17 @@
70417041
<Component component="2">
70427042
<Id source="PDBCC">TY2</Id>
70437043
</Component>
7044+
<<<<<<< HEAD
70447045
<Bond>
70457046
<Atom component="1">CE2</Atom>
70467047
<Atom component="2">NE2</Atom>
70477048
</Bond>
7049+
=======
7050+
<Bond>
7051+
<Atom component="1">CE2</Atom>
7052+
<Atom component="2">NE2</Atom>
7053+
</Bond>
7054+
>>>>>>> 58c6743... update for 2VH3 TY2
70487055
</Condition>
70497056
<Occurrence>hypothetical</Occurrence>
70507057
<Category>crosslink2</Category>

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

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

108+
{"1WCT","AA0179"},
109+
{"2VH3","AA0459"},
110+
110111
};
111112
return strucs;
112113
}
@@ -343,16 +344,35 @@ private void parserTest(String pdbId, String residId) throws IOException, Struct
343344

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

347365
ProteinModificationIdentifier parser = new ProteinModificationIdentifier();
348366
boolean recordUnidentifiable = false;
349367
parser.setRecordUnidentifiableCompounds(recordUnidentifiable);
350-
// parser.setbondLengthTolerance(2);
368+
//parser.setbondLengthTolerance(2);
351369

352370
assertFalse(mods.isEmpty());
353371

354372
parser.identify(struc, mods);
355373

374+
//System.out.println(parser.getUnidentifiableModifiedResidues());
375+
356376
if ( parser.getIdentifiedModifiedCompound().isEmpty() ){
357377
String msg = "Did not identify any modified compounds for " + pdbId;
358378
logger.warn(msg);

0 commit comments

Comments
 (0)