Skip to content

Commit

Permalink
Fixed invalid tree topology
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Mar 28, 2019
1 parent c1651d2 commit 03c58b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unipept-heatmap",
"version": "1.0.9",
"version": "1.0.10",
"description": "HeatMap built for the Unipept project. See http://unipept.ugent.be for more information. This HeatMap supports UPGMA-clustering and MOLO-reordering.",
"main": "dist/bundle.js",
"typings": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/reorder/moloReorderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class MoloReorderer implements Reorderer {

private sortMinimum(root: TreeNode): TreeNode {
if (!root.leftChild || !root.rightChild) {
throw "Invalid tree topology for MOLO reordering!";
return root;
}

let leftTree: TreeNode = root.leftChild;
Expand Down

0 comments on commit 03c58b9

Please sign in to comment.