File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
biojava-structure-gui/src/main/java/demo
biojava-structure/src/main/java/org/biojava/nbio/structure/symmetry/internal Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public static void main(String[] args)
6262
6363 //Choose some parameters
6464 CESymmParameters params = ceSymm .getParameters ();
65- params .setRefineMethod (RefineMethod .NOT_REFINED );
65+ params .setRefineMethod (RefineMethod .SINGLE );
6666 params .setSymmType (SymmetryType .AUTO );
6767 params .setOptimization (true );
6868 params .setSymmLevels (0 );
Original file line number Diff line number Diff line change @@ -436,10 +436,10 @@ public MultipleAlignment analyzeLevel(Atom[] atoms) throws StructureException {
436436 throw new IllegalArgumentException ("Empty Atom array given." );
437437 }
438438
439- selfAlignments . add ( align (atoms ) );
439+ AFPChain selfAFP = align (atoms );
440440
441441 if (refined ) {
442- msa = SymmetryTools .fromAFP (selfAlignments . get ( 0 ) , atoms );
442+ msa = SymmetryTools .fromAFP (selfAFP , atoms );
443443 CoreSuperimposer imposer = new CoreSuperimposer ();
444444 imposer .superimpose (msa );
445445 MultipleAlignmentScorer .calculateScores (msa );
@@ -458,7 +458,7 @@ public MultipleAlignment analyzeLevel(Atom[] atoms) throws StructureException {
458458 } else {
459459 // Convert the optimal pairwise alignment to MSA
460460 MultipleAlignmentEnsemble e = new MultipleAlignmentEnsembleImpl (
461- selfAlignments . get ( 0 ) , atoms , atoms , false );
461+ selfAFP , atoms , atoms , false );
462462 msa = e .getMultipleAlignment (0 );
463463 logger .debug ("Returning optimal self-alignment" );
464464 msa .putScore ("isRefined" , 0.0 );
You can’t perform that action at this time.
0 commit comments