Skip to content

Commit a8828ca

Browse files
committed
Documentation and minor fix
1 parent 53c947f commit a8828ca

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

biojava-structure/src/main/java/org/biojava/nbio/structure/Calc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ public static final Atom createVirtualCBAtom(AminoAcid amino)
998998

999999
SuperPositionSVD svd = new SuperPositionSVD(false);
10001000

1001-
Matrix4d transform = svd.superpose(arr1, arr2);
1001+
Matrix4d transform = svd.superpose(Calc.atomsToPoints(arr1), Calc.atomsToPoints(arr2));
10021002
Matrix rotMatrix = Matrices.getRotationJAMA(transform);
10031003
Atom tranMatrix = getTranslationVector(transform);
10041004

biojava-structure/src/main/java/org/biojava/nbio/structure/align/util/AlignmentTools.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,14 @@ public static void shiftCA2(AFPChain afpChain, Atom[] ca2, Matrix m, Atom shift
13611361
}
13621362
}
13631363

1364+
/**
1365+
* Fill the aligned Atom arrays with the equivalent residues in the afpChain.
1366+
* @param afpChain
1367+
* @param ca1
1368+
* @param ca2
1369+
* @param ca1aligned
1370+
* @param ca2aligned
1371+
*/
13641372
public static void fillAlignedAtomArrays(AFPChain afpChain, Atom[] ca1,
13651373
Atom[] ca2, Atom[] ca1aligned, Atom[] ca2aligned) {
13661374

0 commit comments

Comments
 (0)