Skip to content

Commit 41e044e

Browse files
committed
Merge pull request biojava#18 from andreasprlic/master
fixing issue biojava#12
2 parents e5c2522 + bbca319 commit 41e044e

4 files changed

Lines changed: 4 additions & 16 deletions

File tree

biojava3-structure/src/main/java/org/biojava/bio/structure/align/xml/AFPChainXMLParser.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ public static AFPChain[] parseMultiXML(String xml) {
257257

258258
a.setAlignScore(new Double(getAttribute(rootElement,"alignScore")).doubleValue());
259259
a.setChainRmsd(new Double(getAttribute(rootElement,"chainRmsd")).doubleValue());
260-
Double identity = new Double(getAttribute(rootElement,"identity")).doubleValue();
261-
System.out.println("parsed identity from file " + identity);
260+
Double identity = new Double(getAttribute(rootElement,"identity")).doubleValue();
262261
a.setIdentity(identity);
263262

264263
a.setNormAlignScore(new Double(getAttribute(rootElement,"normAlignScore")).doubleValue());
Binary file not shown.

integrationtest/src/test/java/org/biojava/bio/structure/align/FlipAFPChainTest.java

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private void flip(String name1, String name2, String algorithmName) throws Struc
9393
afpChain.setName1(name1);
9494
afpChain.setName2(name2);
9595

96-
96+
afpChain.setCalculationTime(0);
9797

9898
String xml = AFPChainXMLConverter.toXML(afpChain, ca1, ca2);
9999

@@ -107,18 +107,7 @@ private void flip(String name1, String name2, String algorithmName) throws Struc
107107
assertEquals(afpChain.getAlgorithmName(),flipped.getAlgorithmName());
108108
assertEquals(afpChain.getVersion(), flipped.getVersion());
109109

110-
//System.out.println(AFPChainXMLConverter.toXML(flipped));
111-
112-
//AFPChainXMLParser.rebuildAFPChain(flipped, ca2, ca1);
113-
114-
//FatCat newCat = new FatCat();
115-
116-
//Group[] twistedGroups = AFPTwister.twistOptimized(flipped,ca2,ca1);
117-
118-
// FatCatAligner aligner = newCat.getFatCatAligner();
119-
//aligner.setTwistedGroups(twistedGroups);
120-
//newCat.display(flipped, ca2, ca1, new ArrayList<Group>(),new ArrayList<Group>(),new ArrayList<Group>(),new ArrayList<Group>());
121-
110+
122111
String xmlNew = AFPChainXMLConverter.toXML(flipped, ca2, ca1);
123112

124113
AFPChain backChain = AFPChainXMLParser.fromXML(xmlNew, ca2, ca1);

integrationtest/src/test/resources/ce_1fdo.A_2iv2.X.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<AFPChain name1="1FDO.A" name2="2IV2.X" method="jCE" version="1.1" alnLength="720" blockNum="1" gapLen="28" optLength="692" totalLenIni="697" alignScore="1551.34" chainRmsd="0.91" identity="0.9957" normAlignScore="0.00" probability="8.40e+00" similarity="0.9957" similarity1="97" similarity2="99" totalRmsdIni="1.36" totalRmsdOpt="0.91" ca1Length="715" ca2Length="697" afpNum="4" alignScoreUpdate="0.00" time="-1">
1+
<AFPChain name1="1FDO.A" name2="2IV2.X" method="jCE" version="1.1" alnLength="720" blockNum="1" gapLen="28" optLength="692" totalLenIni="697" alignScore="1551.34" chainRmsd="0.91" identity="0.9569" normAlignScore="0.00" probability="8.40e+00" similarity="0.9569" similarity1="97" similarity2="99" totalRmsdIni="1.36" totalRmsdOpt="0.91" ca1Length="715" ca2Length="697" afpNum="4" alignScoreUpdate="0.00" time="-1">
22
<block blockNr="0" blockSize="0" blockScore="0.00" blockRmsd="0.91" blockGap="0">
33
<eqr eqrNr="0" pdbres1="1" chain1="A" pdbres2="1" chain2="X" />
44
<eqr eqrNr="1" pdbres1="2" chain1="A" pdbres2="2" chain2="X" />

0 commit comments

Comments
 (0)