@@ -282,7 +282,7 @@ public static <S,T> Map<S,T> applyAlignment(Map<S, T> alignmentMap, Map<T,S> ide
282282 * @return
283283 */
284284 public static int getSymmetryOrder (Map <Integer , Integer > alignment ,
285- final int maxSymmetry , final float minimumMetricChange ) {
285+ final int maxSymmetry , final float minimumMetricChange ) {
286286 return getSymmetryOrder (alignment , new IdentityMap <Integer >(), maxSymmetry , minimumMetricChange );
287287 }
288288 /**
@@ -321,7 +321,7 @@ public static int getSymmetryOrder(Map<Integer, Integer> alignment,
321321 * @see IdentityMap For a simple identity function
322322 */
323323 public static int getSymmetryOrder (Map <Integer , Integer > alignment , Map <Integer ,Integer > identity ,
324- final int maxSymmetry , final float minimumMetricChange ) {
324+ final int maxSymmetry , final float minimumMetricChange ) {
325325 List <Integer > preimage = new ArrayList <Integer >(alignment .keySet ()); // currently unmodified
326326 List <Integer > image = new ArrayList <Integer >(preimage );
327327
@@ -566,7 +566,7 @@ public boolean containsKey(Object key) {
566566 * @see AlignmentTools#replaceOptAln(AFPChain, Atom[], Atom[], Map)
567567 */
568568 public static AFPChain createAFPChain (Atom [] ca1 , Atom [] ca2 ,
569- ResidueNumber [] aligned1 , ResidueNumber [] aligned2 ) throws StructureException {
569+ ResidueNumber [] aligned1 , ResidueNumber [] aligned2 ) throws StructureException {
570570 //input validation
571571 int alnLen = aligned1 .length ;
572572 if (alnLen != aligned2 .length ) {
@@ -752,7 +752,7 @@ public static AFPChain replaceOptAln(int[][][] newAlgn, AFPChain afpChain, Atom[
752752 * @see AlignmentTools#createAFPChain(Atom[], Atom[], ResidueNumber[], ResidueNumber[])
753753 */
754754 public static AFPChain replaceOptAln (AFPChain afpChain , Atom [] ca1 , Atom [] ca2 ,
755- Map <Integer , Integer > alignment ) throws StructureException {
755+ Map <Integer , Integer > alignment ) throws StructureException {
756756
757757 // Determine block lengths
758758 // Sort ca1 indices, then start a new block whenever ca2 indices aren't
@@ -817,7 +817,7 @@ public static AFPChain replaceOptAln(AFPChain afpChain, Atom[] ca1, Atom[] ca2,
817817 * @throws StructureException if an error occured during superposition
818818 */
819819 public static AFPChain replaceOptAln (AFPChain afpChain , Atom [] ca1 , Atom [] ca2 ,
820- int blockNum , int [] optLens , int [][][] optAln ) throws StructureException {
820+ int blockNum , int [] optLens , int [][][] optAln ) throws StructureException {
821821 int optLength = 0 ;
822822 for ( int blk =0 ;blk <blockNum ;blk ++) {
823823 optLength += optLens [blk ];
@@ -904,13 +904,13 @@ public static void updateSuperposition(AFPChain afpChain, Atom[] ca1, Atom[] ca2
904904 }
905905
906906 //Superimpose the two structures in correspondance to the new alignment
907- Matrix4d trans = SuperPositions .superpose (Calc .atomsToPoints (ca1aligned ),
907+ Matrix4d trans = SuperPositions .superpose (Calc .atomsToPoints (ca1aligned ),
908908 Calc .atomsToPoints (ca2aligned ));
909909
910910 Matrix matrix = Matrices .getRotationJAMA (trans );
911911 Atom shift = Calc .getTranslationVector (trans );
912-
913-
912+
913+
914914 Matrix [] blockMxs = new Matrix [afpChain .getBlockNum ()];
915915 Arrays .fill (blockMxs , matrix );
916916 afpChain .setBlockRotationMatrix (blockMxs );
@@ -953,14 +953,14 @@ public static void updateSuperposition(AFPChain afpChain, Atom[] ca1, Atom[] ca2
953953 ca2block = (Atom []) resizeArray (ca2block , position );
954954 }
955955 //Superimpose the two block structures
956- Matrix4d transb = SuperPositions .superpose (Calc .atomsToPoints (ca1block ),
956+ Matrix4d transb = SuperPositions .superpose (Calc .atomsToPoints (ca1block ),
957957 Calc .atomsToPoints (ca2block ));
958958
959959 Matrix matrixb = Matrices .getRotationJAMA (trans );
960960 Atom shiftb = Calc .getTranslationVector (trans );
961-
961+
962962 Calc .transform (ca2block , transb );
963-
963+
964964 //Calculate the RMSD and TM score for the block
965965 double rmsdb = Calc .rmsd (ca1block , ca2block );
966966 double tmScoreb = Calc .getTMScore (ca1block , ca2block , ca1 .length , ca2 .length );
@@ -1155,8 +1155,8 @@ public static int[] calculateBlockGap(int[][][] optAln){
11551155 * @throws IOException
11561156 */
11571157 public static void alignmentToSIF (Writer out ,AFPChain afpChain ,
1158- Atom [] ca1 ,Atom [] ca2 , String backboneInteraction ,
1159- String alignmentInteraction ) throws IOException {
1158+ Atom [] ca1 ,Atom [] ca2 , String backboneInteraction ,
1159+ String alignmentInteraction ) throws IOException {
11601160
11611161 //out.write("Res1\tInteraction\tRes2\n");
11621162 String name1 = afpChain .getName1 ();
@@ -1210,7 +1210,7 @@ public static void alignmentToSIF(Writer out,AFPChain afpChain,
12101210 }
12111211 }
12121212 }
1213-
1213+
12141214
12151215
12161216 /** get an artificial List of chains containing the Atoms and groups.
@@ -1321,7 +1321,7 @@ public static Group[] prepareGroupsForDisplay(AFPChain afpChain, Atom[] ca1, Ato
13211321
13221322 twistedGroups = AFPTwister .twistOptimized (afpChain , ca1 , ca2 );
13231323
1324- //} else if (( blockNum == 1 ) || (afpChain.getAlgorithmName().equals(CeCPMain.algorithmName))) {
1324+ //} else if (( blockNum == 1 ) || (afpChain.getAlgorithmName().equals(CeCPMain.algorithmName))) {
13251325 } else {
13261326
13271327 Matrix m = afpChain .getBlockRotationMatrix ()[ 0 ];
@@ -1355,8 +1355,8 @@ public static Group[] prepareGroupsForDisplay(AFPChain afpChain, Atom[] ca1, Ato
13551355 }
13561356
13571357 /** only shift CA positions.
1358- *
1359- */
1358+ *
1359+ */
13601360 public static void shiftCA2 (AFPChain afpChain , Atom [] ca2 , Matrix m , Atom shift , Group [] twistedGroups ) {
13611361
13621362 int i = -1 ;
@@ -1368,14 +1368,14 @@ public static void shiftCA2(AFPChain afpChain, Atom[] ca2, Matrix m, Atom shift
13681368 Calc .shift (g , shift );
13691369
13701370 if (g .hasAltLoc ()){
1371- for (Group alt : g .getAltLocs ()){
1372- for (Atom alta : alt .getAtoms ()){
1373- if ( g .getAtoms ().contains (alta ))
1374- continue ;
1375- Calc .rotate (alta ,m );
1376- Calc .shift (alta ,shift );
1377- }
1378- }
1371+ for (Group alt : g .getAltLocs ()){
1372+ for (Atom alta : alt .getAtoms ()){
1373+ if ( g .getAtoms ().contains (alta ))
1374+ continue ;
1375+ Calc .rotate (alta ,m );
1376+ Calc .shift (alta ,shift );
1377+ }
1378+ }
13791379 }
13801380 twistedGroups [i ]=g ;
13811381 }
0 commit comments