New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

biojs-vis-rohart-msc-test

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

biojs-vis-rohart-msc-test - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

build/test.js

4

examples/simple.js

@@ -16,3 +16,5 @@ // if you don't specify a html file, the sniper will generate a div with id "rootDiv"

// MSC 100/100
temp = "Sample: " + d.Replicate_Group_ID +"("+d.chip_id+")<br/>MSC x/100<br/>Prediction value: " + d[y_column] + "<br/>lwr: " + d.lwr + "<br/>upr: " + d.upr;
total = d.total_samples;
msc_call = d.MSC_Call;
temp = "Sample: " + d.Replicate_Group_ID +"("+d.chip_id+")<br/>MSC "+msc_call+"/"+total+"<br/>Prediction value: " + d[y_column] + "<br/>lwr: " + d.lwr + "<br/>upr: " + d.upr;
return temp;

@@ -19,0 +21,0 @@ });

@@ -713,2 +713,22 @@ /*

// Trying to make a quantative scale using an old way - ended up not using this
// https://github.com/mbostock/d3/wiki/Quantitative-Scales#quantize
// http://stackoverflow.com/questions/17671252/d3-create-a-continous-color-scale-with-many-strings-inputs-for-the-range-and-dy
// pick any number [3-9] for Reds
// pick any number [3-11] for RdGy
// you can check the number you can use here: https://github.com/mbostock/d3/blob/master/lib/colorbrewer/colorbrewer.js
// Or we can use something we make up
// http://synthesis.sbecker.net/articles/2012/07/16/learning-d3-part-6-scales-colors
var numColors = 9;
var heat_map_colour = d3.scale.linear()
.domain([0,200])
.range(["pink","red"]);
svg.selectAll(".dot") // class of .dot

@@ -734,4 +754,4 @@ .data(options.data) // use the options.data and connect it to the elements that have .dot css

function (d){
temp = d.MSC_Type;
color = options.domain_colors[temp];
temp = d.MSC_Call;
color = heat_map_colour(temp);
return color;

@@ -744,2 +764,3 @@ }

graph.heat_map_colour = heat_map_colour;
graph.svg = svg;

@@ -774,8 +795,8 @@ return graph;

page_options = graph.page_options;
heat_map_colour = graph.heat_map_colour;
//graph = this.convert_domain_colors_to_d3(graph);
graph = this.convert_domain_colors_to_d3(graph);
//domains_d3 = graph.options.domains_d3;
//colors_d3 = graph.options.colors_d3;
domains_d3 = graph.options.domains_d3;
colors_d3 = graph.options.colors_d3;
/*

@@ -799,5 +820,9 @@ http://chimera.labs.oreilly.com/books/1230000000345/ch08.html#_cleaning_it_up

*/
legend_values=[200,150,100,50,0];
legend_x_axis = page_options.width + 60;
var legend = svg.selectAll("."+options.legend_class)
.data(domains_d3)
.data(legend_values)
.enter().append("g")

@@ -816,3 +841,8 @@ .attr("class", options.legend_class)

.attr("height", 18)
.style("fill", colors_d3);
.style("fill",
function(d){
colour = heat_map_colour(d);
return colour;
}
);

@@ -1030,3 +1060,3 @@ legend.append("text")

graph = this.setup_graph(graph);
//graph = this.setup_legend(graph);
graph = this.setup_legend(graph);

@@ -1033,0 +1063,0 @@ var target = $(options.target);

{
"name": "biojs-vis-rohart-msc-test",
"description": "BioJS component to provide a graph of the Rohart MSC Test hosted in Stemformatics",
"version": "0.1.0",
"version": "0.2.0",
"homepage": "https://github.com/rowlandm/biojs-vis-rohart-msc-test",

@@ -6,0 +6,0 @@ "author": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc