Skip to content

Commit

Permalink
Made last set of changes based on the feedback from bioinformatics
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Ward committed Jun 20, 2016
1 parent c8d2e0c commit 962ca4c
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 15 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,25 @@
AlmostSignificant
=====

Getting Started
----
DOWNLOAD AlmostSignificant.tar.gz to get started.
Extract the files ( tar -xvf AlmostSignificant.tar.gz ).
Read the INSTALL.md file.

Summary
----
AlmostSignificant is an open-source platform for aggregating multiple sources of quality metrics as well as meta-data associated with DNA sequencing runs from Illumina sequencing machines.
AlmostSignificant is a graphical platform to streamline the quality control of DNA sequencing data, to collect and store these data for future reference and to collect extra meta-data associated with the sequencing runs to check for errors and monitor the volume of data produced by the associated machines.
AlmostSignificant has been used to track the quality of over 80 sequencing runs covering over 2500 samples produced over the last three years

Requires python 2.7, the illuminate package (available via pip install illuminate), and django >1.7 and pdflatex.
Requires python 2.7, the illuminate package (available via pip install illuminate), and django >1.7, python-dev and pdflatex.

For more help, suggestions or information, please email Joe Ward at [email protected].

Usage
----
When installed, follow the instructions for loading data from the INSTALL.md file.
When done, explore what you have. The arrows to the right of rows give more information about the row.
Clicking a run or project name takes you to a summary table for that run/project.
There are three navigational links at the top-right of the page. These take you to their respective overview pages.
63 changes: 49 additions & 14 deletions almostSignificant/static/almostSignificant/js/barchart.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ function barchart(labelArray, valueArray, divID, inputHeight, inputWidth, inputC
//...and initilise the x axis
var xAxis = d3.svg.axis().scale(xScale).orient("top");

var tooltipDiv = d3.select(divID).append("div")
.attr("class", "tooltip")
.style("opacity", 0);
var tooltipDiv = d3.select("body").append("div")
.attr("class", "tooltip")
.style("opacity", 0); //needs to be 0, as this plonks a box on the web page ready to use as tooltip

// var tooltipDiv = d3.select(divID).append("div")
// .attr("class", "tooltip")
// .style("opacity", 0);

//Create SVG element
var svg = d3.select(divID)
Expand Down Expand Up @@ -80,8 +84,8 @@ function barchart(labelArray, valueArray, divID, inputHeight, inputWidth, inputC
.duration(200)
.style("opacity", .9);
tooltipDiv .html(d + "M")
.style("left", (d3.event.pageX) + "px")
.style("top", (d3.event.pageY-1.5*height) + "px");
.style("left", (d3.event.pageX + 15) + "px")
.style("top", (d3.event.pageY - 28) + "px");
})
.on("mouseout", function(d){
d3.select(this).style("fill", selectedColor);
Expand Down Expand Up @@ -233,7 +237,7 @@ function stackedBarchart(jsonInput, divID, inputHeight, inputWidth) {
tooltip.transition()
.duration(200)
.style("opacity", 100);
tooltip.html("<br/>" + d3.format(",.0f")(d) + "% of reads occur only once, only in " + organisms[i] + ". <br/>")
tooltip.html(d3.format(",.0f")(d) + "% of reads occur only once, only in " + organisms[i])
.style("left", (d3.event.pageX + 15) + "px")
.style("top", (d3.event.pageY - 28) + "px");
})
Expand Down Expand Up @@ -266,7 +270,7 @@ function stackedBarchart(jsonInput, divID, inputHeight, inputWidth) {
tooltip.transition()
.duration(200)
.style("opacity", 100);
tooltip.html("<br/>" + d3.format(",.0f")(d) + "% of reads occur multiple times, only in " + organisms[i] + ". <br/>")
tooltip.html(d3.format(",.0f")(d) + "% of reads occur multiple times, only in " + organisms[i])
.style("left", (d3.event.pageX + 15) + "px")
.style("top", (d3.event.pageY - 28) + "px");
})
Expand Down Expand Up @@ -299,7 +303,7 @@ function stackedBarchart(jsonInput, divID, inputHeight, inputWidth) {
tooltip.transition()
.duration(200)
.style("opacity", 100);
tooltip.html("<br/>" + d3.format(",.0f")(d) + "% of reads occur once in multiple organisms."+"<br/>")
tooltip.html(d3.format(",.0f")(d) + "% of reads occur once in multiple organisms.")
.style("left", (d3.event.pageX + 15) + "px")
.style("top", (d3.event.pageY - 28) + "px");
})
Expand Down Expand Up @@ -332,7 +336,7 @@ function stackedBarchart(jsonInput, divID, inputHeight, inputWidth) {
tooltip.transition()
.duration(200)
.style("opacity", 100);
tooltip.html("<br/>" + d3.format(",.0f")(d) + "% of reads occur multipletimes in multiple organisms."+"<br/>")
tooltip.html(d3.format(",.0f")(d) + "% of reads occur multipletimes in multiple organisms.")
.style("left", (d3.event.pageX + 15) + "px")
.style("top", (d3.event.pageY - 28) + "px");
})
Expand Down Expand Up @@ -451,8 +455,8 @@ function numberedBarchart(labelArray, readArray, baseArray, divID, inputHeight,
.duration(200)
.style("opacity", .9);
tooltipDiv .html(d + "M")
.style("left", (d3.event.pageX) + "px")
.style("top", (d3.event.pageY-1.5*height) + "px");
.style("left", (d3.event.pageX + 15) + "px")
.style("top", (d3.event.pageY - 28) + "px");
})
.on("mouseout", function(d){
d3.select(this).style("fill", selectedColor);
Expand Down Expand Up @@ -681,6 +685,10 @@ function densityScatterGraph( valueArray, divID, xAxisLabel, yAxisLabel ) {
.attr("height", height + margin.top + margin.bottom)
.append("g");

var tooltip = d3.select("body").append("div")
.attr("class", "tooltip")
.style("opacity", 0);

svg.selectAll("circle")
.data(valueArray)
.enter()
Expand All @@ -692,9 +700,36 @@ function densityScatterGraph( valueArray, divID, xAxisLabel, yAxisLabel ) {
return y(d[1]);
})
.attr("r", 3)
.text( function(d) { return d[4]; })
.append("svg:title")
.text(function(d) { return d[4]; } );
.on("mouseover", function(d) {
d3.select(this).style("fill", "red");
tooltip.transition()
.duration(200)
.style("opacity", .9);
tooltip.html(d[4])
.style("left", (d3.event.pageX + 15) + "px")
.style("top", (d3.event.pageY - 28) + "px");
})
.on("mouseout", function(d){
d3.select(this).style("fill", "black");
tooltip.transition()
.duration(500)
.style("opacity", 0);
});
//.on("mouseover", function(d) {
// d3.select(this).style("fill", "red");
// tooltip.transition()
// .duration(200)
// .style("opacity", 100);
// tooltip.html("<br/>" + d[4] + ". <br/>")
// .style("left", (d3.event.pageX + 15) + "px")
// .style("top", (d3.event.pageY - 28) + "px");
// })
// .on("mouseout", function(d){
// d3.select(this).style("fill", "black");
// tooltip.transition()
// .duration(500)
// .style("opacity", 0);
// });

svg.append("g")
.attr("class", "x axis")
Expand Down

0 comments on commit 962ca4c

Please sign in to comment.