Skip to content

Commit

Permalink
Remove webpack provide, fix bug in jointSort library function.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenshank committed Mar 10, 2020
1 parent 2f19c89 commit 3c617e4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
20 changes: 20 additions & 0 deletions dist/data/CD2-slim.fasta
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
>Human
GCCTTGGAAACCTGGGGTGCCTTGGGTCAG
>Chimp
GCCTTGGAAACCTGGGGTGCCTTGGGTCAG
>Baboon
GCTTTGGAAACCTGGGGAGCGCTGGGTCAG
>RhMonkey
GCTTTGGAAACCTGGGGAGCGCTGGGTCAG
>Cow
AGCATTGTCGTCTGGGGTGCCCTGGATCAT
>Pig
ACTGAGGTTGTCTGGGGCATCGTGGATCAA
>Horse
AATATCACCATCTTGGGTGCCCTGGAACGT
>Cat
GATGATATCGTCTGGGGTACCCTGGGTCAG
>Mouse
AATGAGACCATCTGGGGTGTCTTGGGTCAT
>Rat
AGTGGGACCGTCTGGGGTGCCCTGGGTCAT
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alignment.js",
"version": "0.2.0",
"version": "0.2.1",
"main": "library.js",
"license": "MIT",
"dependencies": {
Expand Down
4 changes: 3 additions & 1 deletion src/helpers/jointSort.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { max } from "d3";

function sortFASTAAndNewick(sequence_data, tree) {
var i = 0;
tree.traverse_and_compute(function(n) {
Expand All @@ -6,7 +8,7 @@ function sortFASTAAndNewick(sequence_data, tree) {
n.name = "Node" + i++;
}
if (n.children && n.children.length) {
d += d3.max(n.children, function(d) {
d += max(n.children, function(d) {
return d["count_depth"];
});
}
Expand Down
5 changes: 0 additions & 5 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ module.exports = {
new HtmlWebpackPlugin({
title: "Javascript Alignment Viewer"
}),
new webpack.ProvidePlugin({
d3: "d3",
_: "underscore",
$: "jquery"
}),
new ExtractTextPlugin("alignment.css")
],
module: {
Expand Down

0 comments on commit 3c617e4

Please sign in to comment.