Skip to content

Commit

Permalink
remove wrong transpose call from superposition code
Browse files Browse the repository at this point in the history
  • Loading branch information
biasmv committed Jul 17, 2015
1 parent 3e4de40 commit 2ecf921
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/mol/superpose.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ var superpose = (function() {
tmp[8] = -1;
mat3.mul(uMat, uMat, tmp);
}
console.log(mat3.str(uMat));
mat3.mul(rotation, mat3.transpose(vMat, vMat), uMat);
mat3.transpose(rotation, rotation);
//mat3.transpose(rotation, rotation);
// apply transformation to all atoms
var allAtoms = structure.full().atoms();
for (var i = 0; i < allAtoms.length; ++i) {
Expand Down Expand Up @@ -216,8 +217,8 @@ function matchResidues(inA, inB, atoms, matchFn) {
var residuesA = matchedResidues[0];
var residuesB = matchedResidues[1];
if (residuesA.length !== residuesB.length) {
console.errors('chains', chainA.name(), ' and', chainB.name(),
' do not contain the same number of residues.');
console.error('chains', chainA.name(), ' and', chainB.name(),
' do not contain the same number of residues.');
return null;
}

Expand Down

0 comments on commit 2ecf921

Please sign in to comment.